Class LocatedCDATA
java.lang.Object
org.jdom2.Content
org.jdom2.Text
org.jdom2.CDATA
org.jdom2.located.LocatedCDATA
- All Implemented Interfaces:
Serializable, Cloneable, Located, NamespaceAware
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class Content
Content.CType -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionLocatedCDATA(String str) This constructor creates a newLocatedCDATAnode, with the supplied string value as its character content. -
Method Summary
Methods inherited from class Text
getParent, getText, getTextNormalize, getTextTrim, getValue, normalizeStringMethods inherited from class Content
equals, getCType, getDocument, getNamespacesInherited, getNamespacesInScope, getNamespacesIntroduced, getParentElement, hashCode
-
Constructor Details
-
LocatedCDATA
This constructor creates a newLocatedCDATAnode, with the supplied string value as its character content.- Parameters:
str- the node's character content.- Throws:
IllegalDataException- ifstrcontains an illegal character such as a vertical tab (as determined byVerifier.checkCharacterData(String))
-
-
Method Details
-
getLine
-
getColumn
-
setLine
-
setColumn
-