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, unparsedEntityDecl
public 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 ContentHandler
setDocumentLocator
in class org.xml.sax.helpers.DefaultHandler
locator
- A locator for all SAX document events.ContentHandler.setDocumentLocator(org.xml.sax.Locator)
,
Locator
public void endDocument()
endDocument
in interface ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
public void endElement(String uri, String elementName, String qName)
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
public void error(SAXParseException ex)
error
in interface ErrorHandler
error
in class org.xml.sax.helpers.DefaultHandler
public void fatalError(SAXParseException ex) throws SAXException
fatalError
in interface ErrorHandler
fatalError
in class org.xml.sax.helpers.DefaultHandler
SAXException
public 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
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()
startDocument
in interface ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
public void startElement(String uri, String elementName, String qName, Attributes attributes)
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
public void warning(SAXParseException ex)
warning
in interface ErrorHandler
warning
in class org.xml.sax.helpers.DefaultHandler
public void processingInstruction(String instructionTarget, String data) throws SAXException
processingInstruction
in interface ContentHandler
processingInstruction
in class org.xml.sax.helpers.DefaultHandler
SAXException
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.