Package org.geotools.util.factory
Class Hints.OptionKey
Object
RenderingHints.Key
Hints.Key
OptionKey
- Enclosing class:
- Hints
Key that allows the choice of several options. You can use
"*"
as a wild card to indicate that
undocumented options may be supported (but there is no assurances - Hints.DATUM_SHIFT_METHOD
).- Since:
- 2.4
- Author:
- Jody Garnett
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the set of available options.boolean
isCompatibleValue
(Object value) Returnstrue
if the specified object is one of the valid options.Methods inherited from class Hints.Key
getValueClass, toString
Methods inherited from class RenderingHints.Key
equals, hashCode, intKey
-
Constructor Details
-
OptionKey
Creates a new key for a configuration option.- Parameters:
alternatives
- The available options.
-
-
Method Details
-
getOptions
Returns the set of available options.- Returns:
- The available options.
-
isCompatibleValue
Returnstrue
if the specified object is one of the valid options. If the options specified at construction time contains the"*"
wildcard, then this method returnstrue
for everyString
object.- Overrides:
isCompatibleValue
in classHints.Key
- Parameters:
value
- The object to test for validity.- Returns:
true
if the value is valid;false
otherwise.- See Also:
-