Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.EntityImpl
org.apache.xerces.dom.DeferredEntityImpl
"The DOM Level 1 does not support editing Entity nodes; if a user wants to make changes to the contents of an Entity, every related EntityReference node has to be replaced in the structure model by a clone of the Entity's contents, and then the desired changes must be made to each of those clones instead. All the descendants of an Entity node are readonly."I'm interpreting this as: It is the parser's responsibilty to call the non-DOM operation setReadOnly(true,true) after it constructs the Entity. Since the DOM explicitly decided not to deal with this, _any_ answer will involve a non-DOM operation, and this is the simplest solution.
Field Summary | |
protected int |
|
Fields inherited from class org.apache.xerces.dom.EntityImpl | |
baseURI , encoding , inputEncoding , name , notationName , publicId , systemId , version |
Fields inherited from class org.apache.xerces.dom.ParentNode | |
fNodeListCache , firstChild , ownerDocument |
Fields inherited from class org.apache.xerces.dom.ChildNode | |
nextSibling , previousSibling |
Fields inherited from interface org.apache.xerces.dom.DeferredNode | |
TYPE_NODE |
Method Summary | |
int |
|
protected void |
|
protected void |
|
Methods inherited from class org.apache.xerces.dom.EntityImpl | |
cloneNode , getBaseURI , getInputEncoding , getNodeName , getNodeType , getNotationName , getPublicId , getSystemId , getXmlEncoding , getXmlVersion , setBaseURI , setInputEncoding , setNotationName , setPublicId , setSystemId , setXmlEncoding , setXmlVersion |
Methods inherited from class org.apache.xerces.dom.ParentNode | |
cloneNode , getChildNodes , getChildNodesUnoptimized , getFirstChild , getLastChild , getLength , getOwnerDocument , getTextContent , hasChildNodes , insertBefore , isEqualNode , item , normalize , removeChild , replaceChild , setOwnerDocument , setReadOnly , setTextContent , synchronizeChildren |
Methods inherited from class org.apache.xerces.dom.ChildNode | |
cloneNode , getNextSibling , getParentNode , getPreviousSibling |
public int getNodeIndex()
Returns the node index.
- Specified by:
- getNodeIndex in interface DeferredNode
protected void synchronizeChildren()
Synchronize the children.
- Overrides:
- synchronizeChildren in interface ParentNode
protected void synchronizeData()
Synchronize the entity data. This is special because of the way that the "fast" version stores the information.
- Overrides:
- synchronizeData in interface NodeImpl