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, ContentHandler, DTDHandler, EntityResolver, 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 SAXParserFactory |
acquireXMLParsing(BundleContext context)
|
void |
endDocument()
|
void |
endElement(String uri,
String elementName,
String qName)
|
void |
error(SAXParseException ex)
|
void |
fatalError(SAXParseException ex)
|
void |
handleExtensionPointState(String elementName,
Attributes attributes)
|
void |
handleExtensionState(String elementName,
Attributes attributes)
|
void |
handleInitialState(String elementName,
Attributes attributes)
|
void |
handleLibraryExportState(String elementName,
Attributes attributes)
|
void |
handleLibraryState(String elementName,
Attributes attributes)
|
void |
handlePluginState(String elementName,
Attributes attributes)
|
void |
handleRequiresImportState(String elementName,
Attributes attributes)
|
void |
handleRequiresState(String elementName,
Attributes attributes)
|
void |
handleRuntimeState(String elementName,
Attributes attributes)
|
void |
parseFragmentAttributes(Attributes attributes)
|
void |
parseLibraryAttributes(Attributes attributes)
|
PluginParser.PluginInfo |
parsePlugin(InputStream in)
|
void |
parsePluginAttributes(Attributes attributes)
|
void |
parsePluginRequiresImport(Attributes attributes)
|
void |
parseRequiresAttributes(Attributes attributes)
|
void |
processingInstruction(String instructionTarget,
String data)
|
static void |
releaseXMLParsing()
|
void |
setDocumentLocator(Locator locator)
Receive a Locator object for document events. |
void |
startDocument()
|
void |
startElement(String uri,
String elementName,
String qName,
Attributes attributes)
|
void |
warning(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(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 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 ContentHandler- Overrides:
endDocument in class org.xml.sax.helpers.DefaultHandler
endElement
public void endElement(String uri,
String elementName,
String qName)
- Specified by:
endElement in interface ContentHandler- Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
error
public void error(SAXParseException ex)
- Specified by:
error in interface ErrorHandler- Overrides:
error in class org.xml.sax.helpers.DefaultHandler
fatalError
public void fatalError(SAXParseException ex)
throws SAXException
- Specified by:
fatalError in interface ErrorHandler- Overrides:
fatalError in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
handleExtensionPointState
public void handleExtensionPointState(String elementName,
Attributes attributes)
handleExtensionState
public void handleExtensionState(String elementName,
Attributes attributes)
handleInitialState
public void handleInitialState(String elementName,
Attributes attributes)
handleLibraryExportState
public void handleLibraryExportState(String elementName,
Attributes attributes)
handleLibraryState
public void handleLibraryState(String elementName,
Attributes attributes)
handlePluginState
public void handlePluginState(String elementName,
Attributes attributes)
handleRequiresImportState
public void handleRequiresImportState(String elementName,
Attributes attributes)
handleRequiresState
public void handleRequiresState(String elementName,
Attributes attributes)
handleRuntimeState
public void handleRuntimeState(String elementName,
Attributes attributes)
parsePlugin
public PluginParser.PluginInfo parsePlugin(InputStream in)
throws Exception
- Throws:
Exception
acquireXMLParsing
public static SAXParserFactory acquireXMLParsing(BundleContext context)
releaseXMLParsing
public static void releaseXMLParsing()
parseFragmentAttributes
public void parseFragmentAttributes(Attributes attributes)
parseLibraryAttributes
public void parseLibraryAttributes(Attributes attributes)
parsePluginAttributes
public void parsePluginAttributes(Attributes attributes)
parsePluginRequiresImport
public void parsePluginRequiresImport(Attributes attributes)
parseRequiresAttributes
public void parseRequiresAttributes(Attributes attributes)
startDocument
public void startDocument()
- Specified by:
startDocument in interface ContentHandler- Overrides:
startDocument in class org.xml.sax.helpers.DefaultHandler
startElement
public void startElement(String uri,
String elementName,
String qName,
Attributes attributes)
- Specified by:
startElement in interface ContentHandler- Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
warning
public void warning(SAXParseException ex)
- Specified by:
warning in interface ErrorHandler- Overrides:
warning in class org.xml.sax.helpers.DefaultHandler
processingInstruction
public void processingInstruction(String instructionTarget,
String data)
throws SAXException
- Specified by:
processingInstruction in interface ContentHandler- Overrides:
processingInstruction in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.