Class LazyDocument
- java.lang.Object
-
- lumis.portal.serviceinterface.style.impl.common.LazyDocument
-
-
Field Summary
-
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
-
-
Constructor Summary
Constructors Constructor Description LazyDocument(String xml)
Creates a new instance with the given XML string.
-
Method Summary
-
-
-
Constructor Detail
-
LazyDocument
public LazyDocument(String xml)
Creates a new instance with the given XML string.- Parameters:
xml
- the XML string.- Since:
- 8.1.0
-
-
Method Detail
-
getDoctype
public DocumentType getDoctype()
- Specified by:
getDoctype
in interfaceDocument
-
getImplementation
public DOMImplementation getImplementation()
- Specified by:
getImplementation
in interfaceDocument
-
getDocumentElement
public Element getDocumentElement()
- Specified by:
getDocumentElement
in interfaceDocument
-
createElement
public Element createElement(String tagName) throws DOMException
- Specified by:
createElement
in interfaceDocument
- Throws:
DOMException
-
createDocumentFragment
public DocumentFragment createDocumentFragment()
- Specified by:
createDocumentFragment
in interfaceDocument
-
createTextNode
public Text createTextNode(String data)
- Specified by:
createTextNode
in interfaceDocument
-
createComment
public Comment createComment(String data)
- Specified by:
createComment
in interfaceDocument
-
createCDATASection
public CDATASection createCDATASection(String data) throws DOMException
- Specified by:
createCDATASection
in interfaceDocument
- Throws:
DOMException
-
createProcessingInstruction
public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException
- Specified by:
createProcessingInstruction
in interfaceDocument
- Throws:
DOMException
-
createAttribute
public Attr createAttribute(String name) throws DOMException
- Specified by:
createAttribute
in interfaceDocument
- Throws:
DOMException
-
getNodeName
public String getNodeName()
- Specified by:
getNodeName
in interfaceNode
-
getNodeValue
public String getNodeValue() throws DOMException
- Specified by:
getNodeValue
in interfaceNode
- Throws:
DOMException
-
createEntityReference
public EntityReference createEntityReference(String name) throws DOMException
- Specified by:
createEntityReference
in interfaceDocument
- Throws:
DOMException
-
setNodeValue
public void setNodeValue(String nodeValue) throws DOMException
- Specified by:
setNodeValue
in interfaceNode
- Throws:
DOMException
-
getNodeType
public short getNodeType()
- Specified by:
getNodeType
in interfaceNode
-
getParentNode
public Node getParentNode()
- Specified by:
getParentNode
in interfaceNode
-
getChildNodes
public NodeList getChildNodes()
- Specified by:
getChildNodes
in interfaceNode
-
getFirstChild
public Node getFirstChild()
- Specified by:
getFirstChild
in interfaceNode
-
getElementsByTagName
public NodeList getElementsByTagName(String tagname)
- Specified by:
getElementsByTagName
in interfaceDocument
-
getLastChild
public Node getLastChild()
- Specified by:
getLastChild
in interfaceNode
-
getPreviousSibling
public Node getPreviousSibling()
- Specified by:
getPreviousSibling
in interfaceNode
-
getNextSibling
public Node getNextSibling()
- Specified by:
getNextSibling
in interfaceNode
-
getAttributes
public NamedNodeMap getAttributes()
- Specified by:
getAttributes
in interfaceNode
-
importNode
public Node importNode(Node importedNode, boolean deep) throws DOMException
- Specified by:
importNode
in interfaceDocument
- Throws:
DOMException
-
getOwnerDocument
public Document getOwnerDocument()
- Specified by:
getOwnerDocument
in interfaceNode
-
insertBefore
public Node insertBefore(Node newChild, Node refChild) throws DOMException
- Specified by:
insertBefore
in interfaceNode
- Throws:
DOMException
-
replaceChild
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
- Specified by:
replaceChild
in interfaceNode
- Throws:
DOMException
-
removeChild
public Node removeChild(Node oldChild) throws DOMException
- Specified by:
removeChild
in interfaceNode
- Throws:
DOMException
-
appendChild
public Node appendChild(Node newChild) throws DOMException
- Specified by:
appendChild
in interfaceNode
- Throws:
DOMException
-
createElementNS
public Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException
- Specified by:
createElementNS
in interfaceDocument
- Throws:
DOMException
-
hasChildNodes
public boolean hasChildNodes()
- Specified by:
hasChildNodes
in interfaceNode
-
createAttributeNS
public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException
- Specified by:
createAttributeNS
in interfaceDocument
- Throws:
DOMException
-
isSupported
public boolean isSupported(String feature, String version)
- Specified by:
isSupported
in interfaceNode
-
getNamespaceURI
public String getNamespaceURI()
- Specified by:
getNamespaceURI
in interfaceNode
-
getElementsByTagNameNS
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
- Specified by:
getElementsByTagNameNS
in interfaceDocument
-
setPrefix
public void setPrefix(String prefix) throws DOMException
- Specified by:
setPrefix
in interfaceNode
- Throws:
DOMException
-
getElementById
public Element getElementById(String elementId)
- Specified by:
getElementById
in interfaceDocument
-
getInputEncoding
public String getInputEncoding()
- Specified by:
getInputEncoding
in interfaceDocument
-
getXmlEncoding
public String getXmlEncoding()
- Specified by:
getXmlEncoding
in interfaceDocument
-
getXmlStandalone
public boolean getXmlStandalone()
- Specified by:
getXmlStandalone
in interfaceDocument
-
getLocalName
public String getLocalName()
- Specified by:
getLocalName
in interfaceNode
-
setXmlStandalone
public void setXmlStandalone(boolean xmlStandalone) throws DOMException
- Specified by:
setXmlStandalone
in interfaceDocument
- Throws:
DOMException
-
hasAttributes
public boolean hasAttributes()
- Specified by:
hasAttributes
in interfaceNode
-
getBaseURI
public String getBaseURI()
- Specified by:
getBaseURI
in interfaceNode
-
getXmlVersion
public String getXmlVersion()
- Specified by:
getXmlVersion
in interfaceDocument
-
compareDocumentPosition
public short compareDocumentPosition(Node other) throws DOMException
- Specified by:
compareDocumentPosition
in interfaceNode
- Throws:
DOMException
-
setXmlVersion
public void setXmlVersion(String xmlVersion) throws DOMException
- Specified by:
setXmlVersion
in interfaceDocument
- Throws:
DOMException
-
getTextContent
public String getTextContent() throws DOMException
- Specified by:
getTextContent
in interfaceNode
- Throws:
DOMException
-
getStrictErrorChecking
public boolean getStrictErrorChecking()
- Specified by:
getStrictErrorChecking
in interfaceDocument
-
setStrictErrorChecking
public void setStrictErrorChecking(boolean strictErrorChecking)
- Specified by:
setStrictErrorChecking
in interfaceDocument
-
setTextContent
public void setTextContent(String textContent) throws DOMException
- Specified by:
setTextContent
in interfaceNode
- Throws:
DOMException
-
getDocumentURI
public String getDocumentURI()
- Specified by:
getDocumentURI
in interfaceDocument
-
setDocumentURI
public void setDocumentURI(String documentURI)
- Specified by:
setDocumentURI
in interfaceDocument
-
adoptNode
public Node adoptNode(Node source) throws DOMException
- Specified by:
adoptNode
in interfaceDocument
- Throws:
DOMException
-
isSameNode
public boolean isSameNode(Node other)
- Specified by:
isSameNode
in interfaceNode
-
lookupPrefix
public String lookupPrefix(String namespaceURI)
- Specified by:
lookupPrefix
in interfaceNode
-
isDefaultNamespace
public boolean isDefaultNamespace(String namespaceURI)
- Specified by:
isDefaultNamespace
in interfaceNode
-
lookupNamespaceURI
public String lookupNamespaceURI(String prefix)
- Specified by:
lookupNamespaceURI
in interfaceNode
-
isEqualNode
public boolean isEqualNode(Node arg)
- Specified by:
isEqualNode
in interfaceNode
-
getDomConfig
public DOMConfiguration getDomConfig()
- Specified by:
getDomConfig
in interfaceDocument
-
normalizeDocument
public void normalizeDocument()
- Specified by:
normalizeDocument
in interfaceDocument
-
renameNode
public Node renameNode(Node n, String namespaceURI, String qualifiedName) throws DOMException
- Specified by:
renameNode
in interfaceDocument
- Throws:
DOMException
-
getFeature
public Object getFeature(String feature, String version)
- Specified by:
getFeature
in interfaceNode
-
setUserData
public Object setUserData(String key, Object data, UserDataHandler handler)
- Specified by:
setUserData
in interfaceNode
-
getUserData
public Object getUserData(String key)
- Specified by:
getUserData
in interfaceNode
-
-