Save This Page
Home » Castor-1.3-src » org.exolab.castor » xml » [javadoc | source]
org.exolab.castor.xml
public final class: NodeType [javadoc | source]
java.lang.Object
   org.exolab.castor.xml.NodeType
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. This class is essentially a typesafe enumeration and the instances are immutable.
Field Summary
public static final  short ATTRIBUTE    The attribute type. 
public static final  short ELEMENT    The element type. 
public static final  short NAMESPACE    The namespace node type. 
public static final  short TEXT    The text type. 
public static final  NodeType Attribute    Attribute node type (attribute). This field will appear in the XML document as an element's attribute. 
public static final  NodeType Element    Element node type (element). This field will appear in the XML document as a contained element. 
public static final  NodeType Namespace    Namespace node type (namespace). This field will appear in the XML document as a namespace declaration. 
public static final  NodeType Text    Content node type (text). This field will appear in the XML document as the element text content. 
Method from org.exolab.castor.xml.NodeType Summary:
getNodeType,   getType,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.exolab.castor.xml.NodeType Detail:
 public static NodeType getNodeType(String nodeType) 
    Returns the node type from the name. If nodeType is null, return the default node type (#Attribute ). Otherwise returns the named node type mode.
 public short getType() 
    Returns the type of this NodeType.
 public String toString() 
    Returns the name of this NodeType.