|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--org.xml.sax.helpers.DefaultHandler
|
+--GBXParser
A SAX2 Parser for GBX Format. This program is SAX2 parser for the GBX file format.
| Field Summary | |
(package private) boolean |
xcoordinateNext
Elements. |
(package private) boolean |
ycoordinateNext
xcoordinate of current gate. |
| Constructor Summary | |
GBXParser(CircuitDiagram newCD,
GateBuilder newGB)
|
|
| Method Summary | |
void |
characters(char[] ch,
int start,
int length)
The method that handles characters. |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
This method handles the cleanup for new elements. |
void |
error(org.xml.sax.SAXParseException ex)
Handler of non-fatal errors. |
void |
fatalError(org.xml.sax.SAXParseException ex)
Handler of fatal errors. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
The method that handles ignorableWhiteSpace. |
void |
parse(org.xml.sax.InputSource inSource)
This method does everything needed to parse a file and returns. |
void |
parse(java.lang.String uri)
This method does everything needed to parse a file and returns. |
void |
print(java.lang.String parserName,
org.xml.sax.InputSource inSource,
boolean validate)
This methods intializes our parser and prints any information that should be printed. |
void |
startDocument()
The method that gets called at the start of the gbx document. |
void |
startElement(java.lang.String uri,
java.lang.String local,
java.lang.String raw,
org.xml.sax.Attributes attrs)
The method that handles new elements. |
void |
warning(org.xml.sax.SAXParseException ex)
Handler of warnings. |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument,
endPrefixMapping,
notationDecl,
processingInstruction,
resolveEntity,
setDocumentLocator,
skippedEntity,
startPrefixMapping,
unparsedEntityDecl |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
boolean xcoordinateNext
boolean ycoordinateNext
| Constructor Detail |
public GBXParser(CircuitDiagram newCD,
GateBuilder newGB)
| Method Detail |
public void parse(java.lang.String uri)
throws CancelException
uri - the uri of the file to open.
public void parse(org.xml.sax.InputSource inSource)
throws CancelException
uri - the uri of the file to open.
public void print(java.lang.String parserName,
org.xml.sax.InputSource inSource,
boolean validate)
throws CancelException
parserName - The name of the parser to use.inSource - The file to open and parse.validate - whether or not we will be validating today. (Ignored)public void startDocument()
public void startElement(java.lang.String uri,
java.lang.String local,
java.lang.String raw,
org.xml.sax.Attributes attrs)
uri - the filename that we're parsing.attr - Attributes.
public void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
uri - the filename that we're parsing.attr - Atrributes.
public void characters(char[] ch,
int start,
int length)
ch[] - array of characters.start - start position in character array.length - number of characters to use from array.
public void ignorableWhitespace(char[] ch,
int start,
int length)
ch[] - array of characters.start - start position in the character array.length - number of characters to use from array.public void warning(org.xml.sax.SAXParseException ex)
ex - SAX Parser Exception.public void error(org.xml.sax.SAXParseException ex)
ex - SAX Parser Exception.
public void fatalError(org.xml.sax.SAXParseException ex)
throws org.xml.sax.SAXException
ex - Sax Parser Exception.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||