org.foray.fotree.value
Class PvKeyword

java.lang.Object
  extended by org.foray.fotree.value.PropertyValueStatic
      extended by 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.


Constructor Summary
PvKeyword()
           
 
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
 

Constructor Detail

PvKeyword

public PvKeyword()
Method Detail

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.