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


  • public class PluginModelParser<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>
    extends java.lang.Object
    Converter for Plugin instances to or from XML representation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull Plugin<G,​A,​R> fromXML​(@NotNull nu.xom.Element node)
      Creates a Plugin instance from XML representation.
      @NotNull nu.xom.Element toXML​(@NotNull Plugin<G,​A,​R> plugin)
      Converts a Plugin instance to XML representation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PluginModelParser

        public PluginModelParser​(@NotNull
                                 @NotNull PluginParameterFactory<G,​A,​R> pluginParameterFactory)
        Creates a new instance.
        Parameters:
        pluginParameterFactory - the plugin parameter factory to use
    • Method Detail

      • fromXML

        @NotNull
        public @NotNull Plugin<G,​A,​R> fromXML​(@NotNull
                                                          @NotNull nu.xom.Element node)
        Creates a Plugin instance from XML representation.
        Parameters:
        node - the XML representation
        Returns:
        the plugin instance
      • toXML

        @NotNull
        public @NotNull nu.xom.Element toXML​(@NotNull
                                             @NotNull Plugin<G,​A,​R> plugin)
        Converts a Plugin instance to XML representation.
        Parameters:
        plugin - the plugin instance
        Returns:
        the XML representation