nz.ac.waikato.mcennis.rat.parser.xmlHandler
Class RATExecution
java.lang.Object
org.xml.sax.helpers.DefaultHandler
nz.ac.waikato.mcennis.rat.parser.xmlHandler.Handler
nz.ac.waikato.mcennis.rat.parser.xmlHandler.RATExecution
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
public class RATExecution
- extends Handler
Class for parsing a scheduler XML configuration file. The file is in three parts.
The first describes the graph representation, the second describes the data
aquisition modules, and the final section describes the algorithms used.
Constructor Summary |
RATExecution()
Creates a new instance of RATExecution |
Method Summary |
void |
characters(char[] ch,
int start,
int length)
|
Handler |
duplicate()
Create a complete duplicate of this class |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
|
ParsedObject |
get()
Return the underlying parsed object |
void |
set(ParsedObject o)
Set the underlying parsed object for parsing |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
|
Methods inherited from class nz.ac.waikato.mcennis.rat.parser.xmlHandler.Handler |
check, check, error, fatalError, getName, getParameter, getParameter, init, setCrawler, setName, setProperties, warning |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RATExecution
public RATExecution()
- Creates a new instance of RATExecution
get
public ParsedObject get()
- Description copied from class:
Handler
- Return the underlying parsed object
- Specified by:
get
in class Handler
- Returns:
- parsed object
set
public void set(ParsedObject o)
- Description copied from class:
Handler
- Set the underlying parsed object for parsing
- Specified by:
set
in class Handler
- Parameters:
o
- underlying parsed object
duplicate
public Handler duplicate()
- Description copied from class:
Handler
- Create a complete duplicate of this class
- Specified by:
duplicate
in class Handler
- Returns:
- deep copy of the original.
startElement
public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
- Specified by:
startElement
in interface org.xml.sax.ContentHandler
- Overrides:
startElement
in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
characters
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
- Specified by:
characters
in interface org.xml.sax.ContentHandler
- Overrides:
characters
in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
endElement
public void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
- Specified by:
endElement
in interface org.xml.sax.ContentHandler
- Overrides:
endElement
in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException