Package org.apache.fop.fo.properties
Class GenericShorthandParser
java.lang.Object
org.apache.fop.fo.properties.GenericShorthandParser
- All Implemented Interfaces:
ShorthandParser
- Direct Known Subclasses:
BackgroundPositionShorthand.Parser
,BorderSpacingShorthandParser
,BoxCornerPropShorthandParser
,BoxPropShorthandParser
,FontShorthandParser
,XMLLangShorthandParser
Generic shorthand parser for ListProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Property
convertValueForProperty
(int propId, Property property, PropertyMaker maker, PropertyList propertyList) Converts a property name into a Propertyprotected Property
getElement
(Property list, int index) getValueForProperty
(int propId, Property property, PropertyMaker maker, PropertyList propertyList) protected void
validate
(PropertyList propertyList, String propertyString, Property prop, Property property)
-
Constructor Details
-
GenericShorthandParser
public GenericShorthandParser()Constructor.
-
-
Method Details
-
getElement
- Parameters:
list
- the ListPropertyindex
- 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 interfaceShorthandParser
- Parameters:
propId
- the property ID in the Constants interfaceproperty
- from which value is obtainedmaker
- Maker object for the PropertypropertyList
- list of properties- Returns:
- Property object corresponding to propName
- Throws:
PropertyException
- in case a property exception occurs
-
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 conversionproperty
- ...propertyList
- the PropertyList from which the Property should be extracted- Returns:
- the Property matching the parameters, or null if not found
- Throws:
PropertyException
- (when?)
-
validate
protected void validate(PropertyList propertyList, String propertyString, Property prop, Property property)
-