Public Member Functions | Static Public Member Functions | Static Public Attributes

org.exolab.castor.xml.NodeType Class Reference

List of all members.

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" )

Detailed Description

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.

Author:
Assaf Arkin
Keith Visco
Version:
Revision:
1.1.1.1
Date:
2003/03/03 07:09:12

Member Function Documentation

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.

Parameters:
nodeType The node type name
Returns:
The node type

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 (  ) 
String org.exolab.castor.xml.NodeType.toString (  ) 

Member Data Documentation

final short org.exolab.castor.xml.NodeType.ATTRIBUTE = 0 [static]

The attribute type

final short org.exolab.castor.xml.NodeType.ELEMENT = 1 [static]

The element type

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]
final short org.exolab.castor.xml.NodeType.TEXT = 3 [static]

The text type

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().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties