Package org.jdom2.located
Class LocatedComment
- java.lang.Object
-
- org.jdom2.Content
-
- org.jdom2.Comment
-
- org.jdom2.located.LocatedComment
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,Located,NamespaceAware
public class LocatedComment extends Comment implements Located
An XML comment. Methods allow the user to get and set the text of the comment.- Author:
- Rolf Lear
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jdom2.Content
Content.CType
-
-
Constructor Summary
Constructors Constructor Description LocatedComment(java.lang.String text)This creates the comment with the supplied text.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumn()Get the column (character on the line).intgetLine()Get the line numbervoidsetColumn(int col)Set the column (character on the line).voidsetLine(int line)Set the line number-
Methods inherited from class org.jdom2.Comment
clone, detach, getText, getValue, setParent, setText, toString
-
Methods inherited from class org.jdom2.Content
equals, getCType, getDocument, getNamespacesInherited, getNamespacesInScope, getNamespacesIntroduced, getParent, getParentElement, hashCode
-
-
-
-
Method Detail
-
getLine
public int getLine()
Description copied from interface:LocatedGet the line number
-
getColumn
public int getColumn()
Description copied from interface:LocatedGet the column (character on the line).
-
setLine
public void setLine(int line)
Description copied from interface:LocatedSet the line number
-
-