fop 0.93

org.apache.fop.fo.properties
Class EnumNumber

java.lang.Object
  |
  +--org.apache.fop.fo.properties.Property
        |
        +--org.apache.fop.fo.properties.NumberProperty
              |
              +--org.apache.fop.fo.properties.EnumNumber
All Implemented Interfaces:
Numeric

public class EnumNumber
extends NumberProperty

A number quantity in XSL which is specified as an enum, such as "no-limit".


Inner classes inherited from class org.apache.fop.fo.properties.NumberProperty
NumberProperty.Maker
 
Fields inherited from class org.apache.fop.fo.properties.Property
log
 
Method Summary
 int getEnum()
          Return the enum value that is stored in this numeric.
static EnumNumber getInstance(Property enumProperty)
           
 double getNumericValue()
          Returns the value as numeric.
 java.lang.Object getObject()
          This method expects to be overridden by subclasses
 java.lang.String getString()
          This method expects to be overridden by subclasses.
 int getValue()
          Returns the length in 1/1000ths of a point (millipoints)
 
Methods inherited from class org.apache.fop.fo.properties.NumberProperty
getColor, getDimension, getLength, getNumber, getNumeric, getNumericValue, getValue, isAbsolute
 
Methods inherited from class org.apache.fop.fo.properties.Property
getCharacter, getCondLength, getKeep, getLengthPair, getLengthRange, getList, getNCname, getSpace, getSpecifiedValue, isAuto, setSpecifiedValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static EnumNumber getInstance(Property enumProperty)

getEnum

public int getEnum()
Description copied from interface: Numeric
Return the enum value that is stored in this numeric.
Overrides:
getEnum in class Property
Following copied from class: org.apache.fop.fo.properties.Property
Returns:
integer equivalent of enumerated property value

getValue

public int getValue()
Returns the length in 1/1000ths of a point (millipoints)
Overrides:
getValue in class NumberProperty
Returns:
the length in millipoints

getNumericValue

public double getNumericValue()
Returns the value as numeric.
Overrides:
getNumericValue in class NumberProperty
Returns:
the length in millipoints

getString

public java.lang.String getString()
Description copied from class: Property
This method expects to be overridden by subclasses.
Overrides:
getString in class Property
See Also:
Property.getString()

getObject

public java.lang.Object getObject()
Description copied from class: Property
This method expects to be overridden by subclasses
Overrides:
getObject in class NumberProperty
See Also:
Property.getString()

fop 0.93

Copyright 1999-2006 The Apache Software Foundation. All Rights Reserved.