|
|||||||||
| Home >> All >> org >> enhydra >> xml >> [ dom overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.enhydra.xml.dom
Class DOMAccess

java.lang.Objectorg.enhydra.xml.dom.DOMAccess
- public final class DOMAccess
- extends java.lang.Object
Method to support accessing the LazyDOM without expanding it. This works both with standard DOMs and LazyDOMs, supporting the development of code that works with either DOM.
Most methods come in two flavors, static ones that take the instance document as an argument, an instance methods that use a document contained in an instance of this object. Great care should be used if the return nodes are to be modified, as read-only template nodes maybe returned. These methods also operate on any W3C DOM.
| Field Summary | |
private org.w3c.dom.Document |
fDocument
Document being accessed. |
| Constructor Summary | |
DOMAccess(org.w3c.dom.Document document)
Create a object to access a specific document. |
|
| Method Summary | |
static org.w3c.dom.Attr |
accessAttribute(org.w3c.dom.Document document,
org.w3c.dom.Element element,
java.lang.String namespaceURI,
java.lang.String name)
Access an attribute of an Element. |
org.w3c.dom.Attr |
accessAttribute(org.w3c.dom.Element element,
java.lang.String namespaceURI,
java.lang.String name)
Access an attribute of an Element. |
java.lang.String |
accessAttributeValue(org.w3c.dom.Attr attr)
Access the value of an attribute |
static java.lang.String |
accessAttributeValue(org.w3c.dom.Document document,
org.w3c.dom.Attr attr)
Access the value of an attribute |
org.w3c.dom.Element |
accessDocumentElement()
Access the document element of the document. |
static org.w3c.dom.Element |
accessDocumentElement(org.w3c.dom.Document document)
Access the document element of a document. |
org.w3c.dom.DocumentType |
accessDocumentType()
Access the document type node. |
static org.w3c.dom.DocumentType |
accessDocumentType(org.w3c.dom.Document document)
Access the document type node. |
static org.w3c.dom.Node |
accessFirstChild(org.w3c.dom.Document document,
org.w3c.dom.Node parent)
Access the first child of a node. |
org.w3c.dom.Node |
accessFirstChild(org.w3c.dom.Node parent)
Access the first child of a node. |
private static org.w3c.dom.Node |
accessInstanceNextSibling(org.enhydra.xml.lazydom.LazyDocument lazyDoc,
org.enhydra.xml.lazydom.LazyNode instanceNode)
Access next sibling child of instance node, switching to template document if sibling is not expanded. |
static org.w3c.dom.Node |
accessNextSibling(org.w3c.dom.Document document,
org.w3c.dom.Node node)
Access the next sibling of a node. |
org.w3c.dom.Node |
accessNextSibling(org.w3c.dom.Node node)
Access the next sibling of a node. |
private static org.w3c.dom.Node |
accessTemplateFirstChild(org.enhydra.xml.lazydom.LazyDocument lazyDoc,
org.enhydra.xml.lazydom.LazyParent lazyParent)
Access first child of template node, switching to instance document if child is expanded. |
private static org.w3c.dom.Node |
accessTemplateNextSibling(org.enhydra.xml.lazydom.LazyDocument lazyDoc,
org.enhydra.xml.lazydom.LazyNode templateNode)
Access next sibling child of template node, switching to instance document if sibling is expanded. |
static org.w3c.dom.Element |
getExpandedElement(org.w3c.dom.Document document,
org.w3c.dom.Element element)
If an Element node is a LazyDOM template, expand it. |
org.w3c.dom.Element |
getExpandedElement(org.w3c.dom.Element element)
If an Element node is a LazyDOM template, expand it This is a special case of getExpandedNode(). |
static org.w3c.dom.Node |
getExpandedNode(org.w3c.dom.Document document,
org.w3c.dom.Node node)
If a Node is a LazyDOM template node, expand it. |
org.w3c.dom.Node |
getExpandedNode(org.w3c.dom.Node node)
If a Node is a LazyDOM template node, expand it. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
fDocument
private org.w3c.dom.Document fDocument
- Document being accessed.
| Constructor Detail |
DOMAccess
public DOMAccess(org.w3c.dom.Document document)
- Create a object to access a specific document.
| Method Detail |
accessDocumentType
public static org.w3c.dom.DocumentType accessDocumentType(org.w3c.dom.Document document)
- Access the document type node.
accessDocumentType
public org.w3c.dom.DocumentType accessDocumentType()
- Access the document type node.
accessTemplateFirstChild
private static org.w3c.dom.Node accessTemplateFirstChild(org.enhydra.xml.lazydom.LazyDocument lazyDoc, org.enhydra.xml.lazydom.LazyParent lazyParent)
- Access first child of template node, switching to instance document
if child is expanded.
accessFirstChild
public static org.w3c.dom.Node accessFirstChild(org.w3c.dom.Document document, org.w3c.dom.Node parent)
- Access the first child of a node.
accessFirstChild
public org.w3c.dom.Node accessFirstChild(org.w3c.dom.Node parent)
- Access the first child of a node.
accessTemplateNextSibling
private static org.w3c.dom.Node accessTemplateNextSibling(org.enhydra.xml.lazydom.LazyDocument lazyDoc, org.enhydra.xml.lazydom.LazyNode templateNode)
- Access next sibling child of template node, switching to instance
document if sibling is expanded.
accessInstanceNextSibling
private static org.w3c.dom.Node accessInstanceNextSibling(org.enhydra.xml.lazydom.LazyDocument lazyDoc, org.enhydra.xml.lazydom.LazyNode instanceNode)
- Access next sibling child of instance node, switching to template
document if sibling is not expanded.
accessNextSibling
public static org.w3c.dom.Node accessNextSibling(org.w3c.dom.Document document, org.w3c.dom.Node node)
- Access the next sibling of a node.
accessNextSibling
public org.w3c.dom.Node accessNextSibling(org.w3c.dom.Node node)
- Access the next sibling of a node.
accessDocumentElement
public static org.w3c.dom.Element accessDocumentElement(org.w3c.dom.Document document)
- Access the document element of a document.
accessDocumentElement
public org.w3c.dom.Element accessDocumentElement()
- Access the document element of the document.
accessAttribute
public static org.w3c.dom.Attr accessAttribute(org.w3c.dom.Document document, org.w3c.dom.Element element, java.lang.String namespaceURI, java.lang.String name)
- Access an attribute of an Element.
accessAttribute
public org.w3c.dom.Attr accessAttribute(org.w3c.dom.Element element, java.lang.String namespaceURI, java.lang.String name)
- Access an attribute of an Element.
accessAttributeValue
public static java.lang.String accessAttributeValue(org.w3c.dom.Document document, org.w3c.dom.Attr attr)
- Access the value of an attribute
accessAttributeValue
public java.lang.String accessAttributeValue(org.w3c.dom.Attr attr)
- Access the value of an attribute
getExpandedNode
public static org.w3c.dom.Node getExpandedNode(org.w3c.dom.Document document, org.w3c.dom.Node node)
- If a Node is a LazyDOM template node, expand it.
getExpandedNode
public org.w3c.dom.Node getExpandedNode(org.w3c.dom.Node node)
- If a Node is a LazyDOM template node, expand it.
getExpandedElement
public static org.w3c.dom.Element getExpandedElement(org.w3c.dom.Document document, org.w3c.dom.Element element)
- If an Element node is a LazyDOM template, expand it.
This is a special case of getExpandedNode().
getExpandedElement
public org.w3c.dom.Element getExpandedElement(org.w3c.dom.Element element)
- If an Element node is a LazyDOM template, expand it
This is a special case of getExpandedNode().
|
|||||||||
| Home >> All >> org >> enhydra >> xml >> [ dom overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.enhydra.xml.dom.DOMAccess