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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a setup descriptor from XML data.protected EntitySetupDescriptorCreate an entity setup descriptor.protected voidreadAttributes(EntitySetupDescriptor desc, Element element) Read attributes from an XML element.protected voidreadConnector(EntitySetupDescriptor desc, Element element) Read a connector from an XML element.protected voidreadImplementation(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:
readin classSetupXMLReader- Parameters:
element- The descriptor XML element.- Returns:
- A setup descriptor, or
nullif invalid.
-