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

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

GenModelReader provides the SAX callbacks to support reading the genPackages element in a genmodel file and invoking addEcorePackage() for each encounter.


Field Summary
static java.lang.String ecorePackageAttribute
           
protected  java.util.List<java.lang.String> ecorePackages
           
static java.lang.String ecorePackageTag
           
static java.lang.String genmodelTag
           
protected  org.eclipse.emf.common.util.URI genModelURI
           
static java.lang.String genPackagesTag
           
static java.lang.String hrefAttribute
           
static java.lang.String nestedGenPackagesTag
           
protected  java.util.Map<java.lang.String,StandaloneProjectMap.IPackageDescriptor> nsURI2packageDescriptor
           
protected  StandaloneProjectMap.IProjectDescriptor projectDescriptor
           
protected  StandaloneProjectMap.IResourceDescriptor resourceDescriptor
           
 
Constructor Summary
StandaloneProjectMap.GenModelReader(StandaloneProjectMap.IResourceDescriptor resourceDescriptor)
           
 
Method Summary
 void endDocument()
           
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
           
static void initStatics()
          A simple public static method that may be used to force class initialization.
 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

genmodelTag

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

genPackagesTag

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

nestedGenPackagesTag

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

ecorePackageTag

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

ecorePackageAttribute

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

hrefAttribute

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

resourceDescriptor

@NonNull
protected final StandaloneProjectMap.IResourceDescriptor resourceDescriptor

projectDescriptor

@NonNull
protected final StandaloneProjectMap.IProjectDescriptor projectDescriptor

nsURI2packageDescriptor

@NonNull
protected final java.util.Map<java.lang.String,StandaloneProjectMap.IPackageDescriptor> nsURI2packageDescriptor

genModelURI

@NonNull
protected final org.eclipse.emf.common.util.URI genModelURI

ecorePackages

@NonNull
protected final java.util.List<java.lang.String> ecorePackages
Constructor Detail

StandaloneProjectMap.GenModelReader

public StandaloneProjectMap.GenModelReader(@NonNull
                                           StandaloneProjectMap.IResourceDescriptor resourceDescriptor)
Method Detail

initStatics

public static void initStatics()
A simple public static method that may be used to force class initialization.


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

startElement

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