Class EntitySetupXMLReader

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

public class EntitySetupXMLReader extends SetupXMLReader
A generic entity setup xml reader.
  • Constructor Details

    • EntitySetupXMLReader

      public EntitySetupXMLReader()
  • Method Details

    • read

      protected EntitySetupDescriptor read(Element element, int x, int y)
      Create an entity setup descriptor.
      Parameters:
      element - The entity setup XML element.
      x - The X coordinate.
      y - The Y coordinate.
      Returns:
      An entity setup descriptor.
    • readAttributes

      protected void readAttributes(EntitySetupDescriptor desc, Element element)
      Read attributes from an XML element.
      Parameters:
      desc - The descriptor to load.
      element - The XML element.
    • readConnector

      protected void readConnector(EntitySetupDescriptor desc, Element element)
      Read a connector from an XML element.
      Parameters:
      desc - The descriptor to load.
      element - The XML element.
    • readImplementation

      protected void readImplementation(EntitySetupDescriptor desc, Element element)
      Read implementation information from an XML element.
      Parameters:
      desc - The descriptor to load.
      element - The XML element.
    • read

      public SetupDescriptor read(Element element)
      Create a setup descriptor from XML data.
      Specified by:
      read in class SetupXMLReader
      Parameters:
      element - The descriptor XML element.
      Returns:
      A setup descriptor, or null if invalid.