fop 0.93

org.apache.fop.fo.expr
Class NearestSpecPropFunction

java.lang.Object
  |
  +--org.apache.fop.fo.expr.FunctionBase
        |
        +--org.apache.fop.fo.expr.NearestSpecPropFunction
All 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.


Constructor Summary
NearestSpecPropFunction()
           
 
Method Summary
 Property eval(Property[] args, PropertyInfo pInfo)
          Evaluate the function
 int nbArgs()
           
 boolean padArgsWithPropertyName()
           
 
Methods inherited from class org.apache.fop.fo.expr.FunctionBase
getPercentBase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NearestSpecPropFunction

public NearestSpecPropFunction()
Method Detail

nbArgs

public int nbArgs()
Returns:
1 (maximum number of arguments for from-nearest-specified-value function)

padArgsWithPropertyName

public boolean padArgsWithPropertyName()
Overrides:
padArgsWithPropertyName in class FunctionBase
Returns:
true (allow padding of arglist with property name)

eval

public Property eval(Property[] args,
                     PropertyInfo pInfo)
              throws PropertyException
Description copied from interface: Function
Evaluate the 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

fop 0.93

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