org.apache.fop.fo.expr
Interface Function
- All Known Implementing Classes:
- FunctionBase
- public interface Function
Interface for managing XSL-FO Functions
nbArgs
public 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
public PercentBase getPercentBase()
- Returns:
- the basis for percentage calculations
eval
public 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
Copyright 1999-2005 The Apache Software Foundation. All Rights Reserved.