Class PluginParameterCodec<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>

    • Constructor Detail

      • PluginParameterCodec

        public PluginParameterCodec()
    • Method Detail

      • toXML

        @NotNull
        public @NotNull nu.xom.Element toXML​(@NotNull
                                             @NotNull PluginParameter<G,​A,​R,​?> parameter)
        Returns the XML representation of a PluginParameter.
        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 a PluginParameter from XML representation.
        Parameters:
        parameter - the plugin parameter to restore
        e - the XML representation