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
Constructor Summary |
LocatedComment(java.lang.String text)
This creates the comment with the supplied text. |
Method Summary |
int |
getColumn()
Get the column (character on the line). |
int |
getLine()
Get the line number |
void |
setColumn(int col)
Set the column (character on the line). |
void |
setLine(int line)
Set the line number |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
LocatedComment
public LocatedComment(java.lang.String text)
- This creates the comment with the supplied text.
- Parameters:
text
- String
content of comment.
getLine
public int getLine()
- Description copied from interface:
Located
- Get the line number
- Specified by:
getLine
in interface Located
- Returns:
- the line number
getColumn
public int getColumn()
- Description copied from interface:
Located
- Get the column (character on the line).
- Specified by:
getColumn
in interface Located
- Returns:
- the column
setLine
public void setLine(int line)
- Description copied from interface:
Located
- Set the line number
- Specified by:
setLine
in interface Located
- Parameters:
line
- the line.
setColumn
public void setColumn(int col)
- Description copied from interface:
Located
- Set the column (character on the line).
- Specified by:
setColumn
in interface Located
- Parameters:
col
- The column
Copyright © 2012 Jason Hunter, Brett McLaughlin. All Rights Reserved.