Class EntitySetupXMLReader
java.lang.Object
games.stendhal.server.core.config.zone.SetupXMLReader
games.stendhal.server.core.config.zone.EntitySetupXMLReader
- Direct Known Subclasses:
PortalSetupXMLReader
A generic entity setup xml reader.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate a setup descriptor from XML data.protected EntitySetupDescriptor
Create an entity setup descriptor.protected void
readAttributes(EntitySetupDescriptor desc, Element element)
Read attributes from an XML element.protected void
readConnector(EntitySetupDescriptor desc, Element element)
Read a connector from an XML element.protected void
readImplementation(EntitySetupDescriptor desc, Element element)
Read implementation information from an XML element.Methods inherited from class games.stendhal.server.core.config.zone.SetupXMLReader
readParameters
-
Constructor Details
-
EntitySetupXMLReader
public EntitySetupXMLReader()
-
-
Method Details
-
read
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
Read attributes from an XML element.- Parameters:
desc
- The descriptor to load.element
- The XML element.
-
readConnector
Read a connector from an XML element.- Parameters:
desc
- The descriptor to load.element
- The XML element.
-
readImplementation
Read implementation information from an XML element.- Parameters:
desc
- The descriptor to load.element
- The XML element.
-
read
Create a setup descriptor from XML data.- Specified by:
read
in classSetupXMLReader
- Parameters:
element
- The descriptor XML element.- Returns:
- A setup descriptor, or
null
if invalid.
-