org.foray.fotree.value
Class PvKeyword
java.lang.Object
org.foray.fotree.value.PropertyValueStatic
org.foray.fotree.value.PvKeyword
- All Implemented Interfaces:
- PropertyValue
- Direct Known Subclasses:
- AxslPropertyKeyword, DtBorderStyle, FoPropertyKeyword
public abstract class PvKeyword
- extends PropertyValueStatic
Abstract superclass for all property value classes that encapsulate keywords,
regardless of namespace.
Method Summary |
boolean |
canEvalKeyword()
Indicates whether this property value can evaluate to a keyword. |
PvKeyword |
evalKeyword()
Returns the keyword value of this property value. |
Methods inherited from class org.foray.fotree.value.PropertyValueStatic |
canEvalColor, canEvalInteger, canEvalLength, canEvalNumeric, canEvalPercentage, evalColor, evalInteger, evalIntegerException, evalKeywordException, evalLength, evalLengthException, evalNumeric, evalPercentage, evalPercentageException, getUnitPower, lengthRequiresFontSize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PvKeyword
public PvKeyword()
canEvalKeyword
public boolean canEvalKeyword()
- Description copied from interface:
PropertyValue
- Indicates whether this property value can evaluate to a keyword.
- Returns:
- True iff this property value can evaluate to a keyword.
evalKeyword
public PvKeyword evalKeyword()
- Description copied from interface:
PropertyValue
- Returns the keyword value of this property value.
This method should only be executed on instances where
PropertyValue.canEvalKeyword()
returns true.
Doing so on other instances may result in an
IllegalStateException
.
- Returns:
- The keyword value of this property value.
Copyright © 2017. All rights reserved.