org.apache.fop.fo.expr

Class FromTableColumnFunction

Implemented Interfaces:
Function

public class FromTableColumnFunction
extends FunctionBase

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

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, which should either be empty, or the first of which should contain an NCName corresponding to a property name
pInfo - PropertyInfo object to be evaluated
Returns:
the Property corresponding to the property name specified, or, if none, for the property for which the expression is being evaluated
Throws:
PropertyException - for incorrect arguments, and (for now) in all cases, because this function is not implemented

nbArgs

public int nbArgs()
Specified by:
nbArgs in interface Function
Returns:
1 (maximum arguments for the from-table-column 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-2008 The Apache Software Foundation. All Rights Reserved.