Gridarta Editor
net.sf.gridarta.model.spells.XMLSpellLoader Class Reference

Load spell definitions from an XML file. More...

+ Collaboration diagram for net.sf.gridarta.model.spells.XMLSpellLoader:

Static Public Member Functions

static void load (@NotNull final ErrorViewCollector errorViewCollector, @NotNull final Document document, @NotNull final Spells< NumberSpell > spells)
 Load an XML spell definitions file. More...
 

Private Member Functions

 XMLSpellLoader ()
 Private constructor to prevent instantiation. More...
 

Static Private Attributes

static final Category LOG = Logger.getLogger(XMLSpellLoader.class)
 The Logger for printing log messages. More...
 

Detailed Description

Load spell definitions from an XML file.

Author
Andreas Kirschbaum

Definition at line 35 of file XMLSpellLoader.java.

Constructor & Destructor Documentation

◆ XMLSpellLoader()

net.sf.gridarta.model.spells.XMLSpellLoader.XMLSpellLoader ( )
private

Private constructor to prevent instantiation.

Definition at line 46 of file XMLSpellLoader.java.

Member Function Documentation

◆ load()

static void net.sf.gridarta.model.spells.XMLSpellLoader.load ( @NotNull final ErrorViewCollector  errorViewCollector,
@NotNull final Document  document,
@NotNull final Spells< NumberSpell spells 
)
static

Load an XML spell definitions file.

Parameters
errorViewCollectorthe error view collector for reporting errors
documentthe document of the spell definitions file
spellsthe
Spells
instance to add the spells to

Definition at line 55 of file XMLSpellLoader.java.

References net.sf.gridarta.model.errorview.ErrorViewCategory.SPELLS_ENTRY_INVALID, and net.sf.gridarta.model.errorview.ErrorViewCategory.SPELLS_FILE_INVALID.

Referenced by net.sf.gridarta.project.ProjectModel<?, ?, ?>.loadSpellFile().

+ Here is the caller graph for this function:

Member Data Documentation

◆ LOG

final Category net.sf.gridarta.model.spells.XMLSpellLoader.LOG = Logger.getLogger(XMLSpellLoader.class)
staticprivate

The Logger for printing log messages.

Definition at line 41 of file XMLSpellLoader.java.


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