org.foray.fotree.value
Class DtBorderStyle

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

public final class DtBorderStyle
extends PvKeyword

Pseudo-datatype wrapper for the axsl BorderStyle enumeration that conforms to the PropertyValue interface. Instances of this class are immutable and are therefore treated as a group of singletons, one for each possible keyword value.

See Also:
"XSL-FO Recommendation 1.1, Section 7.8.20."

Field Summary
static FoValue[] VALID_KEYWORDS
          Array of valid keywords that can be used to designate a border-style.
 
Method Summary
static DtBorderStyle getInstance(FoValue value)
          Gets or creates the singleton instance for the specific keyword value.
 org.axsl.common.value.BorderStyle getValue()
          Return the BorderStyle instance.
static boolean isBorderStyle(FoValue foValue)
          Indicates whether a given property value qualifies as a border-style property.
 
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
 

Field Detail

VALID_KEYWORDS

public static final FoValue[] VALID_KEYWORDS
Array of valid keywords that can be used to designate a border-style.

Method Detail

getValue

public org.axsl.common.value.BorderStyle getValue()
Return the BorderStyle instance.

Returns:
The BorderStyle instance.

isBorderStyle

public static boolean isBorderStyle(FoValue foValue)
Indicates whether a given property value qualifies as a border-style property.

Parameters:
foValue - The property value to be tested.
Returns:
True iff the property qualifies as a border-style property.

getInstance

public static DtBorderStyle getInstance(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.