|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.haphazard.XML.GlobalItemParser
An XML-handler for the Global Item list
| Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Is called when characters appear inside an element |
void |
endDocument()
This method is called when ending a parse |
void |
endElement(java.lang.String namespaceURI,
java.lang.String sName,
java.lang.String qName)
Is called at the end of parsing an element |
void |
error(org.xml.sax.SAXParseException err)
The function will be called if an error is encountered during parsing. |
void |
fatalError(org.xml.sax.SAXParseException err)
This function is called when an error that is so severe that the parsing cannot continue is encountered. |
static GlobalItemParser |
getInstance()
Gets an instance of the global item parser |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Resolves which dtd file to use and creates an inputsource for this. |
void |
setDocumentLocator(org.xml.sax.Locator loc)
Sets the document locator. |
void |
startDocument()
This method is called when the document is beginning the parse |
void |
startElement(java.lang.String namespaceURI,
java.lang.String lName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
Is called at the start of parsing an element |
void |
warning(org.xml.sax.SAXParseException err)
The function is called if a minor error is encountered during parsing. |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, skippedEntity, startPrefixMapping, unparsedEntityDecl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static GlobalItemParser getInstance()
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException
publicId - The public ID of the XML-filesystemId - The system ID of the XML file
org.xml.sax.SAXException - If anything goes wrong
public void startDocument()
throws org.xml.sax.SAXException
org.xml.sax.SAXException - Here for compatibility issues
public void startElement(java.lang.String namespaceURI,
java.lang.String lName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXException
namespaceURI - The URI of the namespacelName - The local name (without prefix), or the empty string if
Namespace processing is not being performed.qName - The qualified name (with prefix), or the empty string if
qualified names are not available.attrs - The specified or defaulted attributes.
org.xml.sax.SAXException - If anything goes wrong.
public void characters(char[] ch,
int start,
int length)
ch - A buffer with charactersstart - The offset in the bufferlength - The length of the characters
public void endElement(java.lang.String namespaceURI,
java.lang.String sName,
java.lang.String qName)
throws org.xml.sax.SAXException
namespaceURI - The URI of the namespacesName - The standard name (with namespace)qName - The qualified name (without namespace)
org.xml.sax.SAXException - If anything goes wrong.
public void endDocument()
throws org.xml.sax.SAXException
org.xml.sax.SAXException - Here for compatability issuespublic void setDocumentLocator(org.xml.sax.Locator loc)
loc - The locator (see XML-documentation)
public void warning(org.xml.sax.SAXParseException err)
throws org.xml.sax.SAXException
err - The error
org.xml.sax.SAXException - If the error couldn't be handled.
public void error(org.xml.sax.SAXParseException err)
throws org.xml.sax.SAXException
err - The error
org.xml.sax.SAXException - If the error couldn't be handled.
public void fatalError(org.xml.sax.SAXParseException err)
throws org.xml.sax.SAXException
err - The error
org.xml.sax.SAXException - If the error couldn't be handled.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||