|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.eclipse.update.core.model.DefaultSiteParser
public class 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:
Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Constructor Summary | |
---|---|
DefaultSiteParser()
Constructs a site parser. |
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
Handle character text |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
Handle end of element tags |
void |
error(SAXParseException ex)
Handle errors |
void |
fatalError(SAXParseException ex)
Handle fatal errors |
MultiStatus |
getStatus()
Returns all status objects accumulated by the parser. |
void |
init(SiteModelFactory factory)
|
SiteModel |
parse(java.io.InputStream in)
Parses the specified input steam and constructs a site model. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
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()
Method Detail |
---|
public void init(SiteModelFactory factory)
public SiteModel parse(java.io.InputStream in) throws SAXException, java.io.IOException
in
- input stream
SAXException
java.io.IOException
public MultiStatus getStatus()
null
.public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
uri
- The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed.localName
- 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.attributes
- The attributes attached to the element. If
there are no attributes, it shall be an empty
Attributes object.
SAXException
- any SAX exception, possibly
wrapping another exceptionDefaultHandler.startElement(String, String, String, Attributes)
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
endElement
in interface ContentHandler
endElement
in class DefaultHandler
uri
- The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed.localName
- 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.DefaultHandler.endElement(String, String, String)
public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
characters
in class DefaultHandler
ch
- The characters.start
- The start position in the character array.length
- The number of characters to use from the
character array.DefaultHandler.characters(char[], int, int)
public void error(SAXParseException ex)
error
in interface ErrorHandler
error
in class DefaultHandler
ex
- The warning information encoded as an exception.DefaultHandler.error(SAXParseException)
public void fatalError(SAXParseException ex) throws SAXException
fatalError
in interface ErrorHandler
fatalError
in class DefaultHandler
ex
- The error information encoded as an exception.
SAXException
DefaultHandler.fatalError(SAXParseException)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |