public interface Property<T>
Example states include "variant" (indicating material or type) and "facing" (indicating orientation).
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of this state.
|
T |
getValueFor(java.lang.String string)
Gets the value for the given string, or null.
|
java.util.List<T> |
getValues()
Return a list of available values for this state.
|
java.lang.String getName()
java.util.List<T> getValues()
@Nullable T getValueFor(java.lang.String string) throws java.lang.IllegalArgumentException
string
- The stringjava.lang.IllegalArgumentException
- When the value is invalid.