Class com.ibm.xml.parser.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: 91 1.3 src/com/ibm/xml/parser/CMLeaf.java, xml4jsrc, xml4j-jtcsv, xml4j_1_0_4
- See Also:
- ElementDecl, CMNode, CM1op, CM2op
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CMLeaf
public CMLeaf(java.lang.String name)
- Constructor.
- Parameters:
name
- The name of the leaf content model node (e.g. #PCDATA
or elementX
).
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