|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
at.spardat.xma.boot.comp.data.XMAAppParser
class: XMAAppParser
| Constructor Summary | |
XMAAppParser(ILogger log_)
constructor |
|
XMAAppParser(ILogger log_,
boolean bValidation)
|
|
| Method Summary | |
void |
endDocument()
|
void |
endElement(java.lang.String nsURI,
java.lang.String localName,
java.lang.String qName)
|
void |
error(org.xml.sax.SAXParseException e)
|
void |
fatalError(org.xml.sax.SAXParseException e)
|
protected static java.lang.String |
fixCodebaseString(java.lang.String s)
This is a helper method to make sure a codebase string will work as a codebase URL by forcing a "/" on the end of the string. |
protected void |
handleApp(org.xml.sax.Attributes attrs)
|
protected void |
handleComponent(org.xml.sax.Attributes attrs)
handle component parsing |
protected void |
handlePluginImpl(org.xml.sax.Attributes attrs)
handles parsing of plug in impl info |
protected void |
handlePluginSpec(org.xml.sax.Attributes attrs)
handles parsing of tag plugin spec |
protected void |
handlePreinstall(org.xml.sax.Attributes attrs)
handles parsing of tag preinstall |
protected void |
handleResLink(org.xml.sax.Attributes attrs)
handle parsing of resource links |
protected void |
handleResource(org.xml.sax.Attributes attrs)
e.g.: |
protected void |
handleSWTDescription(org.xml.sax.Attributes attrs)
handles parsing of tag swt-description |
protected void |
initParser()
initialize parser |
XMAApp |
parse(java.io.InputStream is)
parse is the main method for parsing configuration files |
XMAApp |
parse(java.lang.String strURI)
parse is the main method for parsing configuration files |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
get the dtd out of the classloader. |
void |
startDocument()
|
void |
startElement(java.lang.String nsURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
|
protected void |
switchElementHandler(java.lang.String nsURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
see element dispatcher |
void |
warning(org.xml.sax.SAXParseException e)
|
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xml.sax.DTDHandler |
notationDecl, unparsedEntityDecl |
| Constructor Detail |
public XMAAppParser(ILogger log_,
boolean bValidation)
public XMAAppParser(ILogger log_)
| Method Detail |
protected void initParser()
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
java.lang.String systemId)
resolveEntity in interface org.xml.sax.EntityResolver
public XMAApp parse(java.io.InputStream is)
throws java.io.IOException,
org.xml.sax.SAXException
is - the input stream to the data to parse
java.io.IOException
org.xml.sax.SAXException
public XMAApp parse(java.lang.String strURI)
throws java.io.IOException,
org.xml.sax.SAXException
strURI - Is a String parameter. It is used as a URI to the XML-file location.
java.io.IOException
org.xml.sax.SAXException
public void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionContentHandler.startDocument()
public void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionContentHandler.endDocument()
public void startElement(java.lang.String nsURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
public void endElement(java.lang.String nsURI,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
protected void switchElementHandler(java.lang.String nsURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void handleApp(org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXException
attrs - Attributes to this element
org.xml.sax.SAXException
protected void handleComponent(org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void handleResource(org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXException
attrs - Attributes to this element
org.xml.sax.SAXException
protected void handleResLink(org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void handlePluginImpl(org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void handlePluginSpec(org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void handleSWTDescription(org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void handlePreinstall(org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected static final java.lang.String fixCodebaseString(java.lang.String s)
public void fatalError(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXParseException
fatalError in interface org.xml.sax.ErrorHandlerorg.xml.sax.SAXParseExceptionErrorHandler.fatalError(org.xml.sax.SAXParseException)public void warning(org.xml.sax.SAXParseException e)
warning in interface org.xml.sax.ErrorHandlerErrorHandler.warning(org.xml.sax.SAXParseException)
public void error(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXParseException
error in interface org.xml.sax.ErrorHandlerorg.xml.sax.SAXParseExceptionErrorHandler.error(org.xml.sax.SAXParseException)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||