Contents | Package | Class | Tree | Deprecated | Index | Help | XML for Java 1.0.4 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |
java.lang.Object | +----com.ibm.xml.parser.Child | +----com.ibm.xml.parser.Parent | +----com.ibm.xml.parser.GeneralReference
There are two flavors of general references:
General References do NOT include character references(e.g. "<" is referenced as "<").
The object tree produced by the XML4J parser does NOT include General Reference Nodes because general references are expanded. If an application is sensitive to the existence of parsed entities, it should implement the ReferenceHandler interface.
Fields inherited from class com.ibm.xml.parser.Child |
ATTDEF, ATTLIST, DOCUMENTTYPE, ELEMENTDEFINITION, ENTITY, GENERALREFERENCE, NOTATION, PSEUDONODE |
Constructor Summary | |
GeneralReference(java.lang.String name)
|
Method Summary | |
void | acceptPost(Visitor visitor)
|
void | acceptPre(Visitor visitor)
|
java.lang.Object | clone()
|
java.lang.String | getLanguage()
xml:lang Attribute) in
use for this General Reference Node.
|
java.lang.String | getName()
|
int | getNodeType()
|
java.lang.String | getText()
|
Methods inherited from class com.ibm.xml.parser.Parent |
addElement, elements, getChildNodes, getChildrenArray, getFirstChild, hasChildNodes, insert, insertAfter, insertBefore, insertFirst, insertLast, removeChild, replaceChild |
Methods inherited from class com.ibm.xml.parser.Child |
clearDigest, clone, getChildNodes, getDigest, getFactory, getFirstChild, getNextSibling, getParentNode, getPreviousSibling, getText, hasChildNodes, insertBefore, makeXPointer, print, print, removeChild, replaceChild, searchAncestors, searchAncestors, setFactory, toXMLString, toXMLString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GeneralReference(java.lang.String name)
name
- This General Reference's name. This is also the name of the entity
being referred to by the General Reference.
Method Detail |
public java.lang.Object clone()
This method is defined by Child.
public int getNodeType()
This method is defined by DOM.
public java.lang.String getName()
public java.lang.String getText()
This method is defined by Child.
public java.lang.String getLanguage()
xml:lang
Attribute) in
use for this General Reference Node. If this General Reference Node has no explicitly
defined language Attribute, Parent Nodes will be recursively checked.public void acceptPre(Visitor visitor) throws java.lang.Exception
visitor
- The implemention of the Visitor operation (toXMLString, digest, ...)
public void acceptPost(Visitor visitor) throws java.lang.Exception
visitor
- The implemention of the Visitor operation (toXMLString, digest, ...)
Contents | Package | Class | Tree | Deprecated | Index | Help | |||
PREV | NEXT | SHOW LISTS | HIDE LISTS |