Class KeepProperty

java.lang.Object
org.apache.fop.fo.properties.Property
org.apache.fop.fo.properties.KeepProperty
All Implemented Interfaces:
CompoundDatatype, Constants

public final class KeepProperty extends Property implements CompoundDatatype
Class for properties that wrap Keep values
  • Constructor Details

    • KeepProperty

      public KeepProperty()
  • Method Details

    • setComponent

      public void setComponent(int cmpId, Property cmpnValue, boolean bIsDefault)
      Sets a component of the compound datatype.
      Specified by:
      setComponent in interface CompoundDatatype
      Parameters:
      cmpId - ID of the component
      cmpnValue - value of the component
      bIsDefault - Indicates if it's the default value
    • getComponent

      public Property getComponent(int cmpId)
      Returns a component of the compound datatype.
      Specified by:
      getComponent in interface CompoundDatatype
      Parameters:
      cmpId - ID of the component
      Returns:
      the value of the component
    • setWithinLine

      public void setWithinLine(Property withinLine, boolean bIsDefault)
      Parameters:
      withinLine - withinLine property to set
      bIsDefault - not used (??)
    • setWithinColumn

      protected void setWithinColumn(Property withinColumn, boolean bIsDefault)
      Parameters:
      withinColumn - withinColumn property to set
      bIsDefault - not used (??)
    • setWithinPage

      public void setWithinPage(Property withinPage, boolean bIsDefault)
      Parameters:
      withinPage - withinPage property to set
      bIsDefault - not used (??)
    • getWithinLine

      public Property getWithinLine()
      Returns:
      the withinLine property
    • getWithinColumn

      public Property getWithinColumn()
      Returns:
      the withinColumn property
    • getWithinPage

      public Property getWithinPage()
      Returns:
      the withinPage property
    • toString

      public String toString()
      Not sure what to do here. There isn't really a meaningful single value.
      Overrides:
      toString in class Property
      Returns:
      String representation
    • getKeep

      public KeepProperty getKeep()
      Description copied from class: Property
      This method expects to be overridden by subclasses
      Overrides:
      getKeep in class Property
      Returns:
      the canonical KeepProperty instance corresponding to this property
    • getObject

      public Object getObject()
      Description copied from class: Property
      This method expects to be overridden by subclasses
      Overrides:
      getObject in class Property
      Returns:
      this.keep cast as Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object