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_NODEpublic static CDataDocumentDecorator newInstance() throws ParserConfigurationException
Document and decorates it with the returned
CDataDocumentDecorator instance.CDataDocumentDecorator instance.ParserConfigurationException - if anything goes wrong while creating the Document instance.public static CDataDocumentDecorator newInstance(Document decorated)
CDataDocumentDecorator instance given a Document to decorate.decorated - the Document to decorate.CDataDocumentDecorator instance.public Node appendChild(Node newChild)
appendChild in interface Nodepublic short compareDocumentPosition(Node other)
compareDocumentPosition in interface Nodepublic Attr createAttribute(String name)
createAttribute in interface Documentpublic Attr createAttributeNS(String namespaceURI, String qualifiedName)
createAttributeNS in interface Documentpublic CDATASection createCDATASection(String data)
createCDATASection in interface Documentpublic Comment createComment(String data)
createComment in interface Documentpublic DocumentFragment createDocumentFragment()
createDocumentFragment in interface Documentpublic Element createElement(String tagName)
createElement in interface Documentpublic Element createElementNS(String namespaceURI, String qualifiedName)
createElementNS in interface Documentpublic EntityReference createEntityReference(String name)
createEntityReference in interface Documentpublic ProcessingInstruction createProcessingInstruction(String target, String data)
createProcessingInstruction in interface Documentpublic Text createTextNode(String data)
createTextNode in interface Documentpublic Optional<String> exportAsString(Charset charset, boolean indent, boolean validate, boolean strictValidation)
charset - the Charset to use for the XML output.indent - a flag that tells whether or not the XML output should fit on a single line.validate - a flag that telles whether or not the XML output should be validated against an XSD.strictValidation - a flag that tells whether or not validation exception should void the marshalling result.Optional of the result of the XML marshalling operation. Can be empty.public NamedNodeMap getAttributes()
getAttributes in interface Nodepublic String getBaseURI()
getBaseURI in interface Nodepublic NodeList getChildNodes()
getChildNodes in interface Nodepublic DocumentType getDoctype()
getDoctype in interface Documentpublic Element getDocumentElement()
getDocumentElement in interface Documentpublic String getDocumentURI()
getDocumentURI in interface Documentpublic DOMConfiguration getDomConfig()
getDomConfig in interface Documentpublic Element getElementById(String elementId)
getElementById in interface Documentpublic NodeList getElementsByTagName(String tagname)
getElementsByTagName in interface Documentpublic NodeList getElementsByTagNameNS(String namespaceURI, String localName)
getElementsByTagNameNS in interface Documentpublic Object getFeature(String feature, String version)
getFeature in interface Nodepublic Node getFirstChild()
getFirstChild in interface Nodepublic DOMImplementation getImplementation()
getImplementation in interface Documentpublic String getInputEncoding()
getInputEncoding in interface Documentpublic Node getLastChild()
getLastChild in interface Nodepublic String getLocalName()
getLocalName in interface Nodepublic String getNamespaceURI()
getNamespaceURI in interface Nodepublic Node getNextSibling()
getNextSibling in interface Nodepublic String getNodeName()
getNodeName in interface Nodepublic short getNodeType()
getNodeType in interface Nodepublic String getNodeValue()
getNodeValue in interface Nodepublic Document getOwnerDocument()
getOwnerDocument in interface Nodepublic Node getParentNode()
getParentNode in interface Nodepublic Node getPreviousSibling()
getPreviousSibling in interface Nodepublic boolean getStrictErrorChecking()
getStrictErrorChecking in interface Documentpublic String getTextContent()
getTextContent in interface Nodepublic Object getUserData(String key)
getUserData in interface Nodepublic String getXmlEncoding()
getXmlEncoding in interface Documentpublic boolean getXmlStandalone()
getXmlStandalone in interface Documentpublic String getXmlVersion()
getXmlVersion in interface Documentpublic boolean hasAttributes()
hasAttributes in interface Nodepublic boolean hasChildNodes()
hasChildNodes in interface Nodepublic Node importNode(Node importedNode, boolean deep)
importNode in interface Documentpublic Node insertBefore(Node newChild, Node refChild)
insertBefore in interface Nodepublic boolean isDefaultNamespace(String namespaceURI)
isDefaultNamespace in interface Nodepublic boolean isEqualNode(Node arg)
isEqualNode in interface Nodepublic boolean isSameNode(Node other)
isSameNode in interface Nodepublic boolean isSupported(String feature, String version)
isSupported in interface Nodepublic String lookupNamespaceURI(String prefix)
lookupNamespaceURI in interface Nodepublic String lookupPrefix(String namespaceURI)
lookupPrefix in interface Nodepublic void normalizeDocument()
normalizeDocument in interface Documentpublic Node removeChild(Node oldChild)
removeChild in interface Nodepublic Node renameNode(Node n, String namespaceURI, String qualifiedName)
renameNode in interface Documentpublic Node replaceChild(Node newChild, Node oldChild)
replaceChild in interface Nodepublic void setDocumentURI(String documentURI)
setDocumentURI in interface Documentpublic void setNodeValue(String nodeValue)
setNodeValue in interface Nodepublic void setStrictErrorChecking(boolean strictErrorChecking)
setStrictErrorChecking in interface Documentpublic void setTextContent(String textContent)
setTextContent in interface Nodepublic Object setUserData(String key, Object data, UserDataHandler handler)
setUserData in interface Nodepublic void setXmlStandalone(boolean xmlStandalone)
setXmlStandalone in interface Documentpublic void setXmlVersion(String xmlVersion)
setXmlVersion in interface DocumentCopyright © 2020. All rights reserved.