Class MapPathParameter<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.
        See Also:
        Constant Field Values
    • Constructor Detail

      • MapPathParameter

        public MapPathParameter​(@NotNull
                                @NotNull PathManager pathManager,
                                @NotNull
                                @NotNull ProjectSettings projectSettings)
        Creates a new instance.
        Parameters:
        pathManager - the path manager instance for converting files into path names
        projectSettings - the project settings instance
    • Method Detail

      • getParameterType

        @NotNull
        public @NotNull java.lang.String getParameterType()
        Description copied from interface: PluginParameter
        Returns the parameter type name.
        Returns:
        the parameter type name
      • 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
      • getValue

        @NotNull
        public @NotNull java.lang.String getValue()
        Description copied from interface: PluginParameter
        Returns the current value of this parameter.
        Returns:
        the value
      • getValueOrNull

        @Nullable
        public @Nullable java.lang.String getValueOrNull()
        Description copied from interface: PluginParameter
        Returns the current value of this parameter.
        Returns:
        the value or null if the the value is invalid
      • setFile

        public void setFile​(@NotNull
                            @NotNull java.io.File file)
                     throws InvalidValueException
        Sets the value from a File instance.
        Parameters:
        file - the file instance
        Throws:
        InvalidValueException - if the file instance is invalid