fop 0.95

org.apache.fop.fo.expr
Class FromParentFunction

java.lang.Object
  extended by org.apache.fop.fo.expr.FunctionBase
      extended by org.apache.fop.fo.expr.FromParentFunction
All Implemented Interfaces:
Function

public class FromParentFunction
extends FunctionBase

Class modelling the from-parent Property Value function. See Sec. 5.10.4 of the XSL-FO spec.


Constructor Summary
FromParentFunction()
           
 
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

FromParentFunction

public FromParentFunction()
Method Detail

nbArgs

public int nbArgs()
Returns:
1 (maximum arguments for the from-parent function)

padArgsWithPropertyName

public boolean padArgsWithPropertyName()
Specified by:
padArgsWithPropertyName in interface Function
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, which should either be empty, or the first of which should contain an NCName corresponding to property name
pInfo - PropertyInfo object to be evaluated
Returns:
property containing the computed value
Throws:
PropertyException - if the arguments are incorrect

fop 0.95

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