org.jdom2.located
Class LocatedCDATA
java.lang.Object
org.jdom2.Content
org.jdom2.Text
org.jdom2.CDATA
org.jdom2.located.LocatedCDATA
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Located, NamespaceAware
public class LocatedCDATA
- extends CDATA
- implements Located
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
- See Also:
- Serialized Form
| Fields inherited from class org.jdom2.Text |
value |
|
Constructor Summary |
LocatedCDATA(java.lang.String str)
This constructor creates a new LocatedCDATA node, with the
supplied string value as it's character content. |
|
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 |
LocatedCDATA
public LocatedCDATA(java.lang.String str)
- This constructor creates a new
LocatedCDATA node, with the
supplied string value as it's character content.
- Parameters:
str - the node's character content.
- Throws:
IllegalDataException - if str contains an
illegal character such as a vertical tab (as determined
by Verifier.checkCharacterData(java.lang.String))
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.