|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xml.sax.helpers.DefaultHandler | +--org.eclipse.update.core.model.DefaultSiteParser
Default site parser. Parses the site manifest file as defined by the platform. Defers to a model factory to create the actual concrete model objects. The update framework supplies two factory implementations:
Constructor Summary | |
DefaultSiteParser()
Constructs a site parser. |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Handle character text |
void |
endElement(String uri,
String localName,
String qName)
Handle end of element tags |
void |
error(org.xml.sax.SAXParseException ex)
Handle errors |
void |
fatalError(org.xml.sax.SAXParseException ex)
Handle fatal errors |
MultiStatus |
getStatus()
Returns all status objects accumulated by the parser. |
void |
init(SiteModelFactory factory)
|
SiteModel |
parse(InputStream in)
Parses the specified input steam and constructs a site model. |
void |
startElement(String uri,
String localName,
String qName,
org.xml.sax.Attributes attributes)
Handle start of element tags |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, 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 |
public DefaultSiteParser()
factory
- site model factoryMethod Detail |
public void init(SiteModelFactory factory)
public SiteModel parse(InputStream in) throws org.xml.sax.SAXException, IOException
in
- input streamorg.xml.sax.SAXException
- IOException
- public MultiStatus getStatus()
null
.public void startElement(String uri, String localName, String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in class org.xml.sax.helpers.DefaultHandler
DefaultHandler.startElement(String, String, String, Attributes)
public void endElement(String uri, String localName, String qName)
endElement
in class org.xml.sax.helpers.DefaultHandler
DefaultHandler.endElement(String, String, String)
public void characters(char[] ch, int start, int length)
characters
in class org.xml.sax.helpers.DefaultHandler
DefaultHandler.characters(char[], int, int)
public void error(org.xml.sax.SAXParseException ex)
error
in class org.xml.sax.helpers.DefaultHandler
DefaultHandler.error(SAXParseException)
public void fatalError(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
fatalError
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
- DefaultHandler.fatalError(SAXParseException)
|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |