fop 0.93

org.apache.fop.fo.properties
Class EnumNumber

java.lang.Object
  extended byorg.apache.fop.fo.properties.Property
      extended byorg.apache.fop.fo.properties.NumberProperty
          extended byorg.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".


Nested Class Summary
 
Nested classes inherited from class org.apache.fop.fo.properties.NumberProperty
NumberProperty.Maker
 
Field Summary
 
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.

Specified by:
getEnum in interface Numeric
Overrides:
getEnum in class Property
Returns:
integer equivalent of enumerated property value

getValue

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

Specified by:
getValue in interface Numeric
Overrides:
getValue in class NumberProperty
Returns:
the length in millipoints
See Also:
Numeric.getValue()

getNumericValue

public double getNumericValue()
Returns the value as numeric.

Specified by:
getNumericValue in interface Numeric
Overrides:
getNumericValue in class NumberProperty
Returns:
the length in millipoints
See Also:
Numeric.getNumericValue()

getString

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

Overrides:
getString in class Property
Returns:
String property value
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
Returns:
this.number cast as an Object
See Also:
Property.getString()

fop 0.93

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