fop 0.95

org.apache.fop.fo.expr
Class MinFunction

java.lang.Object
  extended by org.apache.fop.fo.expr.FunctionBase
      extended by org.apache.fop.fo.expr.MinFunction
All 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.


Constructor Summary
MinFunction()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinFunction

public MinFunction()
Method Detail

nbArgs

public int nbArgs()
Returns:
2 (the number of arguments required for the min function)

eval

public Property eval(Property[] args,
                     PropertyInfo pInfo)
              throws PropertyException
Handle "numerics" if no proportional/percent parts

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

fop 0.95

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