Package org.omegat.filters3.xml
Class XMLText
java.lang.Object
org.omegat.filters3.Text
org.omegat.filters3.xml.XMLText
- All Implemented Interfaces:
Element
Piece of text in XML.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateInstance(String newText) Creates a new instance of XMLText class.booleanWhether this text is inside XDATA section.Returns the text in its original form as it was in an original document.Methods inherited from class org.omegat.filters3.Text
append, getText, isMeaningful, toSafeCalcShortcut, toShortcut, toTMX
-
Constructor Details
-
XMLText
Creates a piece of XML text.
-
-
Method Details
-
isInCDATA
public boolean isInCDATA()Whether this text is inside XDATA section. -
toOriginal
Returns the text in its original form as it was in an original document. E.g. forRock&Rollshould returnRock&Roll.- Specified by:
toOriginalin interfaceElement- Specified by:
toOriginalin classText
-
createInstance
Creates a new instance of XMLText class.- Specified by:
createInstancein classText
-