Length
EnumLength
, EnumNumber
, FixedLength
, LengthProperty
, NumberProperty
, NumericProperty
, PercentLength
, RelativeNumericProperty
, TableColLength
public interface Numeric
To support relative numerics internally in the expression parser and during evaluation one additional methods exists: isAbsolute() which return true for absolute numerics and false for relative numerics.
Modifier and Type | Method | Description |
---|---|---|
int |
getDimension() |
Return the dimension of this numeric.
|
int |
getEnum() |
Return the enum value that is stored in this numeric.
|
double |
getNumericValue() |
Return the value of this Numeric
|
double |
getNumericValue(PercentBaseContext context) |
Return the value of this Numeric
|
int |
getValue() |
Returns the value of this numeric as an int.
|
int |
getValue(PercentBaseContext context) |
Returns the value of this numeric as an int.
|
boolean |
isAbsolute() |
Return true if the numeric is an absolute value.
|
double getNumericValue()
PropertyException
- if a property exception occursdouble getNumericValue(PercentBaseContext context)
context
- The context for the length calculation (for percentage based lengths)PropertyException
- if a property exception occursint getDimension()
boolean isAbsolute()
int getValue()
int getValue(PercentBaseContext context)
context
- the context for the length calculation (for percentage based lengths)int getEnum()
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.