com.japisoft.dtdparser.node
Class ElementRefDTDNode
java.lang.Object
com.japisoft.dtdparser.node.DTDNode
com.japisoft.dtdparser.node.ElementDTDNode
com.japisoft.dtdparser.node.ElementRefDTDNode
- All Implemented Interfaces:
- DocumentWritable
- public class ElementRefDTDNode
- extends ElementDTDNode
- implements DocumentWritable
This is only a reference node to existing ELEMENT.
This ELEMENT reference is stored in the ElementSetDTDNode
.
For instance means that a is a ElementDTDNode
with
a child ElementSetDTDNode
with two child ElementRefDTDNode
- Version:
- 1.0
- Author:
- (c) 2002-2003 JAPISOFT
- See Also:
ElementDTDNode
Methods inherited from class com.japisoft.dtdparser.node.ElementDTDNode |
addDTDNode, getAttributeDeclaration, getName, getOperatorString, hasANY, hasPCDATA, isEMPTY, isNodeChildSupported, setANY, setEMPTY, setName, setOperator, setPCDATA |
Methods inherited from class com.japisoft.dtdparser.node.DTDNode |
getDTDNodeAt, getDTDNodeCount, getDTDNodeForType, getDTDNodeIndex, getDTDNodes, getDTDParentNode, getNodeComment, getNodeType, getRoot, isAttribute, isComment, isElement, isElementRef, isElementSet, isEmpty, isEntity, isRoot, removeDTDNode, setDTDParentNode, setNodeComment, setNodeType, setRoot |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ElementRefDTDNode
public ElementRefDTDNode()
ElementRefDTDNode
public ElementRefDTDNode(java.lang.String name)
- This name is the reference. You can find the real ELEMENT by the
RootDTDNode
getOperator
public int getOperator()
- This is the max of the occurence between this element ref
and the element set
- Overrides:
getOperator
in class ElementDTDNode
- Returns:
- the occurency operator
toString
public java.lang.String toString()
- Overrides:
toString
in class ElementDTDNode
getReferenceNode
public ElementDTDNode getReferenceNode()
- Returns:
- the reference node: null value means an error in the DTD
writeDocument
public void writeDocument(java.io.PrintWriter output)
throws java.io.IOException
- Description copied from class:
ElementDTDNode
- Write a minimal valid XML document
- Specified by:
writeDocument
in interface DocumentWritable
- Overrides:
writeDocument
in class ElementDTDNode
- Throws:
java.io.IOException