public class SimpleAdapterDocument extends AbstractAdapterNode implements Document
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 and Description |
---|
SimpleAdapterDocument(AdapterFactory adapterFactory,
AdapterNode parent,
String propertyName,
Object value) |
appendChild, buildChildAdapters, cloneNode, compareDocumentPosition, getAdapterFactory, getAttributes, getBaseURI, getChildBeforeOrAfter, getFeature, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParent, getParentNode, getPrefix, getPreviousSibling, getPropertyName, getPropertyValue, getTextContent, getUserData, hasAttributes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, operationNotSupported, removeChild, replaceChild, setAdapterFactory, setContext, setNodeValue, setParent, setPrefix, setPropertyName, setTextContent, setUserData, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getFeature, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
public SimpleAdapterDocument(AdapterFactory adapterFactory, AdapterNode parent, String propertyName, Object value)
public void setPropertyValue(Object prop)
setPropertyValue
in interface AdapterNode
setPropertyValue
in class AbstractAdapterNode
prop
- the Java object (property) that we are adaptingprotected List<Node> getChildAdapters()
AbstractAdapterNode
getChildAdapters
in class AbstractAdapterNode
public NodeList getChildNodes()
getChildNodes
in interface Node
getChildNodes
in class AbstractAdapterNode
public DocumentType getDoctype()
getDoctype
in interface Document
public Element getDocumentElement()
getDocumentElement
in interface Document
public Element getElementById(String string)
getElementById
in interface Document
public NodeList getElementsByTagName(String string)
getElementsByTagName
in interface Document
getElementsByTagName
in class AbstractAdapterNode
public NodeList getElementsByTagNameNS(String string, String string1)
getElementsByTagNameNS
in interface Document
getElementsByTagNameNS
in class AbstractAdapterNode
public Node getFirstChild()
getFirstChild
in interface Node
getFirstChild
in class AbstractAdapterNode
public DOMImplementation getImplementation()
getImplementation
in interface Document
public Node getLastChild()
getLastChild
in interface Node
getLastChild
in class AbstractAdapterNode
public String getNodeName()
getNodeName
in interface Node
getNodeName
in class AbstractAdapterNode
public short getNodeType()
getNodeType
in interface Node
getNodeType
in class AbstractAdapterNode
public Attr createAttribute(String string) throws DOMException
createAttribute
in interface Document
DOMException
public Attr createAttributeNS(String string, String string1) throws DOMException
createAttributeNS
in interface Document
DOMException
public CDATASection createCDATASection(String string) throws DOMException
createCDATASection
in interface Document
DOMException
public Comment createComment(String string)
createComment
in interface Document
public DocumentFragment createDocumentFragment()
createDocumentFragment
in interface Document
public Element createElement(String string) throws DOMException
createElement
in interface Document
DOMException
public Element createElementNS(String string, String string1) throws DOMException
createElementNS
in interface Document
DOMException
public EntityReference createEntityReference(String string) throws DOMException
createEntityReference
in interface Document
DOMException
public ProcessingInstruction createProcessingInstruction(String string, String string1) throws DOMException
createProcessingInstruction
in interface Document
DOMException
public Text createTextNode(String string)
createTextNode
in interface Document
public boolean hasChildNodes()
hasChildNodes
in interface Node
hasChildNodes
in class AbstractAdapterNode
public Node importNode(Node node, boolean b) throws DOMException
importNode
in interface Document
DOMException
public Node getChildAfter(Node child)
AdapterNode
getChildAfter
in interface AdapterNode
getChildAfter
in class AbstractAdapterNode
child
- this nodepublic Node getChildBefore(Node child)
AdapterNode
getChildBefore
in interface AdapterNode
getChildBefore
in class AbstractAdapterNode
child
- this nodepublic String getInputEncoding()
getInputEncoding
in interface Document
public String getXmlEncoding()
getXmlEncoding
in interface Document
public boolean getXmlStandalone()
getXmlStandalone
in interface Document
public void setXmlStandalone(boolean b) throws DOMException
setXmlStandalone
in interface Document
DOMException
public String getXmlVersion()
getXmlVersion
in interface Document
public void setXmlVersion(String string) throws DOMException
setXmlVersion
in interface Document
DOMException
public boolean getStrictErrorChecking()
getStrictErrorChecking
in interface Document
public void setStrictErrorChecking(boolean b)
setStrictErrorChecking
in interface Document
public String getDocumentURI()
getDocumentURI
in interface Document
public void setDocumentURI(String string)
setDocumentURI
in interface Document
public Node adoptNode(Node node) throws DOMException
adoptNode
in interface Document
DOMException
public DOMConfiguration getDomConfig()
getDomConfig
in interface Document
public void normalizeDocument()
normalizeDocument
in interface Document
public Node renameNode(Node node, String string, String string1) throws DOMException
renameNode
in interface Document
DOMException
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.