net.vee.btech.saikoro
Class GameParsedObjectFactory
java.lang.Object
|
+--net.vee.btech.saikoro.GameParsedObjectFactory
- All Implemented Interfaces:
- net.vee.io.xml.ParsedObjectFactory
- public class GameParsedObjectFactory
- extends java.lang.Object
- implements net.vee.io.xml.ParsedObjectFactory
A ParsedObjectFactory for Saikoro games.
|
Method Summary |
protected static Game |
getGame(net.vee.io.xml.ParsedObject aObject)
Returns the game from a GameParsedObject. |
protected int |
getInt(java.lang.String aName,
net.vee.io.xml.Attributes aAttrs)
Returns the named attribute value as an int. |
java.lang.String |
getNamespace()
Returns the XML namespace for this factory. |
protected java.lang.String |
getString(java.lang.String aName,
net.vee.io.xml.Attributes aAttrs)
Returns the named attribute value. |
net.vee.io.xml.ParsedObject |
newParsedObject(java.lang.String aLocalName,
net.vee.io.xml.Attributes aAttrs)
Constructs a new parsed object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GameParsedObjectFactory
public GameParsedObjectFactory()
getGame
protected static Game getGame(net.vee.io.xml.ParsedObject aObject)
throws SaikoroException
- Returns the game from a GameParsedObject.
getNamespace
public java.lang.String getNamespace()
- Returns the XML namespace for this factory.
- Specified by:
getNamespace in interface net.vee.io.xml.ParsedObjectFactory
newParsedObject
public net.vee.io.xml.ParsedObject newParsedObject(java.lang.String aLocalName,
net.vee.io.xml.Attributes aAttrs)
throws net.vee.io.xml.XMLException
- Constructs a new parsed object. This method is invoked by
a Parser for every element in this factory's namespace.
- Specified by:
newParsedObject in interface net.vee.io.xml.ParsedObjectFactory
- Parameters:
aLocalName - the local name of the element.aAttrs - the element's attributes.- Returns:
- an instance of ParsedObject.
- Throws:
net.vee.io.xml.XMLException - thrown if the factory could not
construct a ParsedObject.
getString
protected java.lang.String getString(java.lang.String aName,
net.vee.io.xml.Attributes aAttrs)
throws net.vee.io.xml.XMLException
- Returns the named attribute value.
getInt
protected int getInt(java.lang.String aName,
net.vee.io.xml.Attributes aAttrs)
throws net.vee.io.xml.XMLException
- Returns the named attribute value as an int.