Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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`

Field Summary

Fields inherited from class com.japisoft.dtdparser.node.ElementDTDNode
`ONE_ITEM_OPERATOR, ONE_MORE_ITEM_OPERATOR, ZERO_MORE_ITEM_OPERATOR, ZERO_ONE_ITEM_OPERATOR`

Fields inherited from class com.japisoft.dtdparser.node.DTDNode
`ATTRIBUTE, COMMENT, ELEMENT, ELEMENT_REF, ELEMENT_SET, ENTITY, ROOT`

Constructor Summary
`ElementRefDTDNode()`
`ElementRefDTDNode(java.lang.String name)` This name is the reference.

Method Summary
`int` | `getOperator()` This is the max of the occurence between this element ref and the element set
`ElementDTDNode` | `getReferenceNode()`
`java.lang.String` | `toString()`
`void` | `writeDocument(java.io.PrintWriter output)` Write a minimal valid XML document

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`

Constructor Detail

### ElementRefDTDNode

    public ElementRefDTDNode()

### ElementRefDTDNode

    public ElementRefDTDNode(java.lang.String name)

  This name is the reference. You can find the real ELEMENT by the `RootDTDNode`

Method Detail

### 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`
    `java.io.IOException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD