org.eclipse.emf.codegen.ecore.genmodel.impl
Class GenPackageImpl

java.lang.Object
  extended byorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended byorg.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended byorg.eclipse.emf.ecore.impl.EObjectImpl
              extended byorg.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl
                  extended byorg.eclipse.emf.codegen.ecore.genmodel.impl.GenPackageImpl
All Implemented Interfaces:
EObject, GenBase, GenPackage, InternalEObject, Notifier

public class GenPackageImpl
extends GenBaseImpl
implements GenPackage

An implementation of the model object 'Gen Package'.

The following features are implemented:


Nested Class Summary
 
Nested classes inherited from class org.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl
GenBaseImpl.ColorInformation, GenBaseImpl.GenClassFilter, GenBaseImpl.GenConstraintFilter, GenBaseImpl.GenFeatureFilter, GenBaseImpl.GenOperationFilter, GenBaseImpl.GIFEmitter, GenBaseImpl.ImportManager, GenBaseImpl.UniqueNameHelper
 
Nested classes inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
BasicNotifierImpl.EAdapterList
 
Nested classes inherited from class org.eclipse.emf.ecore.InternalEObject
InternalEObject.EStore
 
Field Summary
protected static boolean ADAPTER_FACTORY_EDEFAULT
          The default value of the 'Adapter Factory' attribute
protected  boolean adapterFactory
          The cached value of the 'Adapter Factory' attribute
protected static String BASE_PACKAGE_EDEFAULT
          The default value of the 'Base Package' attribute
protected  String basePackage
          The cached value of the 'Base Package' attribute
protected  EPackage ecorePackage
          The cached value of the 'Ecore Package' reference
protected  EList genClasses
          The cached value of the 'Gen Classes' containment reference list
protected  EList genDataTypes
          The cached value of the 'Gen Data Types' containment reference list
protected  EList genEnums
          The cached value of the 'Gen Enums' containment reference list
protected static boolean LOAD_INITIALIZATION_EDEFAULT
          The default value of the 'Load Initialization' attribute
protected  boolean loadInitialization
          The cached value of the 'Load Initialization' attribute
protected  EList nestedGenPackages
          The cached value of the 'Nested Gen Packages' containment reference list
protected static boolean NO_CONSTRAINTS
           
protected  String prefix
          The cached value of the 'Prefix' attribute
protected static String PREFIX_EDEFAULT
          The default value of the 'Prefix' attribute
protected  GenResourceKind resource
          The cached value of the 'Resource' attribute
protected static GenResourceKind RESOURCE_EDEFAULT
          The default value of the 'Resource' attribute
protected static String XSD2ECORE_URI
           
 
Fields inherited from class org.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl
ecoreGenPackage, javaLangTypes, javaReservedWords, xmlNamespaceGenPackage, xmlTypeGenPackage
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected GenPackageImpl()
           
 
Method Summary
 EPackage basicGetEcorePackage()
           
 boolean canGenerateSchema()
           
protected  void collectPackages(List result, List genPackages, int depth)
          Collects into result nested GenPackages to the specified depth, not counting those without classifiers (for which nothing is ever generated); -1 for no limit.
 NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)
           
 Object eGet(EStructuralFeature eFeature, boolean resolve)
           
 NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
           
 boolean eIsSet(EStructuralFeature eFeature)
           
 void eSet(EStructuralFeature eFeature, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(EStructuralFeature eFeature)
           
 void generate(IProgressMonitor progressMonitor)
           
 void generateEdit(IProgressMonitor progressMonitor)
           
 void generateEditor(IProgressMonitor progressMonitor)
           
 void generatePackageSerialization(IProgressMonitor progressMonitor)
           
 void generateSchema()
          Deprecated. Use GenBase.generateSchema(IProgressMonitor) instead. This method will be removed soon.
 void generateSchema(IProgressMonitor progressMonitor)
           
protected  void generateXSD(String type)
           
 String getActionBarContributorClassName()
           
 List getAdapterDelegatePackages()
           
 List getAdapterDelegateSuperClasses()
           
 String getAdapterFactoryClassName()
           
 String getAdapterFactoryDelegateName(GenPackage genDelegate)
           
 List getAllAnnotations()
           
 List getAllGenDataTypes()
           
 List getAllGenFeatures()
           
 List getAllSwitchGenClasses()
           
 List getAllValidatorBaseGenPackages()
           
 String getAnnotatedModelElementAccessor(EAnnotation eAnnotation)
           
 String getAnnotationSourceIdentifier(String annotationSource)
           
 List getAnnotationSources()
           
 String getBasePackage()
          Returns the value of the 'Base Package' attribute
 String getBasePackageGen()
           
 String getCapPackageID()
           
 String getClassifierID(GenClassifier genClassifier)
           
 int getClassifierValue(GenClassifier genClassifier)
           
 String getClassPackageName()
           
 String getClassUniqueName(GenClass genClass)
           
 EModelElement getEcoreModelElement()
           
 EPackage getEcorePackage()
           
 String getEditorClassName()
           
 String getEditorPluginClassName()
           
 String getEditPluginClassName()
           
 String getFactoryClassName()
           
 String getFactoryInterfaceName()
           
 EList getGenClasses()
           
 EList getGenClassifiers()
           
 EList getGenDataTypes()
           
 EList getGenEnums()
           
 GenModel getGenModel()
          Returns the value of the 'Gen Model' container reference.
 GenModel getGenModelGen()
           
 String getImportedActionBarContributorClassName()
           
 String getImportedAdapterFactoryClassName()
           
 String getImportedEditorClassName()
           
 String getImportedEditorPluginClassName()
           
 String getImportedEditPluginClassName()
           
 String getImportedFactoryClassName()
           
 String getImportedFactoryInterfaceName()
           
 String getImportedItemProviderAdapterFactoryClassName()
           
 String getImportedModelWizardClassName()
           
 String getImportedPackageClassName()
           
 String getImportedPackageInterfaceName()
           
 String getImportedResourceBaseClassName()
           
 String getImportedResourceClassName()
           
 String getImportedResourceFactoryBaseClassName()
           
 String getImportedResourceFactoryClassName()
           
 String getImportedValidatorClassName()
           
 String getInterfacePackageName()
           
 String getItemProviderAdapterFactoryClassName()
           
 List getJavaLangConflicts()
           
 int getLocalClassifierIndex(GenClassifier genClassifier)
           
 String getModelIconFileName()
           
 String getModelWizardClassName()
           
 String getModelWizardIconFileName()
           
 String getName()
           
 EList getNestedGenPackages()
           
 String getNSName()
           
 String getNSURI()
           
 List getOrderedGenClasses()
          Returns the list of GenClasses in the GenPackage, ordered such that a class always follows all of the classes it extends.
 List getOrderedGenClassifiers()
           
 List getPackageBuildInterDependencies()
           
 String getPackageClassName()
           
 String getPackageID()
           
 List getPackageInitializationDependencies()
           
 String getPackageInstanceVariable(GenPackage genPackage)
           
 List getPackageInterDependencies()
           
 String getPackageInterfaceName()
           
 List getPackageLoadInterDependencies()
           
 String getPackageName()
           
 List getPackageSimpleDependencies()
           
 String getPrefix()
          Returns the value of the 'Prefix' attribute
protected  String getPrefixedName(String name)
           
 String getPrefixGen()
           
 String getPresentationPackageName()
           
 String getProviderPackageName()
           
 String getQualifiedActionBarContributorClassName()
           
 String getQualifiedAdapterFactoryClassName()
           
 String getQualifiedEditorClassName()
           
 String getQualifiedEditorPluginClassName()
           
 String getQualifiedEditPluginClassName()
           
 String getQualifiedFactoryClassName()
           
 String getQualifiedFactoryInterfaceName()
           
 String getQualifiedItemProviderAdapterFactoryClassName()
           
 String getQualifiedModelWizardClassName()
           
 String getQualifiedPackageClassName()
           
 String getQualifiedPackageInterfaceName()
           
 String getQualifiedResourceClassName()
           
 String getQualifiedResourceFactoryClassName()
           
 GenResourceKind getResource()
           
 String getResourceClassName()
           
 String getResourceFactoryClassName()
           
 GenPackage getRootGenPackage()
          Returns the top-most GenPackage-typed container for which hasClassifiers() is true, which may be this GenPackage, itself.
 String getSerializedPackageFilename()
           
 List getSubGenPackages()
          Returns a list of those nestedGenPackages for which hasClassifiers() is true.
 GenPackage getSuperGenPackage()
          Returns the closest GenPackage-typed container for which hasClassifiers() is true, or null if there is none.
 String getSwitchClassName()
           
 String getUncapAdapterFactoryClassName()
           
 String getUncapAdapterFactoryDelegateName(GenPackage genDelegate)
           
 String getUncapFactoryInterfaceName()
           
 String getUncapPackageInterfaceName()
           
 String getUtilitiesPackageName()
           
 String getValidatorClassName()
           
 String getValidatorPackageUniqueSafeName(GenPackage genPackage)
           
 boolean hasClassifiers()
           
 boolean hasConstraints()
           
 boolean hasDocumentRoot()
           
 boolean hasExtendedMetaData()
           
protected static boolean hasExtendedMetaData(EPackage ePackage)
           
 boolean hasInterfaceImplConflict()
           
 boolean hasJavaLangConflict()
           
protected  boolean hasModelContribution()
           
 boolean hasTargetNamespace()
           
 boolean hasXMLMap()
           
 void initialize(EPackage ePackage)
           
 boolean isAdapterFactory()
           
protected  boolean isBigModel()
           
 boolean isEcorePackage()
           
 boolean isLoadedInitialization()
          Returns true if this package's root, which may be itself, requires, or has a subpackage that requires, load initialization.
 boolean isLoadingInitialization()
          Returns true if this is a root package that requires, or has a direct or indirect subpackage that requires, load initialization.
 boolean isLoadInitialization()
           
 boolean reconcile()
           
 boolean reconcile(GenPackage oldGenPackageVersion)
           
protected  void reconcileSettings(GenPackage oldGenPackageVersion)
           
 void setAdapterFactory(boolean newAdapterFactory)
           
 void setBasePackage(String newBasePackage)
           
 void setEcorePackage(EPackage newEcorePackage)
           
 void setGenModel(GenModel newGenModel)
           
 void setLoadInitialization(boolean newLoadInitialization)
           
 void setPrefix(String newPrefix)
           
 void setResource(GenResourceKind newResource)
           
 String toString()
           
 
Methods inherited from class org.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl
appendModelSetting, appendModelSetting, canGenerate, canGenerateEdit, canGenerateEditor, capName, collectGenClasses, collectGenConstraints, collectGenFeatures, collectGenOperations, eObjectForURIFragmentSegment, ePackageGenModel, eURIFragmentSegment, filterGenClasses, findGenClass, findGenClassifier, findGenDataType, findGenEnum, findGenFeature, findGenPackage, findGenPackageHelper, findOrCreateContainer, format, generate, generate, generate, generate, getAllGenPackages, getDocumentation, getDocumentation, getExtendedMetaData, getImplClassName, getImportedType, getImportManager, getInstanceClass, getJavaLangTypes, getJavaReservedWords, getModelInfo, getPrimitiveDefault, getPrimitiveObjectType, getType, getTypeGenClasses, hasDocumentation, indent, isBlank, isJavaUtilMapEntry, isPrimitiveType, parseName, safeName, setImportManager, uncapName, uncapPrefixedName, unicodeEscapeEncode
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eHasSettings, eInternalResource, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eStaticFeatureCount, eStore
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.codegen.ecore.genmodel.GenBase
canGenerate, canGenerateEdit, canGenerateEditor, capName, ePackageGenModel, format, getDocumentation, hasDocumentation, safeName, uncapName, uncapPrefixedName
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eIsProxy, eResource
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

XSD2ECORE_URI

protected static final String XSD2ECORE_URI
See Also:
Constant Field Values

PREFIX_EDEFAULT

protected static final String PREFIX_EDEFAULT
The default value of the 'Prefix' attribute.

See Also:
getPrefix()

prefix

protected String prefix
The cached value of the 'Prefix' attribute.

See Also:
getPrefix()

BASE_PACKAGE_EDEFAULT

protected static final String BASE_PACKAGE_EDEFAULT
The default value of the 'Base Package' attribute.

See Also:
getBasePackage()

basePackage

protected String basePackage
The cached value of the 'Base Package' attribute.

See Also:
getBasePackage()

RESOURCE_EDEFAULT

protected static final GenResourceKind RESOURCE_EDEFAULT
The default value of the 'Resource' attribute.

See Also:
getResource()

resource

protected GenResourceKind resource
The cached value of the 'Resource' attribute.

See Also:
getResource()

ADAPTER_FACTORY_EDEFAULT

protected static final boolean ADAPTER_FACTORY_EDEFAULT
The default value of the 'Adapter Factory' attribute.

See Also:
isAdapterFactory(), Constant Field Values

adapterFactory

protected boolean adapterFactory
The cached value of the 'Adapter Factory' attribute.

See Also:
isAdapterFactory()

LOAD_INITIALIZATION_EDEFAULT

protected static final boolean LOAD_INITIALIZATION_EDEFAULT
The default value of the 'Load Initialization' attribute.

See Also:
isLoadInitialization(), Constant Field Values

loadInitialization

protected boolean loadInitialization
The cached value of the 'Load Initialization' attribute.

See Also:
isLoadInitialization()

ecorePackage

protected EPackage ecorePackage
The cached value of the 'Ecore Package' reference.

See Also:
getEcorePackage()

genEnums

protected EList genEnums
The cached value of the 'Gen Enums' containment reference list.

See Also:
getGenEnums()

genDataTypes

protected EList genDataTypes
The cached value of the 'Gen Data Types' containment reference list.

See Also:
getGenDataTypes()

genClasses

protected EList genClasses
The cached value of the 'Gen Classes' containment reference list.

See Also:
getGenClasses()

nestedGenPackages

protected EList nestedGenPackages
The cached value of the 'Nested Gen Packages' containment reference list.

See Also:
getNestedGenPackages()

NO_CONSTRAINTS

protected static final boolean NO_CONSTRAINTS
Constructor Detail

GenPackageImpl

protected GenPackageImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class GenBaseImpl

getPrefixGen

public String getPrefixGen()


getPrefix

public String getPrefix()
Description copied from interface: GenPackage
Returns the value of the 'Prefix' attribute.

If the meaning of the 'Prefix' attribute isn't clear, there really should be more of a description here...

Specified by:
getPrefix in interface GenPackage
Returns:
the value of the 'Prefix' attribute.
See Also:
GenPackage.setPrefix(String), GenModelPackage.getGenPackage_Prefix()

setPrefix

public void setPrefix(String newPrefix)

Specified by:
setPrefix in interface GenPackage
Parameters:
newPrefix - the new value of the 'Prefix' attribute.
See Also:
GenPackage.getPrefix()

getBasePackageGen

public String getBasePackageGen()


getBasePackage

public String getBasePackage()
Description copied from interface: GenPackage
Returns the value of the 'Base Package' attribute.

If the meaning of the 'Base Package' attribute isn't clear, there really should be more of a description here...

Specified by:
getBasePackage in interface GenPackage
Returns:
the value of the 'Base Package' attribute.
See Also:
GenPackage.setBasePackage(String), GenModelPackage.getGenPackage_BasePackage()

setBasePackage

public void setBasePackage(String newBasePackage)

Specified by:
setBasePackage in interface GenPackage
Parameters:
newBasePackage - the new value of the 'Base Package' attribute.
See Also:
GenPackage.getBasePackage()

getResource

public GenResourceKind getResource()

Specified by:
getResource in interface GenPackage
Returns:
the value of the 'Resource' attribute.
See Also:
GenResourceKind, GenPackage.setResource(GenResourceKind), GenModelPackage.getGenPackage_Resource()

setResource

public void setResource(GenResourceKind newResource)

Specified by:
setResource in interface GenPackage
Parameters:
newResource - the new value of the 'Resource' attribute.
See Also:
GenResourceKind, GenPackage.getResource()

isAdapterFactory

public boolean isAdapterFactory()

Specified by:
isAdapterFactory in interface GenPackage
Returns:
the value of the 'Adapter Factory' attribute.
See Also:
GenPackage.setAdapterFactory(boolean), GenModelPackage.getGenPackage_AdapterFactory()

setAdapterFactory

public void setAdapterFactory(boolean newAdapterFactory)

Specified by:
setAdapterFactory in interface GenPackage
Parameters:
newAdapterFactory - the new value of the 'Adapter Factory' attribute.
See Also:
GenPackage.isAdapterFactory()

isLoadInitialization

public boolean isLoadInitialization()

Specified by:
isLoadInitialization in interface GenPackage
Returns:
the value of the 'Load Initialization' attribute.
See Also:
GenPackage.setLoadInitialization(boolean), GenModelPackage.getGenPackage_LoadInitialization()

setLoadInitialization

public void setLoadInitialization(boolean newLoadInitialization)

Specified by:
setLoadInitialization in interface GenPackage
Parameters:
newLoadInitialization - the new value of the 'Load Initialization' attribute.
See Also:
GenPackage.isLoadInitialization()

getEcoreModelElement

public EModelElement getEcoreModelElement()
Specified by:
getEcoreModelElement in class GenBaseImpl

getEcorePackage

public EPackage getEcorePackage()

Specified by:
getEcorePackage in interface GenPackage
Returns:
the value of the 'Ecore Package' reference.
See Also:
GenPackage.setEcorePackage(EPackage), GenModelPackage.getGenPackage_EcorePackage()

basicGetEcorePackage

public EPackage basicGetEcorePackage()


setEcorePackage

public void setEcorePackage(EPackage newEcorePackage)

Specified by:
setEcorePackage in interface GenPackage
Parameters:
newEcorePackage - the new value of the 'Ecore Package' reference.
See Also:
GenPackage.getEcorePackage()

getGenModel

public GenModel getGenModel()
Description copied from interface: GenPackage
Returns the value of the 'Gen Model' container reference. It is bidirectional and its opposite is 'Gen Packages'.

If the meaning of the 'Gen Model' reference isn't clear, there really should be more of a description here...

Specified by:
getGenModel in interface GenPackage
Overrides:
getGenModel in class GenBaseImpl

getGenModelGen

public GenModel getGenModelGen()


setGenModel

public void setGenModel(GenModel newGenModel)

Specified by:
setGenModel in interface GenPackage
Parameters:
newGenModel - the new value of the 'Gen Model' container reference.
See Also:
GenPackage.getGenModel()

getGenEnums

public EList getGenEnums()

Specified by:
getGenEnums in interface GenPackage
Returns:
the value of the 'Gen Enums' containment reference list.
See Also:
GenModelPackage.getGenPackage_GenEnums()

getGenDataTypes

public EList getGenDataTypes()

Specified by:
getGenDataTypes in interface GenPackage
Returns:
the value of the 'Gen Data Types' containment reference list.
See Also:
GenModelPackage.getGenPackage_GenDataTypes()

getGenClasses

public EList getGenClasses()

Specified by:
getGenClasses in interface GenPackage
Returns:
the value of the 'Gen Classes' containment reference list.
See Also:
GenModelPackage.getGenPackage_GenClasses()

getNestedGenPackages

public EList getNestedGenPackages()

Specified by:
getNestedGenPackages in interface GenPackage
Returns:
the value of the 'Nested Gen Packages' containment reference list.
See Also:
GenModelPackage.getGenPackage_NestedGenPackages()

getGenClassifiers

public EList getGenClassifiers()

Specified by:
getGenClassifiers in interface GenPackage
Returns:
the value of the 'Gen Classifiers' reference list.
See Also:
GenModelPackage.getGenPackage_GenClassifiers(), GenClassifier.getGenPackage()

eInverseAdd

public NotificationChain eInverseAdd(InternalEObject otherEnd,
                                     int featureID,
                                     Class baseClass,
                                     NotificationChain msgs)

Specified by:
eInverseAdd in interface InternalEObject
Overrides:
eInverseAdd in class BasicEObjectImpl

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        Class baseClass,
                                        NotificationChain msgs)

Specified by:
eInverseRemove in interface InternalEObject
Overrides:
eInverseRemove in class BasicEObjectImpl

eBasicRemoveFromContainer

public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)

Specified by:
eBasicRemoveFromContainer in interface InternalEObject
Overrides:
eBasicRemoveFromContainer in class BasicEObjectImpl

eGet

public Object eGet(EStructuralFeature eFeature,
                   boolean resolve)

Specified by:
eGet in interface EObject
Overrides:
eGet in class BasicEObjectImpl

eIsSet

public boolean eIsSet(EStructuralFeature eFeature)

Specified by:
eIsSet in interface EObject
Overrides:
eIsSet in class BasicEObjectImpl

eSet

public void eSet(EStructuralFeature eFeature,
                 Object newValue)

Specified by:
eSet in interface EObject
Overrides:
eSet in class BasicEObjectImpl

eUnset

public void eUnset(EStructuralFeature eFeature)

Specified by:
eUnset in interface EObject
Overrides:
eUnset in class BasicEObjectImpl

toString

public String toString()

Overrides:
toString in class BasicEObjectImpl

getName

public String getName()
Specified by:
getName in class GenBaseImpl

getPackageName

public String getPackageName()
Specified by:
getPackageName in interface GenPackage

getInterfacePackageName

public String getInterfacePackageName()
Specified by:
getInterfacePackageName in interface GenPackage

getClassPackageName

public String getClassPackageName()
Specified by:
getClassPackageName in interface GenPackage

getUtilitiesPackageName

public String getUtilitiesPackageName()
Specified by:
getUtilitiesPackageName in interface GenPackage

getPackageID

public String getPackageID()

getNSName

public String getNSName()
Specified by:
getNSName in interface GenPackage

getNSURI

public String getNSURI()
Specified by:
getNSURI in interface GenPackage

getPackageInterfaceName

public String getPackageInterfaceName()
Specified by:
getPackageInterfaceName in interface GenPackage

getQualifiedPackageInterfaceName

public String getQualifiedPackageInterfaceName()
Specified by:
getQualifiedPackageInterfaceName in interface GenPackage

getImportedPackageInterfaceName

public String getImportedPackageInterfaceName()
Specified by:
getImportedPackageInterfaceName in interface GenPackage

getUncapPackageInterfaceName

public String getUncapPackageInterfaceName()
Specified by:
getUncapPackageInterfaceName in interface GenPackage

getPackageClassName

public String getPackageClassName()
Specified by:
getPackageClassName in interface GenPackage

getQualifiedPackageClassName

public String getQualifiedPackageClassName()
Specified by:
getQualifiedPackageClassName in interface GenPackage

getImportedPackageClassName

public String getImportedPackageClassName()
Specified by:
getImportedPackageClassName in interface GenPackage

getFactoryInterfaceName

public String getFactoryInterfaceName()
Specified by:
getFactoryInterfaceName in interface GenPackage

getQualifiedFactoryInterfaceName

public String getQualifiedFactoryInterfaceName()
Specified by:
getQualifiedFactoryInterfaceName in interface GenPackage

getImportedFactoryInterfaceName

public String getImportedFactoryInterfaceName()
Specified by:
getImportedFactoryInterfaceName in interface GenPackage

getUncapFactoryInterfaceName

public String getUncapFactoryInterfaceName()
Specified by:
getUncapFactoryInterfaceName in interface GenPackage

getFactoryClassName

public String getFactoryClassName()
Specified by:
getFactoryClassName in interface GenPackage

getQualifiedFactoryClassName

public String getQualifiedFactoryClassName()
Specified by:
getQualifiedFactoryClassName in interface GenPackage

getImportedFactoryClassName

public String getImportedFactoryClassName()
Specified by:
getImportedFactoryClassName in interface GenPackage

getAdapterFactoryClassName

public String getAdapterFactoryClassName()
Specified by:
getAdapterFactoryClassName in interface GenPackage

getQualifiedAdapterFactoryClassName

public String getQualifiedAdapterFactoryClassName()
Specified by:
getQualifiedAdapterFactoryClassName in interface GenPackage

getImportedAdapterFactoryClassName

public String getImportedAdapterFactoryClassName()
Specified by:
getImportedAdapterFactoryClassName in interface GenPackage

getUncapAdapterFactoryClassName

public String getUncapAdapterFactoryClassName()
Specified by:
getUncapAdapterFactoryClassName in interface GenPackage

getSwitchClassName

public String getSwitchClassName()
Specified by:
getSwitchClassName in interface GenPackage

hasConstraints

public boolean hasConstraints()
Specified by:
hasConstraints in interface GenPackage

getValidatorClassName

public String getValidatorClassName()
Specified by:
getValidatorClassName in interface GenPackage

getImportedValidatorClassName

public String getImportedValidatorClassName()
Specified by:
getImportedValidatorClassName in interface GenPackage

getPrefixedName

protected String getPrefixedName(String name)

getAllGenDataTypes

public List getAllGenDataTypes()
Specified by:
getAllGenDataTypes in interface GenPackage

getOrderedGenClasses

public List getOrderedGenClasses()
Description copied from interface: GenPackage
Returns the list of GenClasses in the GenPackage, ordered such that a class always follows all of the classes it extends. Appropriate for use in package interface to declare feature constants, which will depend on (and hence must follow) constants for the extended class.

Specified by:
getOrderedGenClasses in interface GenPackage

getOrderedGenClassifiers

public List getOrderedGenClassifiers()
Specified by:
getOrderedGenClassifiers in interface GenPackage

getClassifierID

public String getClassifierID(GenClassifier genClassifier)
Specified by:
getClassifierID in interface GenPackage

getClassifierValue

public int getClassifierValue(GenClassifier genClassifier)
Specified by:
getClassifierValue in interface GenPackage

getLocalClassifierIndex

public int getLocalClassifierIndex(GenClassifier genClassifier)
Specified by:
getLocalClassifierIndex in interface GenPackage

getPackageSimpleDependencies

public List getPackageSimpleDependencies()
Specified by:
getPackageSimpleDependencies in interface GenPackage

getPackageInterDependencies

public List getPackageInterDependencies()
Specified by:
getPackageInterDependencies in interface GenPackage

getPackageLoadInterDependencies

public List getPackageLoadInterDependencies()
Specified by:
getPackageLoadInterDependencies in interface GenPackage

getPackageBuildInterDependencies

public List getPackageBuildInterDependencies()
Specified by:
getPackageBuildInterDependencies in interface GenPackage

getPackageInitializationDependencies

public List getPackageInitializationDependencies()
Specified by:
getPackageInitializationDependencies in interface GenPackage

getPackageInstanceVariable

public String getPackageInstanceVariable(GenPackage genPackage)
Specified by:
getPackageInstanceVariable in interface GenPackage

collectPackages

protected void collectPackages(List result,
                               List genPackages,
                               int depth)
Collects into result nested GenPackages to the specified depth, not counting those without classifiers (for which nothing is ever generated); -1 for no limit.


getSubGenPackages

public List getSubGenPackages()
Description copied from interface: GenPackage
Returns a list of those nestedGenPackages for which hasClassifiers() is true.

Specified by:
getSubGenPackages in interface GenPackage

getSuperGenPackage

public GenPackage getSuperGenPackage()
Description copied from interface: GenPackage
Returns the closest GenPackage-typed container for which hasClassifiers() is true, or null if there is none.

Specified by:
getSuperGenPackage in interface GenPackage

getRootGenPackage

public GenPackage getRootGenPackage()
Description copied from interface: GenPackage
Returns the top-most GenPackage-typed container for which hasClassifiers() is true, which may be this GenPackage, itself.

Specified by:
getRootGenPackage in interface GenPackage

isLoadingInitialization

public boolean isLoadingInitialization()
Description copied from interface: GenPackage
Returns true if this is a root package that requires, or has a direct or indirect subpackage that requires, load initialization.

Specified by:
isLoadingInitialization in interface GenPackage

isLoadedInitialization

public boolean isLoadedInitialization()
Description copied from interface: GenPackage
Returns true if this package's root, which may be itself, requires, or has a subpackage that requires, load initialization.

Specified by:
isLoadedInitialization in interface GenPackage

isEcorePackage

public boolean isEcorePackage()
Specified by:
isEcorePackage in interface GenPackage

hasJavaLangConflict

public boolean hasJavaLangConflict()
Specified by:
hasJavaLangConflict in interface GenPackage

getJavaLangConflicts

public List getJavaLangConflicts()
Specified by:
getJavaLangConflicts in interface GenPackage

hasInterfaceImplConflict

public boolean hasInterfaceImplConflict()
Specified by:
hasInterfaceImplConflict in interface GenPackage

getAllSwitchGenClasses

public List getAllSwitchGenClasses()
Specified by:
getAllSwitchGenClasses in interface GenPackage

getClassUniqueName

public String getClassUniqueName(GenClass genClass)
Specified by:
getClassUniqueName in interface GenPackage

getAllValidatorBaseGenPackages

public List getAllValidatorBaseGenPackages()
Specified by:
getAllValidatorBaseGenPackages in interface GenPackage

getValidatorPackageUniqueSafeName

public String getValidatorPackageUniqueSafeName(GenPackage genPackage)
Specified by:
getValidatorPackageUniqueSafeName in interface GenPackage

initialize

public void initialize(EPackage ePackage)
Specified by:
initialize in interface GenPackage

hasModelContribution

protected boolean hasModelContribution()
Overrides:
hasModelContribution in class GenBaseImpl

generate

public void generate(IProgressMonitor progressMonitor)
Specified by:
generate in interface GenBase
Overrides:
generate in class GenBaseImpl

generateSchema

public void generateSchema()
Deprecated. Use GenBase.generateSchema(IProgressMonitor) instead. This method will be removed soon.

Specified by:
generateSchema in interface GenPackage

canGenerateSchema

public boolean canGenerateSchema()
Specified by:
canGenerateSchema in interface GenBase
Overrides:
canGenerateSchema in class GenBaseImpl

generateSchema

public void generateSchema(IProgressMonitor progressMonitor)
Specified by:
generateSchema in interface GenBase
Overrides:
generateSchema in class GenBaseImpl

generateXSD

protected void generateXSD(String type)

generatePackageSerialization

public void generatePackageSerialization(IProgressMonitor progressMonitor)

getProviderPackageName

public String getProviderPackageName()
Specified by:
getProviderPackageName in interface GenPackage

getPresentationPackageName

public String getPresentationPackageName()
Specified by:
getPresentationPackageName in interface GenPackage

getItemProviderAdapterFactoryClassName

public String getItemProviderAdapterFactoryClassName()
Specified by:
getItemProviderAdapterFactoryClassName in interface GenPackage

getQualifiedItemProviderAdapterFactoryClassName

public String getQualifiedItemProviderAdapterFactoryClassName()
Specified by:
getQualifiedItemProviderAdapterFactoryClassName in interface GenPackage

getImportedItemProviderAdapterFactoryClassName

public String getImportedItemProviderAdapterFactoryClassName()
Specified by:
getImportedItemProviderAdapterFactoryClassName in interface GenPackage

getEditorClassName

public String getEditorClassName()
Specified by:
getEditorClassName in interface GenPackage

getQualifiedEditorClassName

public String getQualifiedEditorClassName()
Specified by:
getQualifiedEditorClassName in interface GenPackage

getImportedEditorClassName

public String getImportedEditorClassName()
Specified by:
getImportedEditorClassName in interface GenPackage

getModelWizardClassName

public String getModelWizardClassName()
Specified by:
getModelWizardClassName in interface GenPackage

getQualifiedModelWizardClassName

public String getQualifiedModelWizardClassName()
Specified by:
getQualifiedModelWizardClassName in interface GenPackage

getImportedModelWizardClassName

public String getImportedModelWizardClassName()
Specified by:
getImportedModelWizardClassName in interface GenPackage

getActionBarContributorClassName

public String getActionBarContributorClassName()
Specified by:
getActionBarContributorClassName in interface GenPackage

getQualifiedActionBarContributorClassName

public String getQualifiedActionBarContributorClassName()
Specified by:
getQualifiedActionBarContributorClassName in interface GenPackage

getImportedActionBarContributorClassName

public String getImportedActionBarContributorClassName()
Specified by:
getImportedActionBarContributorClassName in interface GenPackage

getAdapterFactoryDelegateName

public String getAdapterFactoryDelegateName(GenPackage genDelegate)
Specified by:
getAdapterFactoryDelegateName in interface GenPackage

getUncapAdapterFactoryDelegateName

public String getUncapAdapterFactoryDelegateName(GenPackage genDelegate)
Specified by:
getUncapAdapterFactoryDelegateName in interface GenPackage

getEditPluginClassName

public String getEditPluginClassName()
Specified by:
getEditPluginClassName in interface GenPackage

getQualifiedEditPluginClassName

public String getQualifiedEditPluginClassName()
Specified by:
getQualifiedEditPluginClassName in interface GenPackage

getImportedEditPluginClassName

public String getImportedEditPluginClassName()
Specified by:
getImportedEditPluginClassName in interface GenPackage

getEditorPluginClassName

public String getEditorPluginClassName()
Specified by:
getEditorPluginClassName in interface GenPackage

getQualifiedEditorPluginClassName

public String getQualifiedEditorPluginClassName()
Specified by:
getQualifiedEditorPluginClassName in interface GenPackage

getImportedEditorPluginClassName

public String getImportedEditorPluginClassName()
Specified by:
getImportedEditorPluginClassName in interface GenPackage

getCapPackageID

public String getCapPackageID()

getAllGenFeatures

public List getAllGenFeatures()
Specified by:
getAllGenFeatures in interface GenPackage

getAdapterDelegatePackages

public List getAdapterDelegatePackages()
Specified by:
getAdapterDelegatePackages in interface GenPackage

getAdapterDelegateSuperClasses

public List getAdapterDelegateSuperClasses()
Specified by:
getAdapterDelegateSuperClasses in interface GenPackage

generateEdit

public void generateEdit(IProgressMonitor progressMonitor)
Specified by:
generateEdit in interface GenBase
Overrides:
generateEdit in class GenBaseImpl

generateEditor

public void generateEditor(IProgressMonitor progressMonitor)
Specified by:
generateEditor in interface GenBase
Overrides:
generateEditor in class GenBaseImpl

getModelIconFileName

public String getModelIconFileName()

getModelWizardIconFileName

public String getModelWizardIconFileName()

hasClassifiers

public boolean hasClassifiers()
Specified by:
hasClassifiers in interface GenPackage

reconcile

public boolean reconcile(GenPackage oldGenPackageVersion)
Specified by:
reconcile in interface GenPackage

reconcileSettings

protected void reconcileSettings(GenPackage oldGenPackageVersion)

reconcile

public boolean reconcile()
Specified by:
reconcile in interface GenBase

getAnnotationSources

public List getAnnotationSources()
Specified by:
getAnnotationSources in interface GenPackage

getAnnotationSourceIdentifier

public String getAnnotationSourceIdentifier(String annotationSource)
Specified by:
getAnnotationSourceIdentifier in interface GenPackage

getAllAnnotations

public List getAllAnnotations()
Specified by:
getAllAnnotations in interface GenPackage

getAnnotatedModelElementAccessor

public String getAnnotatedModelElementAccessor(EAnnotation eAnnotation)
Specified by:
getAnnotatedModelElementAccessor in interface GenPackage

getResourceClassName

public String getResourceClassName()
Specified by:
getResourceClassName in interface GenPackage

getQualifiedResourceClassName

public String getQualifiedResourceClassName()
Specified by:
getQualifiedResourceClassName in interface GenPackage

getImportedResourceClassName

public String getImportedResourceClassName()
Specified by:
getImportedResourceClassName in interface GenPackage

getImportedResourceBaseClassName

public String getImportedResourceBaseClassName()
Specified by:
getImportedResourceBaseClassName in interface GenPackage

getResourceFactoryClassName

public String getResourceFactoryClassName()
Specified by:
getResourceFactoryClassName in interface GenPackage

getQualifiedResourceFactoryClassName

public String getQualifiedResourceFactoryClassName()
Specified by:
getQualifiedResourceFactoryClassName in interface GenPackage

getImportedResourceFactoryClassName

public String getImportedResourceFactoryClassName()
Specified by:
getImportedResourceFactoryClassName in interface GenPackage

getImportedResourceFactoryBaseClassName

public String getImportedResourceFactoryBaseClassName()
Specified by:
getImportedResourceFactoryBaseClassName in interface GenPackage

hasDocumentRoot

public boolean hasDocumentRoot()
Specified by:
hasDocumentRoot in interface GenPackage

hasExtendedMetaData

public boolean hasExtendedMetaData()
Specified by:
hasExtendedMetaData in interface GenPackage

hasExtendedMetaData

protected static boolean hasExtendedMetaData(EPackage ePackage)

hasXMLMap

public boolean hasXMLMap()
Specified by:
hasXMLMap in interface GenPackage

hasTargetNamespace

public boolean hasTargetNamespace()
Specified by:
hasTargetNamespace in interface GenPackage

getSerializedPackageFilename

public String getSerializedPackageFilename()
Specified by:
getSerializedPackageFilename in interface GenPackage

isBigModel

protected boolean isBigModel()

Copyright 2001-2004 IBM Corporation and others.
All Rights Reserved.