Public Member Functions | |
short | getType () |
String | toString () |
Static Public Member Functions | |
static NodeType | getNodeType (String nodeType) |
Static Public Attributes | |
static final short | ATTRIBUTE = 0 |
static final short | ELEMENT = 1 |
static final short | NAMESPACE = 2 |
static final short | TEXT = 3 |
static final NodeType | Attribute = new NodeType( NodeType.ATTRIBUTE, "attribute" ) |
static final NodeType | Element = new NodeType( NodeType.ELEMENT, "element" ) |
static final NodeType | Namespace = new NodeType( NodeType.NAMESPACE, "namespace" ) |
static final NodeType | Text = new NodeType( NodeType.TEXT, "text" ) |
The possible node types for an XML field. A field can be represented as an attribute, an element or text content. The default is attribute.
static NodeType org.exolab.castor.xml.NodeType.getNodeType | ( | String | nodeType | ) | [static] |
Returns the node type from the name. If nodeType
is null, return the default node type (Attribute). Otherwise returns the named node type mode.
nodeType | The node type name |
References org.exolab.castor.xml.NodeType.Attribute, org.exolab.castor.xml.NodeType.Element, org.exolab.castor.xml.NodeType.Namespace, and org.exolab.castor.xml.NodeType.Text.
Referenced by org.exolab.castor.xml.XMLMappingLoader.createFieldDesc().
short org.exolab.castor.xml.NodeType.getType | ( | ) |
Returns the type of this NodeType
Referenced by org.exolab.castor.xml.util.XMLClassDescriptorImpl.removeFieldDescriptor(), and org.exolab.castor.xml.util.XMLClassDescriptorImpl.sortDescriptors().
String org.exolab.castor.xml.NodeType.toString | ( | ) |
final short org.exolab.castor.xml.NodeType.ATTRIBUTE = 0 [static] |
The attribute type
final NodeType org.exolab.castor.xml.NodeType.Attribute = new NodeType( NodeType.ATTRIBUTE, "attribute" ) [static] |
Attribute node type (attribute
). This field will appear in the XML document as an element's attribute.
Referenced by org.exolab.castor.xml.util.XMLClassDescriptorImpl.getFieldDescriptor(), org.exolab.castor.xml.NodeType.getNodeType(), org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setConstructorArgumentIndex(), org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setNodeType(), org.exolab.castor.xml.Introspector.setPrimitiveNodeType(), org.exolab.castor.xml.Validator.validate(), and org.exolab.castor.xml.util.XMLFieldDescriptorImpl.XMLFieldDescriptorImpl().
final short org.exolab.castor.xml.NodeType.ELEMENT = 1 [static] |
The element type
final NodeType org.exolab.castor.xml.NodeType.Element = new NodeType( NodeType.ELEMENT, "element" ) [static] |
Element node type (element
). This field will appear in the XML document as a contained element.
Referenced by org.exolab.castor.xml.util.XMLClassDescriptorImpl.canAccept(), org.exolab.castor.xml.XMLMappingLoader.createFieldDesc(), org.exolab.castor.xml.util.XMLClassDescriptorImpl.getFieldDescriptor(), org.exolab.castor.xml.descriptors.VectorClassDescriptor.getFieldDescriptor(), org.exolab.castor.xml.descriptors.ListClassDescriptor.getFieldDescriptor(), org.exolab.castor.xml.util.XMLFieldDescriptorImpl.getNameSpaceURI(), org.exolab.castor.xml.NodeType.getNodeType(), org.exolab.castor.xml.Introspector.setPrimitiveNodeType(), and org.exolab.castor.xml.util.XMLFieldDescriptorImpl.XMLFieldDescriptorImpl().
final NodeType org.exolab.castor.xml.NodeType.Namespace = new NodeType( NodeType.NAMESPACE, "namespace" ) [static] |
Namespace node type (namespace
). This field will appear in the XML document as a namespace declaration.
Referenced by org.exolab.castor.xml.XMLMappingLoader.createFieldDesc(), org.exolab.castor.xml.util.XMLClassDescriptorImpl.getFieldDescriptor(), and org.exolab.castor.xml.NodeType.getNodeType().
final short org.exolab.castor.xml.NodeType.NAMESPACE = 2 [static] |
The namespace node type
Referenced by org.exolab.castor.xml.util.XMLClassDescriptorImpl.removeFieldDescriptor().
final short org.exolab.castor.xml.NodeType.TEXT = 3 [static] |
The text type
final NodeType org.exolab.castor.xml.NodeType.Text = new NodeType( NodeType.TEXT, "text" ) [static] |
Content node type (text
). This field will appear in the XML document as the element text content.
Referenced by org.exolab.castor.xml.NodeType.getNodeType().