Class StringParameter<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>

    • Field Detail

      • PARAMETER_TYPE

        @NotNull
        public static final @NotNull java.lang.String PARAMETER_TYPE
        The string representation of this parameter type.
    • Constructor Detail

      • StringParameter

        public StringParameter()
        Creates a new instance.
    • Method Detail

      • setStringValue

        public boolean setStringValue​(@NotNull
                                      @NotNull java.lang.String stringValue)
        Description copied from interface: PluginParameter
        Sets the parameter value from string representation.
        Parameters:
        stringValue - the string representation of the value to set
        Returns:
        true if the value was accepted or false if the value was not changed because the new value is invalid
      • visit

        @NotNull
        public <T> T visit​(@NotNull
                           @NotNull PluginParameterVisitor<G,​A,​R,​T> visitor)
        Description copied from interface: PluginParameter
        Calls the visit() function for this parameter type.
        Type Parameters:
        T - the visitor-specific type of the return value
        Parameters:
        visitor - the visitor to call
        Returns:
        a visitor-specific return value
      • getParameterType

        @NotNull
        public @NotNull java.lang.String getParameterType()
        Description copied from interface: PluginParameter
        Returns the parameter type name.
        Returns:
        the parameter type name
      • getStringValue

        @NotNull
        public @NotNull java.lang.String getStringValue()
        Description copied from interface: PluginParameter
        Returns the string representation of the current value of the parameter.
        Returns:
        the string representation of the value