Parameter
|
Type
|
Applicability
|
Description
|
Mandatory
|
name
|
text
|
|
The name of the element or attribute.
|
true
|
type
|
text
|
|
XML Schema type (of the value of this field) that requires specific
handling in the Castor Marshalling Framework (such as 'QName' for
instance).
|
false
|
matches
|
text
|
|
Allows overriding the matches rules for the name of the element. It is a
standard regular expression and will be used instead of the 'name' field.
|
false
|
QName-prefix
|
text
|
|
When using a QName value, you can provide a default prefix that is used
when marshalling value of type QName.
|
false
|
reference
|
bool
|
|
Indicates if this field has to be treated as a reference by the unmarshaller. In
order to work properly, you must specify the node type to 'attribute' for
both the 'id' and the 'reference' fields.
Default value(s):
true
|
false
|
node
|
text
|
|
Indicates if the name corresponds to an attribute, an element, or text content.
By default, primitive types are assumed to be an attribute otherwise
the node is assumed to be an element.
Valid options are:
element
attribute
text
Default value(s):
text
|
false
|
dirty
|
bool
|
|
Flag to indicate if the field is checked for dirty status or not.
Default value(s):
true
|
false
|