|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.foray.fotree.Property
org.foray.fotree.fo.AbstractFoProperty
public abstract class AbstractFoProperty
Superclass for properties in the "fo:" namespace.
Field Summary | |
---|---|
protected static FoValue[] |
VALID_KEYWORDS_INHERIT_ONLY
Array of valid keywords for properties that only allow "inherit". |
Fields inherited from class org.foray.fotree.Property |
---|
PRECEDENCE_FORCE |
Constructor Summary | |
---|---|
AbstractFoProperty()
|
Method Summary | |
---|---|
protected boolean |
canEvalBorderStyle(PropertyValue value)
Indicates whether a given property value can evaluate to a BorderStyle enumeration. |
protected boolean |
canEvalUri(PropertyValue value)
Indicates whether a given property value can evaluate to a URI. |
protected FoPropertyKeyword |
checkKeywords(FoValue[] validKeywords,
String possibleKeyword)
Checks the keywords for this property, returning an appropriate property value if a keyword is detected. |
protected FoValue |
convertValueToFoValue(PropertyValue value)
Converts a keyword property value to its equivalent FoValue. |
protected org.axsl.common.value.BorderStyle |
evalBorderStyle(PropertyValue value)
Converts a given property value into a BorderStyle enumeration. |
protected String |
evalUri(PropertyValue value)
Converts a given property value into URI. |
abstract FoProperty |
getPropertyType()
Returns the type of this property. |
protected abstract FoValue[] |
getValidKeywords()
Returns the valid keywords for this property. |
protected boolean |
isKeywordInherit(PropertyValue value)
Indicates whether a given property value is the keyword "inherit". |
protected PropertyValue |
standardParse(FObj fobj,
String rawPropertyValue)
Handles the standard parsing of a property value. |
protected PropertyValue |
standardParse(FObj fobj,
String rawPropertyValue,
FoValue[] validKeywords)
Overloaded version of standardParse(FObj, String) that allows
subclasses to provide a different set of valid keywords for the case
of compound properties. |
Methods inherited from class org.foray.fotree.Property |
---|
convertNumericToInteger, convertValueToLength, getBasePropertyName, getKeywordIndex, getKeywordInSet, getSubPropertyName, invalidPropertyName, keywordInSet, unexpectedInitialValueArgument, unexpectedRetrieval, unexpectedValue, unexpectedValue, value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final FoValue[] VALID_KEYWORDS_INHERIT_ONLY
Constructor Detail |
---|
public AbstractFoProperty()
Method Detail |
---|
public abstract FoProperty getPropertyType()
getPropertyType
in class Property
protected PropertyValue standardParse(FObj fobj, String rawPropertyValue) throws PropertyException
fobj
- The FObj to which this property belongs.rawPropertyValue
- String containing the raw property value.
PropertyException
- If the input is inconsistent.protected PropertyValue standardParse(FObj fobj, String rawPropertyValue, FoValue[] validKeywords) throws PropertyException
standardParse(FObj, String)
that allows
subclasses to provide a different set of valid keywords for the case
of compound properties.
fobj
- The FObj to which this property belongs.rawPropertyValue
- String containing the raw property value.validKeywords
- The keywords that should be accepted when parsing.
PropertyException
- If the input is inconsistent.protected abstract FoValue[] getValidKeywords()
protected FoPropertyKeyword checkKeywords(FoValue[] validKeywords, String possibleKeyword)
validKeywords
- The array of valid keywords.possibleKeyword
- The token to be evaluated against the valid
keywords.
possibleKeyword
is found in the validKeywords,
return an appropriate property value instance, otherwise returns null.protected boolean isKeywordInherit(PropertyValue value)
value
- The property value being tested.
protected FoValue convertValueToFoValue(PropertyValue value)
value
- The property value to be converted.
protected boolean canEvalBorderStyle(PropertyValue value)
value
- The property value to be tested.
protected org.axsl.common.value.BorderStyle evalBorderStyle(PropertyValue value)
canEvalBorderStyle(PropertyValue)
returns true.
value
- The property value to be tested.
protected boolean canEvalUri(PropertyValue value)
value
- The property value to be tested.
protected String evalUri(PropertyValue value)
canEvalUri(PropertyValue)
returns true.
value
- The property value to be tested.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |