|
XML for Java Compatibility API 2.0.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.xml.parser.Child | +--com.ibm.xml.parser.Parent | +--com.ibm.xml.parser.GeneralReference
GeneralReference implements EntityReference as defined by the Document Object Model (DOM). This class represents general entity references (&foo;) occured in character data or attribute values.
GeneralReferences do NOT include character references(e.g. "<" is referenced as "<").
The object tree produced by the XML4J parser doesn't include GeneralReference Nodes
if the parser is configured as setExpandEntityReferences(false);
.
Parent
,
Child
,
Parser.setExpandEntityReferences(boolean)
,
ReferenceHandler
, Serialized FormFields inherited from class com.ibm.xml.parser.Child |
ATTDEF,
ATTLIST,
ELEMENT_DECL,
NAME_ATTDEF,
NAME_ATTLIST,
NAME_CDATA,
NAME_COMMENT,
NAME_DOCFRAGMENT,
NAME_DOCUMENT,
NAME_ELEMENT_DECL,
NAME_PSEUDONODE,
NAME_TEXT,
PSEUDONODE |
Constructor Summary | |
GeneralReference(java.lang.String name)
Constructor. |
Method Summary | |
void |
acceptPost(Visitor visitor)
Implements the accept operation of the visitor design pattern when the end of a General Reference Node is recognized when traversing the document object tree. |
void |
acceptPre(Visitor visitor)
Implements the accept operation of the visitor design pattern when the start of a General Reference Node is recognized when traversing the document object tree. |
protected void |
checkChildType(org.w3c.dom.Node child)
Check whether child is allowed to be insered in this node or not. |
java.lang.Object |
clone()
Clone this General Reference Node and its children using the appropriate factories. |
org.w3c.dom.Node |
cloneNode(boolean deep)
This method is defined by DOM. |
void |
collectNamespaceAttributes()
Call collectNamespaceAttributes() for each TXElement child. |
void |
collectNamespaceAttributes(org.w3c.dom.Node parent)
Call collectNamespaceAttributes() for each TXElement child. |
boolean |
equals(org.w3c.dom.Node arg,
boolean deep)
This method is defined by DOM. |
java.lang.String |
getLanguage()
Returns the XML language ID (the value of the xml:lang Attribute) in
use for this General Reference Node. |
java.lang.String |
getName()
Returns this General Reference's name. |
java.lang.String |
getNodeName()
This method is defined by DOM. |
short |
getNodeType()
Returns that this object is a EntityReference Node. |
void |
removeOverlappedNamespaceAttributes()
Call removeOverlappedNamespaceAttributes() for each TXElement child. |
Methods inherited from class com.ibm.xml.parser.Parent |
addElement,
appendChild,
elements,
expandEntityReferences,
getChildNodes,
getChildrenArray,
getFirstChild,
getFirstWithoutReference,
getLastChild,
getLastWithoutReference,
getText,
hasChildNodes,
insert,
insertAfter,
insertBefore,
insertFirst,
insertLast,
processAfterRemove,
realInsert,
removeChild,
replaceChild |
Methods inherited from class com.ibm.xml.parser.Child |
clearDigest,
getAttributes,
getDigest,
getFactory,
getNextSibling,
getNextWithoutReference,
getNodeValue,
getOwnerDocument,
getParentNode,
getParentWithoutReference,
getPreviousSibling,
getPreviousWithoutReference,
getUserData,
makeXPointer,
print,
print,
searchAncestors,
searchAncestors,
setFactory,
setNodeValue,
setUserData,
toXMLString,
toXMLString |
Methods inherited from class java.lang.Object |
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.
Child.clone()
public org.w3c.dom.Node cloneNode(boolean deep)
This method is defined by DOM.
public boolean equals(org.w3c.dom.Node arg, boolean deep)
This method is defined by DOM.
public short getNodeType()
This method is defined by DOM.
public java.lang.String getNodeName()
This method is defined by DOM.
public java.lang.String getName()
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, ...)Visitor
,
TreeTraversal
,
NonRecursivePreorderTreeTraversal
,
TreeTraversalException
public void acceptPost(Visitor visitor) throws java.lang.Exception
visitor
- The implemention of the Visitor operation (toXMLString, digest, ...)Visitor
,
TreeTraversal
,
NonRecursivePreorderTreeTraversal
,
TreeTraversalException
protected void checkChildType(org.w3c.dom.Node child) throws org.w3c.dom.DOMException
public void collectNamespaceAttributes()
collectNamespaceAttributes()
for each TXElement
child.TXDocument.isProcessNamespace()
,
TXElement.collectNamespaceAttributes()
public void collectNamespaceAttributes(org.w3c.dom.Node parent)
collectNamespaceAttributes()
for each TXElement
child.TXDocument.isProcessNamespace()
,
TXElement.collectNamespaceAttributes()
public void removeOverlappedNamespaceAttributes()
removeOverlappedNamespaceAttributes()
for each TXElement
child.TXDocument.isProcessNamespace()
,
TXElement.removeOverlappedNamespaceAttributes()
|
XML for Java Compatibility API 2.0.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |