Class AbstractFormattedStringElement

  • Direct Known Subclasses:
    FormattedStringElement, FormatTokenElement

    public abstract class AbstractFormattedStringElement
    extends java.lang.Object
    Abstract base class for formatted string elements. These elements make up the formatted string.
    Author:
    Rene Schneider - initial API and implementation
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object anOtherObject)  
      int hashCode()  
      abstract java.lang.String toFormattedString()
      Returns the elements' contents as a String with all necessary formatting tokens.
      abstract java.lang.String toUnformattedString()
      Returns the elements' contents as a String without any formatting tokens.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractFormattedStringElement

        public AbstractFormattedStringElement()
    • Method Detail

      • toUnformattedString

        public abstract java.lang.String toUnformattedString()
        Returns the elements' contents as a String without any formatting tokens.
        Returns:
        the unformatted element contents
      • toFormattedString

        public abstract java.lang.String toFormattedString()
        Returns the elements' contents as a String with all necessary formatting tokens.
        Returns:
        the formatted element contents
      • equals

        public boolean equals​(java.lang.Object anOtherObject)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object