|
||||||||||
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.core.runtime.internal.adaptor.PluginParser
public class PluginParser
Internal class.
Nested Class Summary | |
---|---|
class |
PluginParser.PluginInfo
|
class |
PluginParser.Prerequisite
|
Field Summary |
---|
Constructor Summary | |
---|---|
PluginParser(FrameworkAdaptor adaptor,
BundleContext context,
Version target)
|
Method Summary | |
---|---|
static SAXParserFactory |
acquireXMLParsing(BundleContext context)
|
void |
endDocument()
Receive notification of the end of the document. |
void |
endElement(java.lang.String uri,
java.lang.String elementName,
java.lang.String qName)
Receive notification of the end of an element. |
void |
error(SAXParseException ex)
Receive notification of a recoverable parser error. |
void |
fatalError(SAXParseException ex)
Report a fatal XML parsing error. |
void |
handleExtensionPointState(java.lang.String elementName,
Attributes attributes)
|
void |
handleExtensionState(java.lang.String elementName,
Attributes attributes)
|
void |
handleInitialState(java.lang.String elementName,
Attributes attributes)
|
void |
handleLibraryExportState(java.lang.String elementName,
Attributes attributes)
|
void |
handleLibraryState(java.lang.String elementName,
Attributes attributes)
|
void |
handlePluginState(java.lang.String elementName,
Attributes attributes)
|
void |
handleRequiresImportState(java.lang.String elementName,
Attributes attributes)
|
void |
handleRequiresState(java.lang.String elementName,
Attributes attributes)
|
void |
handleRuntimeState(java.lang.String elementName,
Attributes attributes)
|
void |
parseFragmentAttributes(Attributes attributes)
|
void |
parseLibraryAttributes(Attributes attributes)
|
PluginParser.PluginInfo |
parsePlugin(java.io.InputStream in)
|
void |
parsePluginAttributes(Attributes attributes)
|
void |
parsePluginRequiresImport(Attributes attributes)
|
void |
parseRequiresAttributes(Attributes attributes)
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Receive notification of a processing instruction. |
static void |
releaseXMLParsing()
|
void |
setDocumentLocator(Locator locator)
Receive a Locator object for document events. |
void |
startDocument()
Receive notification of the beginning of the document. |
void |
startElement(java.lang.String uri,
java.lang.String elementName,
java.lang.String qName,
Attributes attributes)
Receive notification of the start of an element. |
void |
warning(SAXParseException ex)
Receive notification of a parser warning. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
characters, endPrefixMapping, ignorableWhitespace, notationDecl, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluginParser(FrameworkAdaptor adaptor, BundleContext context, Version target)
Method Detail |
---|
public void setDocumentLocator(Locator locator)
By default, do nothing. Application writers may override this method in a subclass if they wish to store the locator for use with other document events.
setDocumentLocator
in interface ContentHandler
setDocumentLocator
in class DefaultHandler
locator
- A locator for all SAX document events.ContentHandler.setDocumentLocator(org.xml.sax.Locator)
,
Locator
public void endDocument()
DefaultHandler
By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of a document (such as finalising a tree or closing an output file).
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
ContentHandler.endDocument()
public void endElement(java.lang.String uri, java.lang.String elementName, java.lang.String qName)
DefaultHandler
By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of each element (such as finalising a tree node or writing output to a file).
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.elementName
- 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.ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
public void error(SAXParseException ex)
DefaultHandler
The default implementation does nothing. Application writers may override this method in a subclass to take specific actions for each error, such as inserting the message in a log file or printing it to the console.
error
in interface ErrorHandler
error
in class DefaultHandler
ex
- The warning information encoded as an exception.ErrorHandler.warning(org.xml.sax.SAXParseException)
,
SAXParseException
public void fatalError(SAXParseException ex) throws SAXException
DefaultHandler
The default implementation throws a SAXParseException. Application writers may override this method in a subclass if they need to take specific actions for each fatal error (such as collecting all of the errors into a single report): in any case, the application must stop all regular processing when this method is invoked, since the document is no longer reliable, and the parser may no longer report parsing events.
fatalError
in interface ErrorHandler
fatalError
in class DefaultHandler
ex
- The error information encoded as an exception.
SAXException
- Any SAX exception, possibly
wrapping another exception.ErrorHandler.fatalError(org.xml.sax.SAXParseException)
,
SAXParseException
public void handleExtensionPointState(java.lang.String elementName, Attributes attributes)
public void handleExtensionState(java.lang.String elementName, Attributes attributes)
public void handleInitialState(java.lang.String elementName, Attributes attributes)
public void handleLibraryExportState(java.lang.String elementName, Attributes attributes)
public void handleLibraryState(java.lang.String elementName, Attributes attributes)
public void handlePluginState(java.lang.String elementName, Attributes attributes)
public void handleRequiresImportState(java.lang.String elementName, Attributes attributes)
public void handleRequiresState(java.lang.String elementName, Attributes attributes)
public void handleRuntimeState(java.lang.String elementName, Attributes attributes)
public PluginParser.PluginInfo parsePlugin(java.io.InputStream in) throws java.lang.Exception
java.lang.Exception
public static SAXParserFactory acquireXMLParsing(BundleContext context)
public static void releaseXMLParsing()
public void parseFragmentAttributes(Attributes attributes)
public void parseLibraryAttributes(Attributes attributes)
public void parsePluginAttributes(Attributes attributes)
public void parsePluginRequiresImport(Attributes attributes)
public void parseRequiresAttributes(Attributes attributes)
public void startDocument()
DefaultHandler
By default, do nothing. Application writers may override this method in a subclass to take specific actions at the beginning of a document (such as allocating the root node of a tree or creating an output file).
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
ContentHandler.startDocument()
public void startElement(java.lang.String uri, java.lang.String elementName, java.lang.String qName, Attributes attributes)
DefaultHandler
By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each element (such as allocating a new tree node or writing output to a file).
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.elementName
- 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.ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
public void warning(SAXParseException ex)
DefaultHandler
The default implementation does nothing. Application writers may override this method in a subclass to take specific actions for each warning, such as inserting the message in a log file or printing it to the console.
warning
in interface ErrorHandler
warning
in class DefaultHandler
ex
- The warning information encoded as an exception.ErrorHandler.warning(org.xml.sax.SAXParseException)
,
SAXParseException
public void processingInstruction(java.lang.String target, java.lang.String data) throws SAXException
DefaultHandler
By default, do nothing. Application writers may override this method in a subclass to take specific actions for each processing instruction, such as setting status variables or invoking other methods.
processingInstruction
in interface ContentHandler
processingInstruction
in class DefaultHandler
target
- The processing instruction target.data
- The processing instruction data, or null if
none is supplied.
SAXException
- any SAX exception, possibly
wrapping another exceptionContentHandler.processingInstruction(java.lang.String, java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |