org.foray.fotree.fo
Class FoPropertyKeyword

java.lang.Object
  extended by org.foray.fotree.value.PropertyValueStatic
      extended by org.foray.fotree.value.PvKeyword
          extended by org.foray.fotree.fo.FoPropertyKeyword
All Implemented Interfaces:
PropertyValue

public final class FoPropertyKeyword
extends PvKeyword

Class encapsulating those property values that are expressed as keywords (e.g. "inherit", "auto", "true", etc.). Instances of this class are immutable and are therefore treated as a group of singletons, one for each possible keyword value.


Method Summary
static FoPropertyKeyword getPropertyKeyword(FoValue value)
          Gets or creates the singleton instance for the specific keyword value.
 FoValue getValue()
          Return the keyword enumeration.
 
Methods inherited from class org.foray.fotree.value.PvKeyword
canEvalKeyword, evalKeyword
 
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
 

Method Detail

getValue

public FoValue getValue()
Return the keyword enumeration.

Returns:
The keyword enumeration.
See Also:
and following for the property keyword enumerations.

getPropertyKeyword

public static FoPropertyKeyword getPropertyKeyword(FoValue value)
Gets or creates the singleton instance for the specific keyword value. There is no need for multiple instances of this class for the same keyword.

Parameters:
value - The value for which the singleton instance is needed.
Returns:
The singleton keyword instance, or null if the value is an invalid keyword index.


Copyright © 2017. All rights reserved.