public class PluginParser extends org.xml.sax.helpers.DefaultHandler implements IModel
| Modifier and Type | Class and Description |
|---|---|
class |
PluginParser.PluginInfo |
class |
PluginParser.Prerequisite |
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| Constructor and Description |
|---|
PluginParser(FrameworkAdaptor adaptor,
BundleContext context,
Version target) |
characters, endPrefixMapping, ignorableWhitespace, notationDecl, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDeclpublic PluginParser(FrameworkAdaptor adaptor, BundleContext context, Version target)
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 ContentHandlersetDocumentLocator in class org.xml.sax.helpers.DefaultHandlerlocator - A locator for all SAX document events.ContentHandler.setDocumentLocator(org.xml.sax.Locator),
Locatorpublic void endDocument()
endDocument in interface ContentHandlerendDocument in class org.xml.sax.helpers.DefaultHandlerpublic void endElement(String uri, String elementName, String qName)
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerpublic void error(SAXParseException ex)
error in interface ErrorHandlererror in class org.xml.sax.helpers.DefaultHandlerpublic void fatalError(SAXParseException ex) throws SAXException
fatalError in interface ErrorHandlerfatalError in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void handleExtensionPointState(String elementName, Attributes attributes)
public void handleExtensionState(String elementName, Attributes attributes)
public void handleInitialState(String elementName, Attributes attributes)
public void handleLibraryExportState(String elementName, Attributes attributes)
public void handleLibraryState(String elementName, Attributes attributes)
public void handlePluginState(String elementName, Attributes attributes)
public void handleRequiresImportState(String elementName, Attributes attributes)
public void handleRequiresState(String elementName, Attributes attributes)
public void handleRuntimeState(String elementName, Attributes attributes)
public PluginParser.PluginInfo parsePlugin(InputStream in) throws Exception
Exceptionpublic 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()
startDocument in interface ContentHandlerstartDocument in class org.xml.sax.helpers.DefaultHandlerpublic void startElement(String uri, String elementName, String qName, Attributes attributes)
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerpublic void warning(SAXParseException ex)
warning in interface ErrorHandlerwarning in class org.xml.sax.helpers.DefaultHandlerpublic void processingInstruction(String instructionTarget, String data) throws SAXException
processingInstruction in interface ContentHandlerprocessingInstruction in class org.xml.sax.helpers.DefaultHandlerSAXExceptionCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.