public class XMLRoot extends XMLNode
XMLNode.BoundPrefix| Modifier and Type | Field and Description |
|---|---|
protected String |
encoding
The XML encoding.
|
attributes, attributesOrder, boundPrefixes, boundURIs, cData, children, nodeParent, qname, SCHEMA_INSTANCE, SCHEMA_URI| Constructor and Description |
|---|
XMLRoot(QName qName)
Create the root Node.
|
XMLRoot(String nodeName)
Create the root Node, with a local part.
|
XMLRoot(XMLNode node)
Create the root Node from a node.
|
| Modifier and Type | Method and Description |
|---|---|
XMLRoot |
copy()
Create a copy of this node.
|
XMLRoot |
copy(boolean deep)
Create a copy of this node.
|
XMLCommentedRoot |
copyAsCommentedNode()
Create a copy of this node as a commented root.
|
boolean |
equals(Object obj) |
String |
getEncoding()
Return the declared encoding of the XML file.
|
String |
getURI()
Return the XML document URI.
|
int |
hashCode() |
void |
setEncoding(String encoding)
Set the encoding of the XML file.
|
void |
setURI(String uri)
Set the XML document URI.
|
addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addChild, addChild, addChild, attributesIterator, attributeValueIsBoolean, attributeValueIsBoolean, attributeValueIsByte, attributeValueIsByte, attributeValueIsChar, attributeValueIsChar, attributeValueIsDouble, attributeValueIsDouble, attributeValueIsFloat, attributeValueIsFloat, attributeValueIsInt, attributeValueIsInt, attributeValueIsInt, attributeValueIsLong, attributeValueIsLong, attributeValueIsLong, attributeValueIsLong, attributeValueIsShort, attributeValueIsShort, bindPrefix, CDATAValueIsBoolean, CDATAValueIsByte, CDATAValueIsChar, CDATAValueIsDouble, CDATAValueIsFloat, CDATAValueIsInt, CDATAValueIsInt, CDATAValueIsLong, CDATAValueIsLong, CDATAValueIsShort, countAttributes, countChildren, getAllChildren, getAllChildren, getAttributes, getAttributeValue, getAttributeValue, getAttributeValueAsBoolean, getAttributeValueAsBoolean, getAttributeValueAsBoolean, getAttributeValueAsByte, getAttributeValueAsByte, getAttributeValueAsByte, getAttributeValueAsChar, getAttributeValueAsChar, getAttributeValueAsChar, getAttributeValueAsDouble, getAttributeValueAsDouble, getAttributeValueAsDouble, getAttributeValueAsFloat, getAttributeValueAsFloat, getAttributeValueAsFloat, getAttributeValueAsInt, getAttributeValueAsInt, getAttributeValueAsInt, getAttributeValueAsInt, getAttributeValueAsLong, getAttributeValueAsLong, getAttributeValueAsLong, getAttributeValueAsLong, getAttributeValueAsQName, getAttributeValueAsQName, getAttributeValueAsShort, getAttributeValueAsShort, getAttributeValueAsShort, getBoundedURI, getBoundPrefix, getBoundPrefixes, getBoundURIs, getCDATA, getCDATAValueAsBoolean, getCDATAValueAsByte, getCDATAValueAsChar, getCDATAValueAsDouble, getCDATAValueAsFloat, getCDATAValueAsInt, getCDATAValueAsInt, getCDATAValueAsLong, getCDATAValueAsLong, getCDATAValueAsShort, getCDATAValueAsString, getChild, getChildren, getCompleteName, getEscapedCDATA, getFirstChild, getIndex, getIndexInParent, getIndirectBoundedURI, getIndirectBoundPrefix, getLastChild, getLocalPart, getName, getNamespaceURI, getNextSibling, getNodeLevel, getNodePath, getParent, getPrefix, getPrefixedName, getPreviousSibling, getQualifiedName, getSchemaLocationDeclaration, getSchemaLocationValue, hasAttribute, hasAttribute, hasAttribute, hasAttributes, hasBoundPrefix, hasBoundPrefixes, hasBoundURI, hasBoundURIs, hasCDATA, hasChildren, hasIndirectBoundPrefix, hasIndirectBoundURI, hasParent, hasSchemaLocationDeclaration, isWellFormed, iterator, orderedAttributesIterator, removeAttribute, removeAttribute, search, search, search, search, searchFirst, searchFirst, searchFirst, searchFirst, searchFirstForNames, searchFirstForNames, searchForNames, searchForNames, setBoundPrefixes, setCDATA, setParent, toString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorgetComment, hasComment, setCommentgetLineNumber, hasLineNumber, setLineNumberprotected String encoding
public XMLRoot(String nodeName)
nodeName - the Node nameXMLNode.XMLNode(java.lang.String)public XMLRoot(QName qName)
qName - the Node qualified namepublic XMLRoot(XMLNode node)
node - the Nodepublic void setURI(String uri)
uri - the URIpublic String getURI()
public void setEncoding(String encoding)
encoding - the encoding of the XML filepublic String getEncoding()
public XMLCommentedRoot copyAsCommentedNode()
copyAsCommentedNode in class XMLNodepublic XMLRoot copy()
public XMLRoot copy(boolean deep)