public class XMLCommentedNode extends XMLNode implements CommentedNode, NumberedNode
XMLNode.BoundPrefix
attributes, attributesOrder, boundPrefixes, boundURIs, cData, children, nodeParent, qname, SCHEMA_INSTANCE, SCHEMA_URI
Constructor and Description |
---|
XMLCommentedNode(QName qname)
Create the Node.
|
XMLCommentedNode(QName qname,
String comment)
Create the Node.
|
XMLCommentedNode(String nodeName)
Create the Node, with a local part.
|
XMLCommentedNode(String nodeName,
String comment)
Create the Node, with a local part and a comment.
|
XMLCommentedNode(XMLNode parent,
QName qname)
Create a Node.
|
XMLCommentedNode(XMLNode parent,
QName qname,
String comment)
Create a Node.
|
XMLCommentedNode(XMLNode parent,
String nodeName)
Create a Node.
|
XMLCommentedNode(XMLNode parent,
String nodeName,
String comment)
Create a Node.
|
Modifier and Type | Method and Description |
---|---|
XMLCommentedNode |
copy()
Create a copy of this node.
|
XMLCommentedNode |
copy(boolean deep)
Create a copy of this node.
|
String |
getComment()
Return the node comment.
|
int |
getLineNumber()
Return the line number of the Node in the XML file.
|
boolean |
hasComment()
Return true if the node has a comment.
|
boolean |
hasLineNumber()
Return true if the Node has an associated line number.
|
void |
setComment(String comment)
Set the node comment.
|
void |
setLineNumber(int lineNumber)
Set the line number of the Node in the XML file.
|
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, copyAsCommentedNode, countAttributes, countChildren, equals, 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, hashCode, 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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public XMLCommentedNode(String nodeName)
nodeName
- the Node namepublic XMLCommentedNode(String nodeName, String comment)
nodeName
- the Node namecomment
- the commentpublic XMLCommentedNode(QName qname)
qname
- the Node qualified namepublic XMLCommentedNode(QName qname, String comment)
qname
- the Node qualified namecomment
- the commentpublic XMLCommentedNode(XMLNode parent, String nodeName)
parent
- the Node parentnodeName
- the Node namepublic XMLCommentedNode(XMLNode parent, String nodeName, String comment)
parent
- the Node parentnodeName
- the Node namecomment
- the commentpublic XMLCommentedNode(XMLNode parent, QName qname)
parent
- the Node parentqname
- the Node qualified namepublic void setComment(String comment)
setComment
in interface CommentedNode
comment
- the commentpublic String getComment()
getComment
in interface CommentedNode
public boolean hasComment()
hasComment
in interface CommentedNode
public void setLineNumber(int lineNumber)
setLineNumber
in interface NumberedNode
lineNumber
- the line numberpublic int getLineNumber()
getLineNumber
in interface NumberedNode
public boolean hasLineNumber()
hasLineNumber
in interface NumberedNode
public XMLCommentedNode copy()
public XMLCommentedNode copy(boolean deep)