org.apache.fop.fo.expr

Class MinFunction

Implemented Interfaces:
Function

public class MinFunction
extends FunctionBase

Class for managing the "min" Number Function. See Sec. 5.10.1 in the XSL-FO standard.

Method Summary

Property
eval(Property[] args, PropertyInfo pInfo)
Handle "numerics" if no proportional/percent parts
int
nbArgs()

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

getPercentBase, padArgsWithPropertyName

Method Details

eval

public Property eval(Property[] args,
                     PropertyInfo pInfo)
            throws PropertyException
Handle "numerics" if no proportional/percent parts
Specified by:
eval in interface Function
Parameters:
args - array of arguments to be processed
pInfo - PropertyInfo to be processed
Returns:
the minimum of the two args elements passed
Throws:
PropertyException - for invalid operands

nbArgs

public int nbArgs()
Specified by:
nbArgs in interface Function
Returns:
2 (the number of arguments required for the min function)

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