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: 91 1.6 src/com/ibm/xml/parser/CMLeaf.java, xml4jsrc, xml4j-jtcsv, xml4j_1_1_9
- 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 |
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
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