Class XMLEntityText

  • All Implemented Interfaces:
    Element

    public class XMLEntityText
    extends Text
    Internal entity text in XML. Like, for example, in <title>&brandFullName; Credits</title>.
    • Constructor Detail

      • XMLEntityText

        public XMLEntityText​(Entity entity)
        Creates a piece of XML text.
    • Method Detail

      • 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. Because, well, translating internal entities is, hmm, too complex.
        Specified by:
        createInstance in class Text