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