public class XMLCommentedRoot extends XMLRoot implements CommentedNode
XMLNode.BoundPrefixattributes, attributesOrder, boundPrefixes, boundURIs, cData, children, nodeParent, qname, SCHEMA_INSTANCE, SCHEMA_URI| Constructor and Description |
|---|
XMLCommentedRoot(QName qname)
Create the Node.
|
XMLCommentedRoot(QName qname,
String comment)
Create the Node.
|
XMLCommentedRoot(String nodeName)
Create the Node, with a local part.
|
XMLCommentedRoot(String nodeName,
String comment)
Create the Node, with a local part and a comment.
|
| Modifier and Type | Method and Description |
|---|---|
XMLCommentedRoot |
copy()
Create a copy of this node.
|
XMLCommentedRoot |
copy(boolean deep)
Create a copy of this node.
|
String |
getComment()
Return the node comment.
|
boolean |
hasComment()
Return true if the node has a comment.
|
void |
setComment(String comment)
Set the node comment.
|
copyAsCommentedNode, equals, getEncoding, getURI, hashCode, setEncoding, setURIaddAttribute, 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, spliteratorgetLineNumber, hasLineNumber, setLineNumberpublic XMLCommentedRoot(String nodeName)
nodeName - the Node namepublic XMLCommentedRoot(String nodeName, String comment)
nodeName - the Node namecomment - the commentpublic XMLCommentedRoot(QName qname)
qname - the Node qualified namepublic void setComment(String comment)
setComment in interface CommentedNodecomment - the commentpublic String getComment()
getComment in interface CommentedNodepublic boolean hasComment()
hasComment in interface CommentedNodepublic XMLCommentedRoot copy()
public XMLCommentedRoot copy(boolean deep)