Class SetupXMLReader

java.lang.Object
games.stendhal.server.core.config.zone.SetupXMLReader
Direct Known Subclasses:
AttributesXMLReader, ConfiguratorXMLReader, EntitySetupXMLReader

public abstract class SetupXMLReader extends Object
A base setup xml reader.
  • Constructor Details

    • SetupXMLReader

      public SetupXMLReader()
  • Method Details

    • read

      public abstract SetupDescriptor read(Element element)
      Create a setup descriptor from XML data.
      Parameters:
      element - The descriptor XML element.
      Returns:
      A setup descriptor, or null if invalid.
    • readParameters

      protected void readParameters(SetupDescriptor desc, Element element)
      Read paramaters from an XML element.
      Parameters:
      desc - The descriptor to load.
      element - The XML element.