|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.apache.xerces.dom.NodeImpl | +--org.enhydra.apache.xerces.dom.ChildNode | +--org.enhydra.apache.xerces.dom.ParentNode | +--org.enhydra.apache.xerces.dom.ElementImpl | +--org.enhydra.apache.xerces.dom.ElementNSImpl | +--org.enhydra.xml.lazydom.LazyElementNS
Implementation of the DOM Element with namespaces that supports lazy instantiation of a template DOM.
Field Summary |
Fields inherited from class org.enhydra.apache.xerces.dom.ElementNSImpl |
localName, namespaceURI |
Fields inherited from class org.enhydra.apache.xerces.dom.ElementImpl |
attributes, name |
Fields inherited from class org.enhydra.apache.xerces.dom.ParentNode |
fCachedChild, fCachedChildIndex, fCachedLength, firstChild, ownerDocument |
Fields inherited from class org.enhydra.apache.xerces.dom.ChildNode |
nextSibling, previousSibling |
Fields inherited from class org.enhydra.apache.xerces.dom.NodeImpl |
ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, IGNORABLEWS, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, UNNORMALIZED |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Fields inherited from interface org.enhydra.xml.lazydom.LazyNode |
DOCUMENT_NODE_ID, NULL_NODE_ID |
Constructor Summary | |
protected |
LazyElementNS(LazyDocument ownerDoc,
LazyElement template,
java.lang.String namespaceURI,
java.lang.String qualifiedName)
Constructor. |
Method Summary | |
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node newChild)
|
void |
appendChildWhileExpanding(org.w3c.dom.Node child)
Append a child during node expansion. |
boolean |
areAttributesExpanded()
Are the attributes of this node expanded? |
boolean |
areChildrenExpanded()
Are the children of this node expanded? |
org.w3c.dom.Node |
cloneNode(boolean deep)
|
java.lang.String |
getAttribute(java.lang.String name)
|
org.w3c.dom.Attr |
getAttributeNode(java.lang.String name)
|
org.w3c.dom.Attr |
getAttributeNodeNS(java.lang.String namespaceURI,
java.lang.String localName)
|
java.lang.String |
getAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
|
org.w3c.dom.NamedNodeMap |
getAttributes()
|
org.w3c.dom.NodeList |
getChildNodes()
|
org.w3c.dom.Node |
getFirstChild()
|
org.w3c.dom.Node |
getLastChild()
|
org.w3c.dom.Node |
getNextSibling()
|
int |
getNodeId()
Get the node numeric id number. |
org.w3c.dom.Node |
getParentNode()
|
java.lang.String |
getPreFormattedText()
Get the pre-formatted text for a node. |
org.w3c.dom.Node |
getPreviousSibling()
|
LazyElement |
getTemplateElement()
Get the template for this node. |
LazyNode |
getTemplateNode()
Get the template node as a LazyNode. |
boolean |
hasChildNodes()
|
org.w3c.dom.Node |
insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
|
boolean |
isParentExpanded()
Is the parent of this node expanded? |
boolean |
isTemplateNode()
Check if this node is a template node. |
void |
makeTemplateNode(int nodeId)
|
void |
makeTemplateNode(int nodeId,
java.lang.String text)
Mark the node as a template node and associated preformatted text. |
void |
normalize()
|
void |
removeAttribute(java.lang.String name)
|
org.w3c.dom.Attr |
removeAttributeNode(org.w3c.dom.Attr oldAttr)
|
void |
removeAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
|
org.w3c.dom.Node |
removeChild(org.w3c.dom.Node oldChild)
|
org.w3c.dom.Node |
replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
|
void |
setAttribute(java.lang.String name,
java.lang.String value)
|
org.w3c.dom.Attr |
setAttributeNode(org.w3c.dom.Attr newAttr)
|
org.w3c.dom.Attr |
setAttributeNodeNS(org.w3c.dom.Attr newAttr)
|
void |
setAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName,
java.lang.String value)
|
void |
setChildrenExpanded()
Flag the children as being expanded. |
void |
setNodeValue(java.lang.String value)
Set the node value, invalidating the id. |
void |
setParentExpanded()
Flag the parent as being expanded. |
void |
setParentWhileExpanding(org.w3c.dom.Node parent)
Set the parent of this node during expansion. |
void |
setPreFormattedText(java.lang.String text)
Set the pre-formatted text for a node. |
LazyNode |
templateClone(org.w3c.dom.Document ownerDocument)
Create a new node, using this node as the template. |
Methods inherited from class org.enhydra.apache.xerces.dom.ElementNSImpl |
getLocalName, getNamespaceURI, getPrefix, setPrefix |
Methods inherited from class org.enhydra.apache.xerces.dom.ElementImpl |
getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, getTagName, hasAttribute, hasAttributeNS, hasAttributes, reconcileDefaultAttributes, setReadOnly, setupDefaultAttributes, synchronizeData |
Methods inherited from class org.enhydra.apache.xerces.dom.ParentNode |
getChildNodesUnoptimized, getLength, getOwnerDocument, item, synchronizeChildren |
Methods inherited from class org.enhydra.apache.xerces.dom.ChildNode |
|
Methods inherited from class org.enhydra.apache.xerces.dom.NodeImpl |
addEventListener, changed, changes, dispatchEvent, getNodeValue, getReadOnly, getUserData, isSupported, removeEventListener, setUserData, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Element |
getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS |
Methods inherited from interface org.w3c.dom.Node |
getLocalName, getNamespaceURI, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getPrefix, hasAttributes, isSupported, setPrefix |
Constructor Detail |
protected LazyElementNS(LazyDocument ownerDoc, LazyElement template, java.lang.String namespaceURI, java.lang.String qualifiedName)
ownerDoc
- The document that owns this node.template
- If not-null, get the parameters from this template.namespaceURI
- The namespace for the node.
Will be ignored if template is not-null.qualifiedName
- The tag name for the node.
Will be ignored if template is not-null.Method Detail |
public void makeTemplateNode(int nodeId, java.lang.String text)
makeTemplateNode
in interface LazyElement
LazyNode.makeTemplateNode(int)
,
PreFormatted#setPreFormattedText
public LazyElement getTemplateElement()
getTemplateElement
in interface LazyElement
LazyNode.getTemplateNode()
public org.w3c.dom.Node cloneNode(boolean deep)
cloneNode
in interface org.w3c.dom.Node
cloneNode
in class org.enhydra.apache.xerces.dom.ElementImpl
Node.cloneNode(boolean)
public void makeTemplateNode(int nodeId)
makeTemplateNode
in interface LazyNode
public int getNodeId()
LazyNode
getNodeId
in interface LazyNode
LazyNode.getNodeId()
public boolean isTemplateNode()
LazyNode
isTemplateNode
in interface LazyNode
LazyNode.isTemplateNode()
public LazyNode getTemplateNode()
LazyNode
getTemplateNode
in interface LazyNode
LazyNode.getTemplateNode()
public LazyNode templateClone(org.w3c.dom.Document ownerDocument)
LazyNode
templateClone
in interface LazyNode
LazyNode.templateClone(org.w3c.dom.Document)
public void setNodeValue(java.lang.String value)
setNodeValue
in interface org.w3c.dom.Node
setNodeValue
in class org.enhydra.apache.xerces.dom.NodeImpl
org.w3c.dom.Node.setNodeValue
public boolean isParentExpanded()
LazyParent
isParentExpanded
in interface LazyParent
LazyParent.isParentExpanded()
public void setParentExpanded()
LazyParent
setParentExpanded
in interface LazyParent
LazyParent.setParentExpanded()
public void setParentWhileExpanding(org.w3c.dom.Node parent)
LazyParent
setParentWhileExpanding
in interface LazyParent
LazyParent.setParentWhileExpanding(org.w3c.dom.Node)
public boolean areChildrenExpanded()
LazyParent
areChildrenExpanded
in interface LazyParent
LazyParent.areChildrenExpanded()
public void setChildrenExpanded()
LazyParent
setChildrenExpanded
in interface LazyParent
LazyParent.setChildrenExpanded()
public void appendChildWhileExpanding(org.w3c.dom.Node child)
LazyParent
appendChildWhileExpanding
in interface LazyParent
LazyParent.appendChildWhileExpanding(org.w3c.dom.Node)
public org.w3c.dom.Node getParentNode()
getParentNode
in interface org.w3c.dom.Node
getParentNode
in class org.enhydra.apache.xerces.dom.ChildNode
Node.getParentNode()
public org.w3c.dom.NodeList getChildNodes()
getChildNodes
in interface org.w3c.dom.Node
getChildNodes
in class org.enhydra.apache.xerces.dom.ParentNode
Node.getChildNodes()
public org.w3c.dom.Node getFirstChild()
getFirstChild
in interface org.w3c.dom.Node
getFirstChild
in class org.enhydra.apache.xerces.dom.ParentNode
Node.getFirstChild()
public org.w3c.dom.Node getLastChild()
getLastChild
in interface org.w3c.dom.Node
getLastChild
in class org.enhydra.apache.xerces.dom.ParentNode
Node.getLastChild()
public org.w3c.dom.Node getPreviousSibling()
getPreviousSibling
in interface org.w3c.dom.Node
getPreviousSibling
in class org.enhydra.apache.xerces.dom.ChildNode
Node.getPreviousSibling()
public org.w3c.dom.Node getNextSibling()
getNextSibling
in interface org.w3c.dom.Node
getNextSibling
in class org.enhydra.apache.xerces.dom.ChildNode
Node.getNextSibling()
public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild) throws org.w3c.dom.DOMException
insertBefore
in interface org.w3c.dom.Node
insertBefore
in class org.enhydra.apache.xerces.dom.ParentNode
org.w3c.dom.DOMException
Node.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)
public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException
replaceChild
in interface org.w3c.dom.Node
replaceChild
in class org.enhydra.apache.xerces.dom.ParentNode
org.w3c.dom.DOMException
Node.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node)
public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException
removeChild
in interface org.w3c.dom.Node
removeChild
in class org.enhydra.apache.xerces.dom.ParentNode
org.w3c.dom.DOMException
Node.removeChild(org.w3c.dom.Node)
public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild) throws org.w3c.dom.DOMException
appendChild
in interface org.w3c.dom.Node
appendChild
in class org.enhydra.apache.xerces.dom.NodeImpl
org.w3c.dom.DOMException
Node.appendChild(org.w3c.dom.Node)
public boolean hasChildNodes()
hasChildNodes
in interface org.w3c.dom.Node
hasChildNodes
in class org.enhydra.apache.xerces.dom.ParentNode
Node.hasChildNodes()
public void normalize()
normalize
in interface org.w3c.dom.Node
normalize
in class org.enhydra.apache.xerces.dom.ElementImpl
Node.normalize()
public boolean areAttributesExpanded()
areAttributesExpanded
in interface LazyElement
public org.w3c.dom.NamedNodeMap getAttributes()
getAttributes
in interface org.w3c.dom.Node
getAttributes
in class org.enhydra.apache.xerces.dom.ElementImpl
Node.getAttributes()
public java.lang.String getAttribute(java.lang.String name)
getAttribute
in interface org.w3c.dom.Element
getAttribute
in class org.enhydra.apache.xerces.dom.ElementImpl
Element.getAttribute(java.lang.String)
public void setAttribute(java.lang.String name, java.lang.String value) throws org.w3c.dom.DOMException
setAttribute
in interface org.w3c.dom.Element
setAttribute
in class org.enhydra.apache.xerces.dom.ElementImpl
org.w3c.dom.DOMException
Element.setAttribute(java.lang.String, java.lang.String)
public void removeAttribute(java.lang.String name) throws org.w3c.dom.DOMException
removeAttribute
in interface org.w3c.dom.Element
removeAttribute
in class org.enhydra.apache.xerces.dom.ElementImpl
org.w3c.dom.DOMException
Element.removeAttribute(java.lang.String)
public org.w3c.dom.Attr getAttributeNode(java.lang.String name)
getAttributeNode
in interface org.w3c.dom.Element
getAttributeNode
in class org.enhydra.apache.xerces.dom.ElementImpl
Element.getAttributeNode(java.lang.String)
public org.w3c.dom.Attr setAttributeNode(org.w3c.dom.Attr newAttr) throws org.w3c.dom.DOMException
setAttributeNode
in interface org.w3c.dom.Element
setAttributeNode
in class org.enhydra.apache.xerces.dom.ElementImpl
org.w3c.dom.DOMException
Element.setAttributeNode(org.w3c.dom.Attr)
public org.w3c.dom.Attr removeAttributeNode(org.w3c.dom.Attr oldAttr) throws org.w3c.dom.DOMException
removeAttributeNode
in interface org.w3c.dom.Element
removeAttributeNode
in class org.enhydra.apache.xerces.dom.ElementImpl
org.w3c.dom.DOMException
Element.removeAttributeNode(org.w3c.dom.Attr)
public java.lang.String getAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
getAttributeNS
in interface org.w3c.dom.Element
getAttributeNS
in class org.enhydra.apache.xerces.dom.ElementImpl
Element.getAttributeNS(java.lang.String, java.lang.String)
public void setAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String value) throws org.w3c.dom.DOMException
setAttributeNS
in interface org.w3c.dom.Element
setAttributeNS
in class org.enhydra.apache.xerces.dom.ElementImpl
org.w3c.dom.DOMException
Element.setAttributeNS(java.lang.String, java.lang.String, java.lang.String)
public void removeAttributeNS(java.lang.String namespaceURI, java.lang.String localName) throws org.w3c.dom.DOMException
removeAttributeNS
in interface org.w3c.dom.Element
removeAttributeNS
in class org.enhydra.apache.xerces.dom.ElementImpl
org.w3c.dom.DOMException
Element.removeAttributeNS(java.lang.String, java.lang.String)
public org.w3c.dom.Attr getAttributeNodeNS(java.lang.String namespaceURI, java.lang.String localName)
getAttributeNodeNS
in interface org.w3c.dom.Element
getAttributeNodeNS
in class org.enhydra.apache.xerces.dom.ElementImpl
Element.getAttributeNodeNS(java.lang.String, java.lang.String)
public org.w3c.dom.Attr setAttributeNodeNS(org.w3c.dom.Attr newAttr) throws org.w3c.dom.DOMException
setAttributeNodeNS
in interface org.w3c.dom.Element
setAttributeNodeNS
in class org.enhydra.apache.xerces.dom.ElementImpl
org.w3c.dom.DOMException
Element.setAttributeNodeNS(org.w3c.dom.Attr)
public java.lang.String getPreFormattedText()
PreFormattedText
getPreFormattedText
in interface PreFormattedText
PreFormattedText.getPreFormattedText()
public void setPreFormattedText(java.lang.String text)
PreFormattedText
setPreFormattedText
in interface PreFormattedText
PreFormatted#setPreFormattedText
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |