| java.lang.Object org.xml.sax.helpers.DefaultHandler org.openjx.parser.XMLParser
XMLParser | public class XMLParser extends DefaultHandler implements ErrorHandler(Code) | | This is a SAX parser which handles interpreting the XML form language into
the JXObject in an event driven manner.
author: Jared Spigner |
schema | public Schema schema(Code) | | Reference to the schema and schema factory.
|
temp | public String temp(Code) | | A temporary variable used to store characters as they are read into the
parser.
|
validationError | public boolean validationError(Code) | | |
XMLParser | public XMLParser(VirtualMachine vm)(Code) | | This is the constructor for the XMLParser class. It creates a new
instance of XMLParser.
Parameters: vm - points to an instance of the VirtualMachine class. |
characters | public void characters(char buf, int offset, int len) throws SAXException(Code) | | This method belongs to the DefaultHandler. It receives notification of
character data inside an element. It throws SAXException.
Parameters: buf - - The characters. Parameters: offset - - The start position in the character array. Parameters: len - - The number of characters to use from the character array. |
endDocument | public void endDocument() throws SAXException(Code) | | This method belongs to the DefaultHandler. It receives notification of
the end of the document. It throws SAXException.
|
endElement | public void endElement(String namespaceURI, String localName, String qName) throws SAXException(Code) | | This method belongs to the DefaultHandler. It receives notification of
the end of element. It throws SAXException.
Parameters: namespaceURI - - The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed. Parameters: localName - - The local name (without prefix), or the empty string if Namespace processing is not being performed. Parameters: qName - - The qualified name (with prefix), or the empty string if qualified names are not available. |
parseXML | public boolean parseXML(String systemId)(Code) | | This method initiates the parser on an XML file.
Parameters: systemId - is the file name and path of the XML file we wish toparse. true if success, else false on the event of an exception. |
startDocument | public void startDocument() throws SAXException(Code) | | This method belongs to the DefaultHandler. It receives notification of
the start of the document. It throws SAXException.
|
startElement | public void startElement(String namespaceURI, String localName, String qName, Attributes attr) throws SAXException(Code) | | This method belongs to the DefaultHandler. It receives notification of
the start of an element. It throws SAXException.
Parameters: namespaceURI - - The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed. Parameters: localName - - The local name (without prefix), or the empty string if Namespace processing is not being performed. Parameters: qName - - The qualified name (with prefix), or the empty string if qualified names are not available. Parameters: attr - - The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object. |
validateXML | public boolean validateXML(String systemId)(Code) | | This method validates an XML file.
Parameters: systemId - is the file name and path of the XML file we wish toparse. true if success, else false on the event of an exception. |
Methods inherited from org.xml.sax.helpers.DefaultHandler | public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void error(SAXParseException e) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc) public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc) public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)
|
|
|