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

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.eclipse.ocl.examples.domain.utilities.StandaloneProjectMap.PluginGenModelHandler
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.PluginGenModelHandler
extends org.xml.sax.helpers.DefaultHandler

PluginGenModelHandler provides the SAX callbacks to support reading the org.eclipse.emf.ecore.generated_package extension point in a plugin.xml file and activating the GenModelEcorePackageHandler to process the ecorePackage locations and invoking addGenModel() for each encounter.


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.Internal projectDescriptor
           
static java.lang.String uriAttribute
           
 
Constructor Summary
StandaloneProjectMap.PluginGenModelHandler(java.util.jar.JarFile jarFile, StandaloneProjectMap.IProjectDescriptor.Internal projectDescriptor)
           
StandaloneProjectMap.PluginGenModelHandler(StandaloneProjectMap.IProjectDescriptor.Internal projectDescriptor)
           
 
Method Summary
 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, endDocument, 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

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

extensionTag

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

pointTag

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

packageTag

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

extensionPointAttribute

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

uriAttribute

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

classAttribute

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

genModelAttribute

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.Internal projectDescriptor
Constructor Detail

StandaloneProjectMap.PluginGenModelHandler

public StandaloneProjectMap.PluginGenModelHandler(StandaloneProjectMap.IProjectDescriptor.Internal projectDescriptor)

StandaloneProjectMap.PluginGenModelHandler

public StandaloneProjectMap.PluginGenModelHandler(java.util.jar.JarFile jarFile,
                                                  StandaloneProjectMap.IProjectDescriptor.Internal projectDescriptor)
Method Detail

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