org.apache.fop.fo.properties

Class EnumNumber

Implemented Interfaces:
Numeric

public final class EnumNumber
extends Property
implements Numeric

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

Field Summary

Fields inherited from class org.apache.fop.fo.properties.Property

log

Method Summary

boolean
equals(Object obj)
int
getDimension()
int
getEnum()
static EnumNumber
getInstance(Property enumProperty)
Returns the canonical EnumNumber instance corresponding to the given Property
Numeric
getNumeric()
double
getNumericValue()
logs an error, because it's not supposed to be called
double
getNumericValue(PercentBaseContext context)
logs an error, because it's not supposed to be called
Object
getObject()
String
getString()
int
getValue()
logs an error, because it's not supposed to be called
int
getValue(PercentBaseContext context)
logs an error, because it's not supposed to be called
int
hashCode()
boolean
isAbsolute()
Always true for instances of this type

Methods inherited from class org.apache.fop.fo.properties.Property

getCharacter, getColor, getCondLength, getEnum, getKeep, getLength, getLengthPair, getLengthRange, getList, getNCname, getNumber, getNumeric, getObject, getSpace, getSpecifiedValue, getString, isAuto, setSpecifiedValue, toString

Method Details

equals

public boolean equals(Object obj)

getDimension

public int getDimension()
Specified by:
getDimension in interface Numeric

getEnum

public int getEnum()
Specified by:
getEnum in interface Numeric
Overrides:
getEnum in interface Property

getInstance

public static EnumNumber getInstance(Property enumProperty)
Returns the canonical EnumNumber instance corresponding to the given Property
Parameters:
enumProperty - the base EnumProperty
Returns:
the canonical instance

getNumeric

public Numeric getNumeric()
Overrides:
getNumeric in interface Property

getNumericValue

public double getNumericValue()
logs an error, because it's not supposed to be called
Specified by:
getNumericValue in interface Numeric

getNumericValue

public double getNumericValue(PercentBaseContext context)
            throws PropertyException
logs an error, because it's not supposed to be called
Specified by:
getNumericValue in interface Numeric

getObject

public Object getObject()
Overrides:
getObject in interface Property

getString

public String getString()
Overrides:
getString in interface Property

getValue

public int getValue()
logs an error, because it's not supposed to be called
Specified by:
getValue in interface Numeric

getValue

public int getValue(PercentBaseContext context)
logs an error, because it's not supposed to be called
Specified by:
getValue in interface Numeric

hashCode

public int hashCode()

isAbsolute

public boolean isAbsolute()
Always true for instances of this type
Specified by:
isAbsolute in interface Numeric

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