Gridarta Editor
net.sf.gridarta.plugin.PluginModelParser< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > Class Template Reference
+ Inheritance diagram for net.sf.gridarta.plugin.PluginModelParser< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
+ Collaboration diagram for net.sf.gridarta.plugin.PluginModelParser< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:

Public Member Functions

Plugin< G, A, R > fromXML (@NotNull final Element node)
 
 PluginModelParser (@NotNull final PluginParameterFactory< G, A, R > pluginParameterFactory)
 
Element toXML (@NotNull final Plugin< G, A, R > plugin)
 

Private Attributes

final PluginParameterFactory< G, A, R > pluginParameterFactory
 

Static Private Attributes

static final String AUTO_BOOT = "autoboot"
 
static final String BASH = "bash"
 
static final String FILTER = "filter"
 
static final Category LOG = Logger.getLogger(PluginModelParser.class)
 

Detailed Description

Converter for Plugin instances to or from XML representation.

Author
tchize
Andreas Kirschbaum

Definition at line 44 of file PluginModelParser.java.

Constructor & Destructor Documentation

◆ PluginModelParser()

net.sf.gridarta.plugin.PluginModelParser< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.PluginModelParser ( @NotNull final PluginParameterFactory< G, A, R >  pluginParameterFactory)

Creates a new instance.

Parameters
pluginParameterFactorythe plugin parameter factory to use

Definition at line 80 of file PluginModelParser.java.

Member Function Documentation

◆ fromXML()

Plugin<G, A, R> net.sf.gridarta.plugin.PluginModelParser< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.fromXML ( @NotNull final Element  node)

Creates a Plugin instance from XML representation.

Parameters
nodethe XML representation
Returns
the plugin instance

Definition at line 90 of file PluginModelParser.java.

◆ toXML()

Element net.sf.gridarta.plugin.PluginModelParser< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.toXML ( @NotNull final Plugin< G, A, R >  plugin)

Converts a Plugin instance to XML representation.

Parameters
pluginthe plugin instance
Returns
the XML representation

Definition at line 135 of file PluginModelParser.java.

Referenced by net.sf.gridarta.plugin.PluginModel< G, A, R >.savePlugin().

+ Here is the caller graph for this function:

Member Data Documentation

◆ AUTO_BOOT

final String net.sf.gridarta.plugin.PluginModelParser< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.AUTO_BOOT = "autoboot"
staticprivate

◆ BASH

final String net.sf.gridarta.plugin.PluginModelParser< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.BASH = "bash"
staticprivate

Whether the plugin is a stand-alone plugin.

Definition at line 62 of file PluginModelParser.java.

Referenced by net.sf.gridarta.plugin.PluginModelParser< G, A, R >.fromXML(), and net.sf.gridarta.plugin.PluginModelParser< G, A, R >.toXML().

◆ FILTER

final String net.sf.gridarta.plugin.PluginModelParser< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.FILTER = "filter"
staticprivate

◆ LOG

final Category net.sf.gridarta.plugin.PluginModelParser< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.LOG = Logger.getLogger(PluginModelParser.class)
staticprivate

The Logger for printing log messages.

Definition at line 68 of file PluginModelParser.java.

Referenced by net.sf.gridarta.plugin.PluginModelParser< G, A, R >.fromXML().

◆ pluginParameterFactory


The documentation for this class was generated from the following file: