Top Description Fields Constructors Methods
org.jdom2.located

public Class LocatedCDATA

extends CDATA
implements Located
Class Inheritance
All Implemented Interfaces
org.jdom2.located.Located
Imports
org.jdom2.CDATA, .IllegalDataException, .Text

An XML CDATA section. Represents character-based content within an XML document that should be output within special CDATA tags. Semantically it's identical to a simple Text object, but output behavior is different. CDATA makes no guarantees about the underlying textual representation of character data, but does expose that data as a Java String.
Author
Rolf Lear

Field Summary

Modifier and TypeField and Description
private int
private int
private static final long

Constructor Summary

AccessConstructor and Description
public
LocatedCDATA(String
the node's character content.
str
)

This constructor creates a new LocatedCDATA node, with the supplied string value as its character content.

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.CDATA:
appendappendclonedetachsetParentsetTexttoString

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.CDATA.serialVersionUID.

JDOM2 Serialization. In this case, DocType is simple.

Constructor Detail

LocatedCDATAback to summary
public LocatedCDATA(String str)

This constructor creates a new LocatedCDATA node, with the supplied string value as its character content.

Parameters
str:String

the node's character content.

Exceptions
IllegalDataException:
if str contains an illegal character such as a vertical tab (as determined by org.jdom2.Verifier#checkCharacterData)

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