org.eclipse.core.runtime.internal.adaptor
Class PluginParser
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.eclipse.core.runtime.internal.adaptor.PluginParser
- All Implemented Interfaces:
- IModel, org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
public class PluginParser
- extends org.xml.sax.helpers.DefaultHandler
- implements IModel
Internal class.
| Fields inherited from interface org.eclipse.core.runtime.internal.adaptor.IModel |
ELEMENT, ELEMENT_NAME, ELEMENT_VALUE, EXTENSION, EXTENSION_ID, EXTENSION_NAME, EXTENSION_POINT, EXTENSION_POINT_ID, EXTENSION_POINT_NAME, EXTENSION_POINT_SCHEMA, EXTENSION_TARGET, FALSE, FRAGMENT, FRAGMENT_ID, FRAGMENT_NAME, FRAGMENT_PLUGIN_ID, FRAGMENT_PLUGIN_MATCH, FRAGMENT_PLUGIN_MATCH_COMPATIBLE, FRAGMENT_PLUGIN_MATCH_EQUIVALENT, FRAGMENT_PLUGIN_MATCH_GREATER_OR_EQUAL, FRAGMENT_PLUGIN_MATCH_PERFECT, FRAGMENT_PLUGIN_VERSION, FRAGMENT_PROVIDER, FRAGMENT_VERSION, INDENT, LIBRARY, LIBRARY_EXPORT, LIBRARY_EXPORT_MASK, LIBRARY_NAME, LIBRARY_PACKAGES, LIBRARY_PACKAGES_PREFIXES, LIBRARY_SOURCE, LIBRARY_TYPE, PLUGIN, PLUGIN_CLASS, PLUGIN_ID, PLUGIN_KEY_VERSION_SEPARATOR, PLUGIN_NAME, PLUGIN_PROVIDER, PLUGIN_REQUIRES, PLUGIN_REQUIRES_EXPORT, PLUGIN_REQUIRES_IMPORT, PLUGIN_REQUIRES_MATCH, PLUGIN_REQUIRES_MATCH_COMPATIBLE, PLUGIN_REQUIRES_MATCH_EQUIVALENT, PLUGIN_REQUIRES_MATCH_EXACT, PLUGIN_REQUIRES_MATCH_GREATER_OR_EQUAL, PLUGIN_REQUIRES_MATCH_PERFECT, PLUGIN_REQUIRES_OPTIONAL, PLUGIN_REQUIRES_PLATFORM, PLUGIN_REQUIRES_PLUGIN, PLUGIN_REQUIRES_PLUGIN_VERSION, PLUGIN_VENDOR, PLUGIN_VERSION, PROPERTY, PROPERTY_NAME, PROPERTY_VALUE, RADIX, REGISTRY, REGISTRY_PATH, RUNTIME, TRUE |
|
Method Summary |
static javax.xml.parsers.SAXParserFactory |
acquireXMLParsing(BundleContext context)
|
void |
endDocument()
|
void |
endElement(java.lang.String uri,
java.lang.String elementName,
java.lang.String qName)
|
void |
error(org.xml.sax.SAXParseException ex)
|
void |
fatalError(org.xml.sax.SAXParseException ex)
|
void |
handleExtensionPointState(java.lang.String elementName,
org.xml.sax.Attributes attributes)
|
void |
handleExtensionState(java.lang.String elementName,
org.xml.sax.Attributes attributes)
|
void |
handleInitialState(java.lang.String elementName,
org.xml.sax.Attributes attributes)
|
void |
handleLibraryExportState(java.lang.String elementName,
org.xml.sax.Attributes attributes)
|
void |
handleLibraryState(java.lang.String elementName,
org.xml.sax.Attributes attributes)
|
void |
handlePluginState(java.lang.String elementName,
org.xml.sax.Attributes attributes)
|
void |
handleRequiresImportState(java.lang.String elementName,
org.xml.sax.Attributes attributes)
|
void |
handleRequiresState(java.lang.String elementName,
org.xml.sax.Attributes attributes)
|
void |
handleRuntimeState(java.lang.String elementName,
org.xml.sax.Attributes attributes)
|
void |
parseFragmentAttributes(org.xml.sax.Attributes attributes)
|
void |
parseLibraryAttributes(org.xml.sax.Attributes attributes)
|
PluginParser.PluginInfo |
parsePlugin(java.io.InputStream in)
|
void |
parsePluginAttributes(org.xml.sax.Attributes attributes)
|
void |
parsePluginRequiresImport(org.xml.sax.Attributes attributes)
|
void |
parseRequiresAttributes(org.xml.sax.Attributes attributes)
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
|
static void |
releaseXMLParsing()
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
Receive a Locator object for document events. |
void |
startDocument()
|
void |
startElement(java.lang.String uri,
java.lang.String elementName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
|
void |
warning(org.xml.sax.SAXParseException ex)
|
| 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 |
PluginParser
public PluginParser(FrameworkAdaptor adaptor,
BundleContext context,
Version target)
setDocumentLocator
public void setDocumentLocator(org.xml.sax.Locator locator)
- Receive a Locator object for document events.
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.
- Specified by:
setDocumentLocator in interface org.xml.sax.ContentHandler- Overrides:
setDocumentLocator in class org.xml.sax.helpers.DefaultHandler
- Parameters:
locator - A locator for all SAX document events.- See Also:
ContentHandler.setDocumentLocator(org.xml.sax.Locator),
Locator
endDocument
public void endDocument()
- Specified by:
endDocument in interface org.xml.sax.ContentHandler- Overrides:
endDocument in class org.xml.sax.helpers.DefaultHandler
endElement
public void endElement(java.lang.String uri,
java.lang.String elementName,
java.lang.String qName)
- Specified by:
endElement in interface org.xml.sax.ContentHandler- Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
error
public void error(org.xml.sax.SAXParseException ex)
- Specified by:
error in interface org.xml.sax.ErrorHandler- Overrides:
error in class org.xml.sax.helpers.DefaultHandler
fatalError
public void fatalError(org.xml.sax.SAXParseException ex)
throws org.xml.sax.SAXException
- Specified by:
fatalError in interface org.xml.sax.ErrorHandler- Overrides:
fatalError in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
handleExtensionPointState
public void handleExtensionPointState(java.lang.String elementName,
org.xml.sax.Attributes attributes)
handleExtensionState
public void handleExtensionState(java.lang.String elementName,
org.xml.sax.Attributes attributes)
handleInitialState
public void handleInitialState(java.lang.String elementName,
org.xml.sax.Attributes attributes)
handleLibraryExportState
public void handleLibraryExportState(java.lang.String elementName,
org.xml.sax.Attributes attributes)
handleLibraryState
public void handleLibraryState(java.lang.String elementName,
org.xml.sax.Attributes attributes)
handlePluginState
public void handlePluginState(java.lang.String elementName,
org.xml.sax.Attributes attributes)
handleRequiresImportState
public void handleRequiresImportState(java.lang.String elementName,
org.xml.sax.Attributes attributes)
handleRequiresState
public void handleRequiresState(java.lang.String elementName,
org.xml.sax.Attributes attributes)
handleRuntimeState
public void handleRuntimeState(java.lang.String elementName,
org.xml.sax.Attributes attributes)
parsePlugin
public PluginParser.PluginInfo parsePlugin(java.io.InputStream in)
throws java.lang.Exception
- Throws:
java.lang.Exception
acquireXMLParsing
public static javax.xml.parsers.SAXParserFactory acquireXMLParsing(BundleContext context)
releaseXMLParsing
public static void releaseXMLParsing()
parseFragmentAttributes
public void parseFragmentAttributes(org.xml.sax.Attributes attributes)
parseLibraryAttributes
public void parseLibraryAttributes(org.xml.sax.Attributes attributes)
parsePluginAttributes
public void parsePluginAttributes(org.xml.sax.Attributes attributes)
parsePluginRequiresImport
public void parsePluginRequiresImport(org.xml.sax.Attributes attributes)
parseRequiresAttributes
public void parseRequiresAttributes(org.xml.sax.Attributes attributes)
startDocument
public void startDocument()
- Specified by:
startDocument in interface org.xml.sax.ContentHandler- Overrides:
startDocument in class org.xml.sax.helpers.DefaultHandler
startElement
public void startElement(java.lang.String uri,
java.lang.String elementName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
- Specified by:
startElement in interface org.xml.sax.ContentHandler- Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
warning
public void warning(org.xml.sax.SAXParseException ex)
- Specified by:
warning in interface org.xml.sax.ErrorHandler- Overrides:
warning in class org.xml.sax.helpers.DefaultHandler
processingInstruction
public void processingInstruction(java.lang.String target,
java.lang.String data)
throws org.xml.sax.SAXException
- Specified by:
processingInstruction in interface org.xml.sax.ContentHandler- Overrides:
processingInstruction in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
Copyright © 2007-2012 FuseSource, Corp.. All Rights Reserved.