Class XMLSpellLoader


  • public class XMLSpellLoader
    extends java.lang.Object
    Load spell definitions from an XML file.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void load​(@NotNull ErrorViewCollector errorViewCollector, @NotNull nu.xom.Document document, @NotNull Spells<NumberSpell> spells)
      Load an XML spell definitions file.
      • Methods inherited from class java.lang.Object

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

      • load

        public static void load​(@NotNull
                                @NotNull ErrorViewCollector errorViewCollector,
                                @NotNull
                                @NotNull nu.xom.Document document,
                                @NotNull
                                @NotNull Spells<NumberSpell> spells)
        Load an XML spell definitions file.
        Parameters:
        errorViewCollector - the error view collector for reporting errors
        document - the document of the spell definitions file
        spells - the Spells instance to add the spells to