Top Description Fields Constructors Methods
org.jdom2.located

public Class LocatedComment

extends Comment
implements Located
Class Inheritance
All Implemented Interfaces
org.jdom2.located.Located
Imports
org.jdom2.Comment

An XML comment. Methods allow the user to get and set the text of the comment.
Author
Rolf Lear

Field Summary

Modifier and TypeField and Description
private int
private int
private static final long
Inherited from org.jdom2.Comment:
text

Constructor Summary

AccessConstructor and Description
public
LocatedComment(String
String content of comment.
text
)

This creates the comment with the supplied text.

Method Summary

Modifier and TypeMethod and Description
public int
getColumn()

Implements org.jdom2.located.Located.getColumn.

Get the column (character on the line).
public int
getLine()

Implements org.jdom2.located.Located.getLine.

Get the line number
public void
setColumn(int
The column
col
)

Implements org.jdom2.located.Located.setColumn.

Set the column (character on the line).
public void
setLine(int
the line.
line
)

Implements org.jdom2.located.Located.setLine.

Set the line number
Inherited from org.jdom2.Comment:
clonedetachgetTextgetValuesetParentsetTexttoString

Field Detail

colback to summary
private int col
lineback to summary
private int line
serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.jdom2.Comment.serialVersionUID.

JDOM2 Serialization. In this case, DocType is simple.

Constructor Detail

LocatedCommentback to summary
public LocatedComment(String text)

This creates the comment with the supplied text.

Parameters
text:String

String content of comment.

Method Detail

getColumnback to summary
public int getColumn()

Implements org.jdom2.located.Located.getColumn.

Doc from org.jdom2.located.Located.getColumn.

Get the column (character on the line).

Returns:int

the column

Annotations
@Override
getLineback to summary
public int getLine()

Implements org.jdom2.located.Located.getLine.

Doc from org.jdom2.located.Located.getLine.

Get the line number

Returns:int

the line number

Annotations
@Override
setColumnback to summary
public void setColumn(int col)

Implements org.jdom2.located.Located.setColumn.

Doc from org.jdom2.located.Located.setColumn.

Set the column (character on the line).

Parameters
col:int

The column

Annotations
@Override
setLineback to summary
public void setLine(int line)

Implements org.jdom2.located.Located.setLine.

Doc from org.jdom2.located.Located.setLine.

Set the line number

Parameters
line:int

the line.

Annotations
@Override