org.apache.fop.fo.expr
Interface Function
- All Known Implementing Classes:
- AbsFunction, BodyStartFunction, FromParentFunction, FromTableColumnFunction, FunctionBase, InheritedPropFunction, LabelEndFunction, MaxFunction, MinFunction, NearestSpecPropFunction, PPColWidthFunction
public interface Function
Interface for managing XSL-FO Functions
nbArgs
int nbArgs()
- Returns:
- the number of arguments that must be passed to this function. For
example, if the function should determine the minimum of two numbers, it
must be passed two arguments, one for each of the two values.
getPercentBase
PercentBase getPercentBase()
- Returns:
- the basis for percentage calculations
eval
Property eval(Property[] args,
PropertyInfo propInfo)
throws PropertyException
- Evaluate the function
- Parameters:
args
- an array of Properties that should be evaluatedpropInfo
- the PropertyInfo
- Returns:
- the Property satisfying the function
- Throws:
PropertyException
- for problems when evaluating the function
padArgsWithPropertyName
boolean padArgsWithPropertyName()
- Returns:
- if it is allowed to fill up the property list with
the property name if only one arg is missing.
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.