Package com.oorian.xml
Class Comment
java.lang.Object
com.oorian.xml.Comment
- All Implemented Interfaces:
XmlNode
Represents an XML comment node.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the comment content.voidsetContent(String content) Sets the comment content.toString()toXmlString(int indent) Returns the XML string representation of this node with the specified indentation level.
-
Constructor Details
-
Comment
Constructs a new Comment with the specified content.- Parameters:
content- the comment content.
-
-
Method Details
-
setContent
Sets the comment content.- Parameters:
content- the new content.
-
getContent
Returns the comment content.- Returns:
- the content.
-
toXmlString
Description copied from interface:XmlNodeReturns the XML string representation of this node with the specified indentation level.- Specified by:
toXmlStringin interfaceXmlNode- Parameters:
indent- the indentation level (number of two-space indents).- Returns:
- the formatted XML string.
-
toString
-