com.parabon.common.manifest.xml.parser
Class ManifestParser

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by com.parabon.common.manifest.xml.parser.ManifestParser
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public abstract class ManifestParser
extends org.xml.sax.helpers.DefaultHandler


Constructor Summary
ManifestParser()
           
 
Method Summary
abstract  void addEntry(java.lang.String name, ManifestElement entry)
           
 void addEntry(java.lang.String bundleName, java.lang.String name, ManifestBundleManifest entry)
           
abstract  void addPlatformEntry(java.lang.String name, PlatformEntry entry)
           
 void endElement(java.lang.String url, java.lang.String localName, java.lang.String qName)
           
 java.lang.String getLocation()
           
 void parse(org.xml.sax.InputSource source)
           
 void setDocumentLocator(org.xml.sax.Locator locator)
           
protected  void setRootDocument(ManifestDocument root)
           
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManifestParser

public ManifestParser()
Method Detail

setRootDocument

protected void setRootDocument(ManifestDocument root)

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attributes)
                  throws org.xml.sax.SAXException
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String url,
                       java.lang.String localName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

setDocumentLocator

public void setDocumentLocator(org.xml.sax.Locator locator)
Specified by:
setDocumentLocator in interface org.xml.sax.ContentHandler
Overrides:
setDocumentLocator in class org.xml.sax.helpers.DefaultHandler

getLocation

public java.lang.String getLocation()

parse

public void parse(org.xml.sax.InputSource source)
           throws java.io.IOException,
                  org.xml.sax.SAXException
Throws:
java.io.IOException
org.xml.sax.SAXException

addEntry

public abstract void addEntry(java.lang.String name,
                              ManifestElement entry)
                       throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

addEntry

public void addEntry(java.lang.String bundleName,
                     java.lang.String name,
                     ManifestBundleManifest entry)
              throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

addPlatformEntry

public abstract void addPlatformEntry(java.lang.String name,
                                      PlatformEntry entry)
                               throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException