Package net.sf.gridarta.plugin.parameter
Class PluginParameterCodec<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.plugin.parameter.PluginParameterCodec<G,A,R>
-
public class PluginParameterCodec<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.ObjectConvertsPluginParametersfrom or to XML encoding.
-
-
Constructor Summary
Constructors Constructor Description PluginParameterCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfromXML(@NotNull PluginParameter<G,A,R,?> parameter, @NotNull nu.xom.Element e)Restores aPluginParameterfrom XML representation.@NotNull nu.xom.ElementtoXML(@NotNull PluginParameter<G,A,R,?> parameter)Returns the XML representation of aPluginParameter.
-
-
-
Method Detail
-
toXML
@NotNull public @NotNull nu.xom.Element toXML(@NotNull @NotNull PluginParameter<G,A,R,?> parameter)Returns the XML representation of aPluginParameter.- Parameters:
parameter- the plugin parameter to encode- Returns:
- the plugin parameter in XML repfresentation
-
fromXML
public void fromXML(@NotNull @NotNull PluginParameter<G,A,R,?> parameter, @NotNull @NotNull nu.xom.Element e)Restores aPluginParameterfrom XML representation.- Parameters:
parameter- the plugin parameter to restoree- the XML representation
-
-