org.apache.fop.fo.properties
Class GenericShorthandParser
java.lang.Object
|
+--org.apache.fop.fo.properties.GenericShorthandParser
- All Implemented Interfaces:
- ShorthandParser
- Direct Known Subclasses:
- BorderSpacingShorthandParser, BoxPropShorthandParser
- public class GenericShorthandParser
- extends java.lang.Object
- implements ShorthandParser
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericShorthandParser
public GenericShorthandParser()
- Constructor.
getElement
protected Property getElement(Property list,
int index)
- Parameters:
index
- the index into the List of properties- Returns:
- the property from the List of properties at the index parameter
getValueForProperty
public Property getValueForProperty(int propId,
Property property,
PropertyMaker maker,
PropertyList propertyList)
throws PropertyException
- Specified by:
getValueForProperty
in interface ShorthandParser
- Following copied from interface:
org.apache.fop.fo.properties.ShorthandParser
- Parameters:
propId
- the property ID in the Constants interfacemaker
- Maker object for the PropertypropertyList
- list of properties- Returns:
- Property object corresponding to propName
convertValueForProperty
protected Property convertValueForProperty(int propId,
Property property,
PropertyMaker maker,
PropertyList propertyList)
throws PropertyException
- Converts a property name into a Property
- Parameters:
propId
- the property ID in the Constants interfacemaker
- the Property.Maker to be used in the conversionpropertyList
- the PropertyList from which the Property should be
extracted- Returns:
- the Property matching the parameters, or null if not found
Copyright 1999-2005 The Apache Software Foundation. All Rights Reserved.