Class XMLText

  • All Implemented Interfaces:
    Element

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

      Constructors 
      Constructor Description
      XMLText​(java.lang.String text, boolean inCDATA)
      Creates a piece of XML text.
    • Constructor Detail

      • XMLText

        public XMLText​(java.lang.String text,
                       boolean inCDATA)
        Creates a piece of XML text.
    • Method Detail

      • isInCDATA

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

        public java.lang.String toOriginal()
        Returns the text in its original form as it was in 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​(java.lang.String text)
        Creates a new instance of XMLText class.
        Specified by:
        createInstance in class Text