fop 0.90alpha1

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
 
Constructor Summary
EnumNumber(Property enumProperty)
           
 
Method Summary
 int getEnum()
          Return the enum value that is stored in this numeric.
 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
getColorType, getDimension, getNumber, getNumeric, getNumericValue, getValue, isAbsolute
 
Methods inherited from class org.apache.fop.fo.properties.Property
getCharacter, getCondLength, getKeep, getLength, 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
 

Constructor Detail

EnumNumber

public EnumNumber(Property enumProperty)
Method Detail

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

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.90alpha1

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