org.foray.fotree.value
Class FnAbstractNamedProperty

java.lang.Object
  extended by org.foray.fotree.value.Expr
      extended by org.foray.fotree.value.ExprAdditive
          extended by org.foray.fotree.value.ExprMultiplicative
              extended by org.foray.fotree.value.ExprUnary
                  extended by org.foray.fotree.value.ExprPrimary
                      extended by org.foray.fotree.value.Function
                          extended by org.foray.fotree.value.FnAbstractNamedProperty
All Implemented Interfaces:
PropertyValue
Direct Known Subclasses:
FnFromPageMasterRegion, FnFromParent, FnInheritedProp, FnMergePropertyValues, FnNearestSpecProp

public abstract class FnAbstractNamedProperty
extends Function

Abstract superclass for the "inherited-property-value", "from-parent", "from-nearest-specified-value", "from-page-master-region", and "merge-property-values" functions.


Field Summary
 
Fields inherited from class org.foray.fotree.value.Function
ABS, BODY_START, CEILING, FLOOR, FROM_NEAREST_SPECIFIED_VALUE, FROM_PAGE_MASTER_REGION, FROM_PARENT, FROM_TABLE_COLUMN, FUNCTION_NAME_LIST, INHERITED_PROPERTY_VALUE, LABEL_END, MAX, MERGE_PROPERTY_VALUES, MIN, PROPORTIONAL_COLUMN_WIDTH, RGB, RGB_ICC, ROUND, SYSTEM_COLOR, SYSTEM_FONT
 
Fields inherited from class org.foray.fotree.value.Expr
OPERATION_ADD, OPERATION_DIVIDE, OPERATION_MOD, OPERATION_MULTIPLY, OPERATION_NEGATION, OPERATION_SUBTRACT, UNIT_POWER_AREA, UNIT_POWER_LENGTH, UNIT_POWER_NON_NUMERIC, UNIT_POWER_NUMERIC
 
Constructor Summary
FnAbstractNamedProperty(Expr[] arguments, PropertyType propertyType)
          Constructor.
 
Method Summary
protected  FoProperty getPropertyType()
          Returns the property type to be operated on by the subclass.
 
Methods inherited from class org.foray.fotree.value.Function
enumerateFunctionName, getFunctionName, invalidParameters, makeFunction, validateNoArguments, validateNoneOrOneName
 
Methods inherited from class org.foray.fotree.value.Expr
evalColorException, evalIntegerException, evalKeywordException, evalLengthException, evalNumericException, evalPercentageException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.foray.fotree.value.PropertyValue
canEvalColor, canEvalInteger, canEvalKeyword, canEvalLength, canEvalNumeric, canEvalPercentage, evalColor, evalInteger, evalKeyword, evalLength, evalNumeric, evalPercentage, getUnitPower, lengthRequiresFontSize
 

Constructor Detail

FnAbstractNamedProperty

public FnAbstractNamedProperty(Expr[] arguments,
                               PropertyType propertyType)
                        throws PropertyException
Constructor.

Parameters:
arguments - The arguments to this function.
propertyType - The property which is calling this function.
Throws:
PropertyException - For errors creating this function.
Method Detail

getPropertyType

protected FoProperty getPropertyType()
Returns the property type to be operated on by the subclass.

Returns:
The property type operand.


Copyright © 2017. All rights reserved.