Class ListProperty

java.lang.Object
org.apache.fop.fo.properties.Property
org.apache.fop.fo.properties.ListProperty
Direct Known Subclasses:
BackgroundPositionShorthand, FontFamilyProperty, FontShorthandProperty

public class ListProperty extends Property
Superclass for properties that are lists of other properties
  • Field Details

    • list

      protected final List<Property> list
      Vector containing the list of sub-properties
  • Constructor Details

    • ListProperty

      protected ListProperty()
      Simple constructor used by subclasses to do some special processing.
    • ListProperty

      public ListProperty(Property prop)
      Create a new instance, using the given Property as the first element in the list.
      Parameters:
      prop - the first property to be added to the list
  • Method Details

    • addProperty

      public void addProperty(Property prop)
      Add a new property to the list
      Parameters:
      prop - Property to be added to the list
    • getList

      public List<Property> getList()
      Return the java.util.List of Property instances contained in this property.
      Overrides:
      getList in class Property
      Returns:
      the list of properties contained in this instance
    • getObject

      public Object getObject()
      Return the java.util.List of Property instances, cast as a java.lang.Object.
      Overrides:
      getObject in class Property
      Returns:
      this.list cast as an Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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