org.apache.fop.fo

Class StaticPropertyList


public class StaticPropertyList
extends PropertyList

A very fast implementation of PropertyList that uses arrays to store the explicit set properties and another array to store cached values.

Field Summary

Fields inherited from class org.apache.fop.fo.PropertyList

parentPropertyList

Constructor Summary

StaticPropertyList(FObj fObjToAttach, PropertyList parentPropertyList)
Construct a StaticPropertyList.

Method Summary

Property
get(int propId, boolean bTryInherit, boolean bTryDefault)
Override PropertyList.get() and provides fast caching of previously retrieved property values.
Property
getExplicit(int propId)
Return the value explicitly specified on this FO.
void
putExplicit(int propId, Property value)
Set an value defined explicitly on this FO.

Methods inherited from class org.apache.fop.fo.PropertyList

addAttributesToList, findBasePropertyName, findSubPropertyName, get, get, getAbsolutePositionProps, getAccessibilityProps, getAuralProps, getBorderPaddingBackgroundProps, getExplicit, getExplicitOrShorthand, getFObj, getFontProps, getFromParent, getHyphenationProps, getInherited, getMarginBlockProps, getMarginInlineProps, getNearestSpecified, getParentFObj, getParentPropertyList, getRelativePositionProps, getTextDecorationProps, getWritingMode, getWritingMode, handleInvalidProperty, isValidPropertyName, putExplicit, setWritingMode

Constructor Details

StaticPropertyList

public StaticPropertyList(FObj fObjToAttach,
                          PropertyList parentPropertyList)
Construct a StaticPropertyList.
Parameters:
fObjToAttach - The FObj object.
parentPropertyList - The parent property list.

Method Details

get

public Property get(int propId,
                    boolean bTryInherit,
                    boolean bTryDefault)
            throws PropertyException
Override PropertyList.get() and provides fast caching of previously retrieved property values.
Overrides:
get in interface PropertyList
Parameters:
propId - The property ID

getExplicit

public Property getExplicit(int propId)
Return the value explicitly specified on this FO.
Overrides:
getExplicit in interface PropertyList
Parameters:
propId - The ID of the property whose value is desired.
Returns:
The value if the property is explicitly set, otherwise null.

putExplicit

public void putExplicit(int propId,
                        Property value)
Set an value defined explicitly on this FO.
Overrides:
putExplicit in interface PropertyList
Parameters:
propId - The ID of the property whose value is desired.
value - The value of the property to set.

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