Gridarta Editor
net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V > Interface Template Reference

Parameter for a Plugin. More...

+ Inheritance diagram for net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >:
+ Collaboration diagram for net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >:

Public Member Functions

void addPluginParameterListener (@NotNull PluginParameterListener listener)
 Adds a listener to be notified. More...
 
String getDescription ()
 The user-provided description of the value for the user interface. More...
 
String getName ()
 The name of the parameter. More...
 
String getParameterType ()
 Returns the parameter type name. More...
 
String getStringValue ()
 Returns the string representation of the current value of the parameter. More...
 
getValue () throws InvalidValueException
 Returns the current value of this parameter. More...
 
getValueOrNull ()
 Returns the current value of this parameter. More...
 
void removePluginParameterListener (@NotNull PluginParameterListener listener)
 Removes a listener to be notified. More...
 
void setDescription (@NotNull String description)
 Sets the user-provided description of the value for the user interface. More...
 
void setName (@NotNull String name)
 Sets the name of the parameter. More...
 
boolean setStringValue (@NotNull String stringValue)
 Sets the parameter value from string representation. More...
 
< T > T visit (@NotNull PluginParameterVisitor< G, A, R, T > visitor)
 Calls the. More...
 

Detailed Description

Parameter for a Plugin.

Author
tchize
Andreas Kirschbaum

Definition at line 33 of file PluginParameter.java.

Member Function Documentation

◆ addPluginParameterListener()

void net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.addPluginParameterListener ( @NotNull PluginParameterListener  listener)

Adds a listener to be notified.

Parameters
listenerthe listener

Referenced by net.sf.gridarta.plugin.Plugin< G, A, R >.convertType(), and net.sf.gridarta.plugin.Plugin< G, A, R >.newParameter().

+ Here is the caller graph for this function:

◆ getDescription()

◆ getName()

String net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getName ( )

◆ getParameterType()

◆ getStringValue()

String net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getStringValue ( )

Returns the string representation of the current value of the parameter.

Returns
the string representation of the value

Referenced by net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testArchetypeFromXml1(), net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testArchetypeFromXml2(), and net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testArchetypeFromXml3().

+ Here is the caller graph for this function:

◆ getValue()

V net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getValue ( ) throws InvalidValueException

Returns the current value of this parameter.

Returns
the value
Exceptions
InvalidValueExceptionif the the value is invalid

◆ getValueOrNull()

◆ removePluginParameterListener()

void net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.removePluginParameterListener ( @NotNull PluginParameterListener  listener)

Removes a listener to be notified.

Parameters
listenerthe listener

Referenced by net.sf.gridarta.plugin.Plugin< G, A, R >.convertType().

+ Here is the caller graph for this function:

◆ setDescription()

◆ setName()

◆ setStringValue()

boolean net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.setStringValue ( @NotNull String  stringValue)

◆ visit()

<T> T net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.visit ( @NotNull PluginParameterVisitor< G, A, R, T >  visitor)

Calls the.

function for this parameter type.

Parameters
visitorthe visitor to call
<T>the visitor-specific type of the return value
Returns
an visitor-specific return value

The documentation for this interface was generated from the following file: