Package org.jdom.located
Class LocatedCDATA
- java.lang.Object
-
- org.jdom.Content
-
- org.jdom.Text
-
- org.jdom.CDATA
-
- org.jdom.located.LocatedCDATA
-
- All Implemented Interfaces:
Serializable
,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 simpleText
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.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jdom.Content
Content.CType
-
-
Constructor Summary
Constructors Constructor Description LocatedCDATA(String str)
This constructor creates a newLocatedCDATA
node, with the supplied string value as it's character content.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumn()
Get the column (character on the line).int
getLine()
Get the line numbervoid
setColumn(int col)
Set the column (character on the line).void
setLine(int line)
Set the line number-
Methods inherited from class org.jdom.CDATA
append, append, clone, detach, setParent, setText, toString
-
Methods inherited from class org.jdom.Text
getParent, getText, getTextNormalize, getTextTrim, getValue, normalizeString
-
Methods inherited from class org.jdom.Content
equals, getCType, getDocument, getNamespacesInherited, getNamespacesInScope, getNamespacesIntroduced, getParentElement, hashCode
-
-
-
-
Constructor Detail
-
LocatedCDATA
public LocatedCDATA(String str)
This constructor creates a newLocatedCDATA
node, with the supplied string value as it's character content.- Parameters:
str
- the node's character content.- Throws:
IllegalDataException
- ifstr
contains an illegal character such as a vertical tab (as determined byVerifier.checkCharacterData(java.lang.String)
)
-
-
Method Detail
-
getLine
public int getLine()
Description copied from interface:Located
Get the line number
-
getColumn
public int getColumn()
Description copied from interface:Located
Get the column (character on the line).
-
setLine
public void setLine(int line)
Description copied from interface:Located
Set the line number
-
-