org.eclipse.ocl.examples.domain.utilities
Class StandaloneProjectMap.PluginReader

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.eclipse.ocl.examples.domain.utilities.StandaloneProjectMap.PluginReader
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
Enclosing class:
StandaloneProjectMap

protected static class StandaloneProjectMap.PluginReader
extends org.xml.sax.helpers.DefaultHandler

PluginReader provides the SAX callbacks to support reading the org.eclipse.emf.ecore.generated_package extension point in a plugin.xml file and activating the GenModelReader to process the ecorePackage locations.


Field Summary
static java.lang.String classAttribute
           
static java.lang.String extensionPointAttribute
           
static java.lang.String extensionTag
           
static java.lang.String genModelAttribute
           
protected  java.util.jar.JarFile jarFile
           
static java.lang.String packageTag
           
static java.lang.String pluginTag
           
static java.lang.String pointTag
           
protected  StandaloneProjectMap.IProjectDescriptor projectDescriptor
           
static java.lang.String uriAttribute
           
 
Constructor Summary
StandaloneProjectMap.PluginReader(java.util.jar.JarFile jarFile, StandaloneProjectMap.IProjectDescriptor projectDescriptor)
           
 
Method Summary
 void endDocument()
           
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
           
 void scanContents(javax.xml.parsers.SAXParser saxParser)
           
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pluginTag

@NonNull
public static final java.lang.String pluginTag
See Also:
Constant Field Values

extensionTag

@NonNull
public static final java.lang.String extensionTag
See Also:
Constant Field Values

pointTag

@NonNull
public static final java.lang.String pointTag
See Also:
Constant Field Values

packageTag

@NonNull
public static final java.lang.String packageTag
See Also:
Constant Field Values

extensionPointAttribute

@NonNull
public static final java.lang.String extensionPointAttribute
See Also:
Constant Field Values

uriAttribute

@NonNull
public static final java.lang.String uriAttribute
See Also:
Constant Field Values

classAttribute

@NonNull
public static final java.lang.String classAttribute
See Also:
Constant Field Values

genModelAttribute

@NonNull
public static final java.lang.String genModelAttribute
See Also:
Constant Field Values

jarFile

protected final java.util.jar.JarFile jarFile

projectDescriptor

protected final StandaloneProjectMap.IProjectDescriptor projectDescriptor
Constructor Detail

StandaloneProjectMap.PluginReader

public StandaloneProjectMap.PluginReader(@NonNull
                                         java.util.jar.JarFile jarFile,
                                         @NonNull
                                         StandaloneProjectMap.IProjectDescriptor projectDescriptor)
Method Detail

endDocument

public void endDocument()
                 throws org.xml.sax.SAXException
Specified by:
endDocument in interface org.xml.sax.ContentHandler
Overrides:
endDocument in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

scanContents

public void scanContents(javax.xml.parsers.SAXParser saxParser)
                  throws org.xml.sax.SAXParseException
Throws:
org.xml.sax.SAXParseException

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         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