public abstract class AbstractStringPluginParameter<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>,V> extends AbstractPluginParameter<G,A,R,V>
PluginParameter
implementations for which the
value is calculated from the string representation.Modifier | Constructor and Description |
---|---|
protected |
AbstractStringPluginParameter(@NotNull java.lang.String stringValue)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull java.lang.String |
getStringValue()
Returns the string representation of the current value of the parameter.
|
boolean |
setStringValue(@NotNull java.lang.String stringValue)
Updates the parameter value.
|
addPluginParameterListener, changed, getDescription, getName, removePluginParameterListener, setDescription, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParameterType, getValue, getValueOrNull, visit
protected AbstractStringPluginParameter(@NotNull @NotNull java.lang.String stringValue)
stringValue
- the initial value@NotNull public @NotNull java.lang.String getStringValue()
PluginParameter
public boolean setStringValue(@NotNull @NotNull java.lang.String stringValue)
stringValue
- the new valuetrue
if the value was accepted or false
if the
value was not changed because the new value is invalid