Class StringProperty

java.lang.Object
org.apache.fop.fo.properties.Property
org.apache.fop.fo.properties.StringProperty

public final class StringProperty extends Property
Exists primarily as a container for its Maker inner class, which is extended by many string-based FO property classes.
  • Field Details

    • EMPTY_STRING_PROPERTY

      public static final StringProperty EMPTY_STRING_PROPERTY
      canonical instance for empty strings
  • Method Details

    • getInstance

      public static StringProperty getInstance(String str)
      Return the canonical StringProperty instance corresponding to the given string value
      Parameters:
      str - the base String
      Returns:
      the canonical instance
    • getObject

      public Object getObject()
      Description copied from class: Property
      This method expects to be overridden by subclasses
      Overrides:
      getObject in class Property
      Returns:
      the Object equivalent of this property
    • getString

      public String getString()
      Description copied from class: Property
      This method expects to be overridden by subclasses.
      Overrides:
      getString in class Property
      Returns:
      the String equivalent of this property
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object