XML for Java Compatibility API 2.0.11

com.ibm.xml.parser
Class CMLeaf

java.lang.Object
  |
  +--com.ibm.xml.parser.CMNode
        |
        +--com.ibm.xml.parser.CMLeaf

public class CMLeaf
extends CMNode

CMLeaf provides content model support for content model nodes that are leaf node; in other words, nodes which do not have associated language primitives and are not model groups. Refer to ElementDecl for an overview of the content model, and how language primitives are used to express relationships.

Version:
Revision: 59 1.6 src/com/ibm/xml/parser/CMLeaf.java, parser, xml4j2, xml4j2_0_11
See Also:
ElementDecl, CMNode, CM1op, CM2op, Serialized Form

Constructor Summary
CMLeaf(java.lang.String name)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getName()
          Returns the name of the leaf content model node (e.g.
 int hashCode()
           
 java.lang.String toString()
          Returns the string representation of this leaf content model node.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CMLeaf

public CMLeaf(java.lang.String name)
Constructor.
Parameters:
name - The name of the leaf content model node (e.g. #PCDATA or elementX).
Method Detail

getName

public java.lang.String getName()
Returns the name of the leaf content model node (e.g. #PCDATA or elementX).
Returns:
The name of the left content model node (should never be null).

toString

public java.lang.String toString()
Returns the string representation of this leaf content model node. Example: (elementX)
Returns:
The string representation of this leaf content model node.
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

XML for Java Compatibility API 2.0.11