TYPE_COMMENT, TYPE_ELEMENT, TYPE_PROCESSING_INSTRUCTION, TYPE_TEXT
Constructor and Description |
---|
XmlComment() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getText()
Return comment text.
|
int |
getType()
Return XmlNode.TYPE_COMMENT.
|
void |
setText(java.lang.String value)
Set comment text.
|
java.lang.String |
toString() |
static XmlComment |
withText(java.lang.String text)
Convenience function for constructing a comment node with specified text.
|
public java.lang.String getText()
Return comment text.
public int getType()
Return XmlNode.TYPE_COMMENT.
public void setText(java.lang.String value)
Set comment text.
value
- Comment text.public java.lang.String toString()
toString
in class java.lang.Object
public static XmlComment withText(java.lang.String text)
Convenience function for constructing a comment node with specified text.
text
- The comment text.