Package de.gebit.integrity.string
Class AbstractFormattedStringElement
- java.lang.Object
-
- de.gebit.integrity.string.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
-
-
Constructor Summary
Constructors Constructor Description AbstractFormattedStringElement()
-
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.
-
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-