org.apache.fop.fo.expr

Class NearestSpecPropFunction

Implemented Interfaces:
Function

public class NearestSpecPropFunction
extends FunctionBase

Class modelling the from-nearest-specified-value function. See Sec. 5.10.4 of the XSL-FO standard.

Method Summary

Property
eval(Property[] args, PropertyInfo pInfo)
int
nbArgs()
boolean
padArgsWithPropertyName()

Methods inherited from class org.apache.fop.fo.expr.FunctionBase

getPercentBase, padArgsWithPropertyName

Method Details

eval

public Property eval(Property[] args,
                     PropertyInfo pInfo)
            throws PropertyException
Specified by:
eval in interface Function
Parameters:
args - array of arguments for the function
pInfo - PropertyInfo for the function
Returns:
Property containing the nearest-specified-value
Throws:
PropertyException - for invalid arguments to the function

nbArgs

public int nbArgs()
Specified by:
nbArgs in interface Function
Returns:
1 (maximum number of arguments for from-nearest-specified-value function)

padArgsWithPropertyName

public boolean padArgsWithPropertyName()
Specified by:
padArgsWithPropertyName in interface Function
Overrides:
padArgsWithPropertyName in interface FunctionBase
Returns:
true (allow padding of arglist with property name)

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