Class XMLText

java.lang.Object
org.omegat.filters3.Text
org.omegat.filters3.xml.XMLText
All Implemented Interfaces:
Element

public class XMLText extends Text
Piece of text in XML.
  • Constructor Details

    • XMLText

      public XMLText(String text, boolean inCDATA)
      Creates a piece of XML text.
  • Method Details

    • isInCDATA

      public boolean isInCDATA()
      Whether this text is inside XDATA section.
    • toOriginal

      public String toOriginal()
      Returns the text in its original form as it was in an original document. E.g. for Rock&Roll should return Rock&Roll.
      Specified by:
      toOriginal in interface Element
      Specified by:
      toOriginal in class Text
    • createInstance

      public Text createInstance(String newText)
      Creates a new instance of XMLText class.
      Specified by:
      createInstance in class Text