public class PluginParameterFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
Constructor and Description |
---|
PluginParameterFactory(@NotNull ArchetypeSet<G,A,R> archetypeSet,
@NotNull MapManager<G,A,R> mapManager,
@NotNull ProjectSettings projectSettings,
@NotNull PathManager pathManager) |
Modifier and Type | Method and Description |
---|---|
@NotNull PluginParameter<G,A,R,?> |
createParameter(@NotNull nu.xom.Element parameterNode) |
@NotNull PluginParameter<G,A,R,?> |
createParameter(@NotNull java.lang.String type) |
@NotNull PluginParameter<G,A,R,?> |
createStringParameter(@NotNull nu.xom.Element parameterNode)
Creates a new
StringParameter from XML representation. |
static @NotNull java.lang.String[] |
getTypes()
Returns all available plugin parameter type names.
|
public PluginParameterFactory(@NotNull @NotNull ArchetypeSet<G,A,R> archetypeSet, @NotNull @NotNull MapManager<G,A,R> mapManager, @NotNull @NotNull ProjectSettings projectSettings, @NotNull @NotNull PathManager pathManager)
pathManager
- the path manager instance for incverting files into
path names@NotNull public @NotNull PluginParameter<G,A,R,?> createParameter(@NotNull @NotNull nu.xom.Element parameterNode) throws NoSuchParameterException
NoSuchParameterException
@NotNull public @NotNull PluginParameter<G,A,R,?> createStringParameter(@NotNull @NotNull nu.xom.Element parameterNode)
StringParameter
from XML representation.parameterNode
- the XML representation@NotNull public @NotNull PluginParameter<G,A,R,?> createParameter(@NotNull @NotNull java.lang.String type) throws NoSuchParameterException
NoSuchParameterException
@NotNull public static @NotNull java.lang.String[] getTypes()