|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | 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.xml.lazydom.LazyElementNoNS
Implementation of the DOM Element without namespaces that supports lazy instantiation of a template DOM. It is used by HTML, where non-standard element names containing `:' are occasionally invented. If this was derived from ElementNSImpl, it would do validation on the name and generate an error.
Fields inherited from class org.enhydra.apache.xerces.dom.ElementImpl |
attributes, name, serialVersionUID |
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.enhydra.xml.lazydom.LazyNode |
DOCUMENT_NODE_ID, NULL_NODE_ID |
Constructor Summary | |
protected |
LazyElementNoNS(LazyDocument ownerDoc,
LazyElement template,
String qualifiedName)
Constructor. |
Method Summary | |
Node |
appendChild(Node newChild)
|
void |
appendChildWhileExpanding(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? |
Node |
cloneNode(boolean deep)
|
protected void |
expandChildren()
Expand the children of this element, if they are not already expanded. |
String |
getAttribute(String name)
|
Attr |
getAttributeNode(String name)
|
Attr |
getAttributeNodeNS(String namespaceURI,
String localName)
|
String |
getAttributeNS(String namespaceURI,
String localName)
|
NamedNodeMap |
getAttributes()
|
NodeList |
getChildNodes()
|
Node |
getFirstChild()
|
Node |
getLastChild()
|
Node |
getNextSibling()
|
int |
getNodeId()
Get the node numeric id number. |
Node |
getParentNode()
|
String |
getPreFormattedText()
Get the pre-formatted text for a node. |
Node |
getPreviousSibling()
|
LazyElement |
getTemplateElement()
Get the template for this node. |
LazyNode |
getTemplateNode()
Get the template node as a LazyNode. |
boolean |
hasChildNodes()
|
Node |
insertBefore(Node newChild,
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,
String text)
Mark the node as a template node and associated preformatted text. |
void |
normalize()
|
void |
removeAttribute(String name)
|
Attr |
removeAttributeNode(Attr oldAttr)
|
void |
removeAttributeNS(String namespaceURI,
String localName)
|
Node |
removeChild(Node oldChild)
|
Node |
replaceChild(Node newChild,
Node oldChild)
|
void |
setAttribute(String name,
String value)
|
Attr |
setAttributeNode(Attr newAttr)
|
Attr |
setAttributeNodeNS(Attr newAttr)
|
void |
setAttributeNS(String namespaceURI,
String qualifiedName,
String value)
|
void |
setChildrenExpanded()
Flag the children as being expanded. |
void |
setNodeValue(String value)
Set the node value, invalidating the id. |
void |
setParentExpanded()
Flag the parent as being expanded. |
void |
setParentWhileExpanding(Node parent)
Set the parent of this node during expansion. |
void |
setPreFormattedText(String text)
Set the pre-formatted text for a node. |
LazyNode |
templateClone(Document ownerDocument)
Create a new node, using this node as the template. |
Methods inherited from class org.enhydra.apache.xerces.dom.ElementImpl |
getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, hasAttributes, reconcileDefaultAttributes, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, synchronizeData |
Methods inherited from class org.enhydra.apache.xerces.dom.ParentNode |
checkNormalizationAfterInsert, checkNormalizationAfterRemove, getChildNodesUnoptimized, getLength, getOwnerDocument, internalInsertBefore, internalRemoveChild, item, lastChild, lastChild, ownerDocument, synchronizeChildren |
Methods inherited from class org.enhydra.apache.xerces.dom.ChildNode |
parentNode, previousSibling |
Methods inherited from class org.enhydra.apache.xerces.dom.NodeImpl |
addEventListener, changed, changes, compareDocumentPosition, dispatchEvent, getBaseURI, getFeature, getLocalName, getNamespaceURI, getNodeValue, getPrefix, getReadOnly, getTextContent, getUserData, getUserData, hasStringValue, hasStringValue, internalIsIgnorableWhitespace, isDefaultNamespace, isEqualNode, isFirstChild, isFirstChild, isIgnorableWhitespace, isNormalized, isNormalized, isOwned, isOwned, isReadOnly, isReadOnly, isSameNode, isSpecified, isSpecified, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, needsSyncChildren, needsSyncData, needsSyncData, removeEventListener, setPrefix, setTextContent, setUserData, setUserData, toString |
Methods inherited from class java.lang.Object |
|
Methods inherited from interface org.w3c.dom.Element |
getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS |
Methods inherited from interface org.w3c.dom.Node |
compareDocumentPosition, getBaseURI, getFeature, getLocalName, getNamespaceURI, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getPrefix, getTextContent, getUserData, hasAttributes, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, setPrefix, setTextContent, setUserData |
Constructor Detail |
protected LazyElementNoNS(LazyDocument ownerDoc, LazyElement template, String qualifiedName)
ownerDoc
- The document that owns this node.template
- If not-null, get the parameters from this template.qualifiedName
- The tag name for the node.
Will be ignored if template is not-null.Method Detail |
public void makeTemplateNode(int nodeId, String text)
makeTemplateNode
in interface LazyElement
LazyNode.makeTemplateNode(int)
,
PreFormattedText.setPreFormattedText(java.lang.String)
public LazyElement getTemplateElement()
getTemplateElement
in interface LazyElement
LazyNode.getTemplateNode()
public Node cloneNode(boolean deep)
cloneNode
in interface 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(Document ownerDocument)
LazyNode
templateClone
in interface LazyNode
LazyNode.templateClone(org.w3c.dom.Document)
public void setNodeValue(String value)
setNodeValue
in interface Node
setNodeValue
in class org.enhydra.apache.xerces.dom.NodeImpl
Node.setNodeValue(java.lang.String)
public boolean isParentExpanded()
LazyParent
isParentExpanded
in interface LazyParent
LazyParent.isParentExpanded()
public void setParentExpanded()
LazyParent
setParentExpanded
in interface LazyParent
LazyParent.setParentExpanded()
public void setParentWhileExpanding(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(Node child)
LazyParent
appendChildWhileExpanding
in interface LazyParent
LazyParent.appendChildWhileExpanding(org.w3c.dom.Node)
protected void expandChildren()
public Node getParentNode()
getParentNode
in interface Node
getParentNode
in class org.enhydra.apache.xerces.dom.ChildNode
Node.getParentNode()
public NodeList getChildNodes()
getChildNodes
in interface Node
getChildNodes
in class org.enhydra.apache.xerces.dom.ParentNode
Node.getChildNodes()
public Node getFirstChild()
getFirstChild
in interface Node
getFirstChild
in class org.enhydra.apache.xerces.dom.ParentNode
Node.getFirstChild()
public Node getLastChild()
getLastChild
in interface Node
getLastChild
in class org.enhydra.apache.xerces.dom.ParentNode
Node.getLastChild()
public Node getPreviousSibling()
getPreviousSibling
in interface Node
getPreviousSibling
in class org.enhydra.apache.xerces.dom.ChildNode
Node.getPreviousSibling()
public Node getNextSibling()
getNextSibling
in interface Node
getNextSibling
in class org.enhydra.apache.xerces.dom.ChildNode
Node.getNextSibling()
public Node insertBefore(Node newChild, Node refChild) throws DOMException
insertBefore
in interface Node
insertBefore
in class org.enhydra.apache.xerces.dom.ParentNode
Node.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
replaceChild
in interface Node
replaceChild
in class org.enhydra.apache.xerces.dom.ParentNode
Node.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node)
public Node removeChild(Node oldChild) throws DOMException
removeChild
in interface Node
removeChild
in class org.enhydra.apache.xerces.dom.ParentNode
Node.removeChild(org.w3c.dom.Node)
public Node appendChild(Node newChild) throws DOMException
appendChild
in interface Node
appendChild
in class org.enhydra.apache.xerces.dom.NodeImpl
Node.appendChild(org.w3c.dom.Node)
public boolean hasChildNodes()
hasChildNodes
in interface Node
hasChildNodes
in class org.enhydra.apache.xerces.dom.ParentNode
Node.hasChildNodes()
public void normalize()
normalize
in interface Node
normalize
in class org.enhydra.apache.xerces.dom.ElementImpl
Node.normalize()
public boolean areAttributesExpanded()
areAttributesExpanded
in interface LazyElement
public NamedNodeMap getAttributes()
getAttributes
in interface Node
getAttributes
in class org.enhydra.apache.xerces.dom.ElementImpl
Node.getAttributes()
public String getAttribute(String name)
getAttribute
in interface Element
getAttribute
in class org.enhydra.apache.xerces.dom.ElementImpl
Element.getAttribute(java.lang.String)
public void setAttribute(String name, String value) throws DOMException
setAttribute
in interface Element
setAttribute
in class org.enhydra.apache.xerces.dom.ElementImpl
Element.setAttribute(java.lang.String, java.lang.String)
public void removeAttribute(String name) throws DOMException
removeAttribute
in interface Element
removeAttribute
in class org.enhydra.apache.xerces.dom.ElementImpl
Element.removeAttribute(java.lang.String)
public Attr getAttributeNode(String name)
getAttributeNode
in interface Element
getAttributeNode
in class org.enhydra.apache.xerces.dom.ElementImpl
Element.getAttributeNode(java.lang.String)
public Attr setAttributeNode(Attr newAttr) throws DOMException
setAttributeNode
in interface Element
setAttributeNode
in class org.enhydra.apache.xerces.dom.ElementImpl
Element.setAttributeNode(org.w3c.dom.Attr)
public Attr removeAttributeNode(Attr oldAttr) throws DOMException
removeAttributeNode
in interface Element
removeAttributeNode
in class org.enhydra.apache.xerces.dom.ElementImpl
Element.removeAttributeNode(org.w3c.dom.Attr)
public String getAttributeNS(String namespaceURI, String localName)
getAttributeNS
in interface Element
getAttributeNS
in class org.enhydra.apache.xerces.dom.ElementImpl
Element.getAttributeNS(java.lang.String, java.lang.String)
public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException
setAttributeNS
in interface Element
setAttributeNS
in class org.enhydra.apache.xerces.dom.ElementImpl
Element.setAttributeNS(java.lang.String, java.lang.String, java.lang.String)
public void removeAttributeNS(String namespaceURI, String localName) throws DOMException
removeAttributeNS
in interface Element
removeAttributeNS
in class org.enhydra.apache.xerces.dom.ElementImpl
Element.removeAttributeNS(java.lang.String, java.lang.String)
public Attr getAttributeNodeNS(String namespaceURI, String localName)
getAttributeNodeNS
in interface Element
getAttributeNodeNS
in class org.enhydra.apache.xerces.dom.ElementImpl
Element.getAttributeNodeNS(java.lang.String, java.lang.String)
public Attr setAttributeNodeNS(Attr newAttr) throws DOMException
setAttributeNodeNS
in interface Element
setAttributeNodeNS
in class org.enhydra.apache.xerces.dom.ElementImpl
Element.setAttributeNodeNS(org.w3c.dom.Attr)
public String getPreFormattedText()
PreFormattedText
getPreFormattedText
in interface PreFormattedText
PreFormattedText.getPreFormattedText()
public void setPreFormattedText(String text)
PreFormattedText
setPreFormattedText
in interface PreFormattedText
PreFormattedText.setPreFormattedText(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |