Package net.sf.gridarta.plugin.parameter
Class PluginParameterFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.plugin.parameter.PluginParameterFactory<G,A,R>
-
public class PluginParameterFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.ObjectFactory for Plugin Parameters.
-
-
Constructor Summary
Constructors Constructor Description PluginParameterFactory(@NotNull ArchetypeSet<G,A,R> archetypeSet, @NotNull MapManager<G,A,R> mapManager, @NotNull ProjectSettings projectSettings, @NotNull PathManager pathManager)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull PluginParameter<G,A,R,?>createParameter(@NotNull java.lang.String type)@NotNull PluginParameter<G,A,R,?>createParameter(@NotNull nu.xom.Element parameterNode)@NotNull PluginParameter<G,A,R,?>createStringParameter(@NotNull nu.xom.Element parameterNode)Creates a newStringParameterfrom XML representation.static @NotNull java.lang.String @NotNull []getTypes()Returns all available plugin parameter type names.
-
-
-
Constructor Detail
-
PluginParameterFactory
public PluginParameterFactory(@NotNull @NotNull ArchetypeSet<G,A,R> archetypeSet, @NotNull @NotNull MapManager<G,A,R> mapManager, @NotNull @NotNull ProjectSettings projectSettings, @NotNull @NotNull PathManager pathManager)- Parameters:
pathManager- the path manager instance for incverting files into path names
-
-
Method Detail
-
createParameter
@NotNull public @NotNull PluginParameter<G,A,R,?> createParameter(@NotNull @NotNull nu.xom.Element parameterNode) throws NoSuchParameterException
- Throws:
NoSuchParameterException
-
createStringParameter
@NotNull public @NotNull PluginParameter<G,A,R,?> createStringParameter(@NotNull @NotNull nu.xom.Element parameterNode)
Creates a newStringParameterfrom XML representation.- Parameters:
parameterNode- the XML representation- Returns:
- the string parameter
-
createParameter
@NotNull public @NotNull PluginParameter<G,A,R,?> createParameter(@NotNull @NotNull java.lang.String type) throws NoSuchParameterException
- Throws:
NoSuchParameterException
-
getTypes
@NotNull public static @NotNull java.lang.String @NotNull [] getTypes()
Returns all available plugin parameter type names.- Returns:
- the type names types
-
-