| org.griphyn.cPlanner.parser.Parser org.griphyn.cPlanner.parser.PDAXParser
PDAXParser | public class PDAXParser extends Parser (Code) | | This is a parser class for the parsing the pdax that contain the jobs in the
various partitions and the relations between the partitions.
author: Karan Vahi version: $Revision: 50 $ |
Method Summary | |
public void | endDocument() This is called automatically when the end of the XML file is reached. | public void | endElement(String uri, String local, String qName) An empty implementation is provided by DefaultHandler class. | public String | getSchemaLocation() Helps the load database to locate the PDAX XML schema, if available.
Please note that the schema location URL in the instance document
is only a hint, and may be overriden by the findings of this method.
a location pointing to a definition document of the XMLschema that can read PDAX. | public void | setCallback(Callback callback) Sets the callback handler for this parsing instance. | public void | startElement(String uri, String local, String raw, Attributes attrs) An empty implementation is provided by DefaultHandler of ContentHandler.
This method receives the notification from the sacks parser when start
tag of an element comes. | public void | startParser(String file) Ends up starting the parsing of the file , by the underlying parser. |
SCHEMA_LOCATION | final public static String SCHEMA_LOCATION(Code) | | The "not-so-official" location URL of the DAX schema definition.
|
SCHEMA_NAMESPACE | final public static String SCHEMA_NAMESPACE(Code) | | URI namespace
|
PDAXParser | public PDAXParser(PegasusProperties properties)(Code) | | The default constructor.
Parameters: properties - the PegasusProperties to be used. |
PDAXParser | public PDAXParser(String fileName, PegasusProperties properties)(Code) | | The constructor initialises the parser, and turns on the validation feature
in Xerces.
Parameters: fileName - the file which one has to parse using the parser. Parameters: properties - the PegasusProperties to be used. |
endDocument | public void endDocument()(Code) | | This is called automatically when the end of the XML file is reached.
|
endElement | public void endElement(String uri, String local, String qName)(Code) | | An empty implementation is provided by DefaultHandler class. This method
is called automatically by the Sax parser when the end tag of an element
comes in the xml file. Any parser class should implement this method
|
getSchemaLocation | public String getSchemaLocation()(Code) | | Helps the load database to locate the PDAX XML schema, if available.
Please note that the schema location URL in the instance document
is only a hint, and may be overriden by the findings of this method.
a location pointing to a definition document of the XMLschema that can read PDAX. Result may be null, if such a documentis unknown or unspecified. |
setCallback | public void setCallback(Callback callback)(Code) | | Sets the callback handler for this parsing instance.
|
startElement | public void startElement(String uri, String local, String raw, Attributes attrs) throws SAXException(Code) | | An empty implementation is provided by DefaultHandler of ContentHandler.
This method receives the notification from the sacks parser when start
tag of an element comes. Any parser class must implement this method.
|
startParser | public void startParser(String file)(Code) | | Ends up starting the parsing of the file , by the underlying parser.
Parameters: file - the path/url to the file that needs to be parsed. |
|
|