Package svs_demogame :: Module gamesettings :: Class GameSettingsXMLContentHandler
[show private | hide private]
[frames | no frames]

Class GameSettingsXMLContentHandler

  ContentHandler --+        
                   |        
      DTDHandler --+        
                   |        
  EntityResolver --+        
                   |        
    ErrorHandler --+        
                   |        
      DefaultHandler --+    
                       |    
GenericXMLContentHandler --+
                           |
                          GameSettingsXMLContentHandler


Handler for parser game settings xml document.
Method Summary
  __init__(self, target)
  characters(self, content)
Receive notification of character data.
  endElement(self, name)
Signals the end of an element in non-namespace mode.
  handleAgentsTag(self, attrs)
Parses AGENTS tag.
  handleAgentTag(self, attrs)
Parses AGENT tag.
  handleAgentTagEnd(self)
Stores data collected from AGENT tag along with script code for agent.
  handleAreasTag(self, attrs)
Parses AREAS tag.
  handleAreaTag(self, attrs)
Parses AREA tag.
  handleAreaTagEnd(self)
Stores data collected from AREA tag along with script code for area.
  handleGameWorldTag(self, attrs)
Parses GAMEWORLD tag.
  handleScriptsTag(self, attrs)
Parses SCRIPTS tag.
  handleScriptTag(self, attrs)
Parses SCRIPT tag.
  handleScriptTagEnd(self, chardata)
Adds script onto data collected for area.
  startElement(self, name, attrs)
Signals the start of an element in non-namespace mode.
    Inherited from GenericXMLContentHandler
  error(self, exception)
Handle a recoverable error.
    Inherited from EntityResolver
  resolveEntity(self, publicId, systemId)
Resolve the system identifier of an entity and return either the system identifier to read from as a string, or an InputSource to read from.
    Inherited from DTDHandler
  notationDecl(self, name, publicId, systemId)
Handle a notation declaration event.
  unparsedEntityDecl(self, name, publicId, systemId, ndata)
Handle an unparsed entity declaration event.
    Inherited from ContentHandler
  endDocument(self)
Receive notification of the end of a document.
  endElementNS(self, name, qname)
Signals the end of an element in namespace mode.
  endPrefixMapping(self, prefix)
End the scope of a prefix-URI mapping.
  ignorableWhitespace(self, whitespace)
Receive notification of ignorable whitespace in element content.
  processingInstruction(self, target, data)
Receive notification of a processing instruction.
  setDocumentLocator(self, locator)
Called by the parser to give the application a locator for locating the origin of document events.
  skippedEntity(self, name)
Receive notification of a skipped entity.
  startDocument(self)
Receive notification of the beginning of a document.
  startElementNS(self, name, qname, attrs)
Signals the start of an element in namespace mode.
  startPrefixMapping(self, prefix, uri)
Begin the scope of a prefix-URI Namespace mapping.
    Inherited from ErrorHandler
  fatalError(self, exception)
Handle a non-recoverable error.
  warning(self, exception)
Handle a warning.

Instance Variable Summary
    Inherited from GenericXMLContentHandler
string currentNode: name of current node in parsing process
string target: target to pass parsed data to

Method Details

characters(self, content)

Receive notification of character data.

The Parser will call this method to report each chunk of character data. SAX parsers may return all contiguous character data in a single chunk, or they may split it into several chunks; however, all of the characters in any single event must come from the same external entity so that the Locator provides useful information.
Overrides:
svs_core.filehandling.loaders.GenericXMLContentHandler.characters (inherited documentation)

endElement(self, name)

Signals the end of an element in non-namespace mode.

The name parameter contains the name of the element type, just as with the startElement event.
Overrides:
svs_core.filehandling.loaders.GenericXMLContentHandler.endElement (inherited documentation)

handleAgentsTag(self, attrs)

Parses AGENTS tag.
Parameters:
attrs - attributes for tag
           (type=list)

handleAgentTag(self, attrs)

Parses AGENT tag.
Parameters:
attrs - attributes for tag
           (type=list)

handleAgentTagEnd(self)

Stores data collected from AGENT tag along with script code for agent.

handleAreasTag(self, attrs)

Parses AREAS tag.
Parameters:
attrs - attributes for tag
           (type=list)

handleAreaTag(self, attrs)

Parses AREA tag.
Parameters:
attrs - attributes for tag
           (type=list)

handleAreaTagEnd(self)

Stores data collected from AREA tag along with script code for area.

handleGameWorldTag(self, attrs)

Parses GAMEWORLD tag.
Parameters:
attrs - attributes for tag
           (type=list)

handleScriptsTag(self, attrs)

Parses SCRIPTS tag.
Parameters:
attrs - attributes for tag
           (type=list)

handleScriptTag(self, attrs)

Parses SCRIPT tag.
Parameters:
attrs - attributes for tag
           (type=list)

handleScriptTagEnd(self, chardata)

Adds script onto data collected for area.

startElement(self, name, attrs)

Signals the start of an element in non-namespace mode.

The name parameter contains the raw XML 1.0 name of the element type as a string and the attrs parameter holds an instance of the Attributes class containing the attributes of the element.
Overrides:
svs_core.filehandling.loaders.GenericXMLContentHandler.startElement (inherited documentation)

Generated by Epydoc 2.1 on Thu Oct 20 15:30:28 2005 http://epydoc.sf.net