|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
org.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl
An implementation of the model object 'Gen Base'.
Nested Class Summary | |
static class |
GenBaseImpl.ColorInformation
|
protected static interface |
GenBaseImpl.GenClassFilter
|
protected static interface |
GenBaseImpl.GenConstraintFilter
|
protected static interface |
GenBaseImpl.GenFeatureFilter
|
protected static interface |
GenBaseImpl.GenOperationFilter
|
protected static class |
GenBaseImpl.GIFEmitter
|
protected static class |
GenBaseImpl.ImportManager
|
protected class |
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 GenPackage |
ecoreGenPackage
|
protected static HashSet |
javaLangTypes
|
protected static HashSet |
javaReservedWords
|
protected static GenPackage |
xmlNamespaceGenPackage
|
protected static GenPackage |
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 |
GenBaseImpl()
|
Method Summary | |
protected void |
appendModelSetting(StringBuffer result,
String name,
String value)
|
protected void |
appendModelSetting(StringBuffer result,
String qualifier,
String name,
String value)
|
boolean |
canGenerate()
|
boolean |
canGenerateEdit()
|
boolean |
canGenerateEditor()
|
boolean |
canGenerateSchema()
|
String |
capName(String name)
|
protected List |
collectGenClasses(List eClasses,
GenBaseImpl.GenClassFilter filter)
Iterate over the specified eClasses list, finding the GenClass corresponding to each EClass. |
protected List |
collectGenConstraints(List genClassifiers,
List genConstraints,
GenBaseImpl.GenConstraintFilter filter)
Iterate over the lists returned by calling getGenConstraints() on items in the list of genClassifiers, and then over the list of genConstraints. |
protected List |
collectGenFeatures(List genClasses,
List genFeatures,
GenBaseImpl.GenFeatureFilter filter)
Iterate over the lists returned by calling getGenFeatures() on items in the list of genClasses, and then over the list of genFeatures. |
protected List |
collectGenOperations(List genClasses,
List genOperations,
GenBaseImpl.GenOperationFilter filter)
Iterate over the lists returned by calling getGenOperations() on items in the list of genClasses, and then over the list of genOperations. |
EObject |
eObjectForURIFragmentSegment(String uriFragmentSegment)
Returns the object resolved by the fragment segment. |
GenModelPackage |
ePackageGenModel()
|
protected EClass |
eStaticClass()
|
String |
eURIFragmentSegment(EStructuralFeature eStructuralFeature,
EObject eObject)
Returns the fragment segment that, when passed to eObjectForURIFragmentSegment ,
will resolve to the given object in this object's given feature.
|
protected List |
filterGenClasses(List genClasses,
GenBaseImpl.GenClassFilter filter)
Return all GenClasses in the specified genClasses list that are accepted by filter; all are accepted if filter is null. |
protected GenClass |
findGenClass(EClass eClass)
|
protected GenClassifier |
findGenClassifier(EClassifier eClassifier)
|
protected GenDataType |
findGenDataType(EDataType eDataType)
|
protected GenEnum |
findGenEnum(EEnum eEnum)
|
protected GenFeature |
findGenFeature(EStructuralFeature eStructuralFeature)
|
GenPackage |
findGenPackage(EPackage ePackage)
|
protected GenPackage |
findGenPackageHelper(GenPackage genPackage,
EPackage ePackage)
Finds the GenPackage corresponding to the EPackage, taking into account any nested GenPackages. |
protected IContainer |
findOrCreateContainer(IProgressMonitor progressMonitor,
int style,
List pluginVariables,
IPath outputPath,
boolean forceStyle)
|
String |
format(String name,
char separator,
String prefix,
boolean includePrefix)
|
void |
generate(IProgressMonitor progressMonitor)
|
protected void |
generate(IProgressMonitor progressMonitor,
int style,
List pluginVariables,
String outputFilePath,
GenBaseImpl.GIFEmitter gifEmitter,
String key)
|
protected void |
generate(IProgressMonitor progressMonitor,
int style,
List pluginVariables,
String outputFilePath,
GenBaseImpl.GIFEmitter gifEmitter,
String parentKey,
String childKey)
|
protected void |
generate(IProgressMonitor progressMonitor,
int style,
List pluginVariables,
String outputFilePath,
JETEmitter jetEmitter)
|
protected void |
generate(IProgressMonitor progressMonitor,
int style,
List pluginVariables,
String targetDirectory,
String packageName,
String className,
JETEmitter jetEmitter)
|
void |
generateEdit(IProgressMonitor progressMonitor)
|
void |
generateEditor(IProgressMonitor progressMonitor)
|
void |
generateSchema(IProgressMonitor progressMonitor)
|
protected List |
getAllGenPackages()
|
protected String |
getDocumentation()
|
String |
getDocumentation(String indentation)
|
abstract EModelElement |
getEcoreModelElement()
|
protected ExtendedMetaData |
getExtendedMetaData()
|
GenModel |
getGenModel()
|
protected String |
getImplClassName(String interfaceName)
|
protected String |
getImportedType(EClassifier eType,
boolean primitiveAsObject)
Returns the primitive or class name for the given EClassifier. |
protected GenBaseImpl.ImportManager |
getImportManager()
|
protected Class |
getInstanceClass(EClassifier eType)
|
protected static HashSet |
getJavaLangTypes()
|
protected static HashSet |
getJavaReservedWords()
Returns a hash of all Java's keywords and textual literals, as of Java 1.4. |
String |
getModelInfo()
|
abstract String |
getName()
|
protected String |
getPrimitiveDefault(EClassifier eType)
|
protected String |
getPrimitiveObjectType(EClassifier eType)
|
protected String |
getType(EClassifier eType,
boolean primitiveAsObject)
Returns the primitive or qualified class name for the given EClassifier. |
protected List |
getTypeGenClasses(EClassifier eType,
GenPackage firstGenPackage,
List genPackages,
int max)
If eType is an EClass, returns the list of GenClasses representing its non-abstract subclasses, beginning with those from the specified firstGenPackage followed by the others in genPackages, and ordered down the inheritance chains within each package. |
boolean |
hasDocumentation()
|
protected boolean |
hasModelContribution()
|
protected String |
indent(String text,
String indentation)
|
protected static boolean |
isBlank(String string)
|
protected static boolean |
isJavaUtilMapEntry(String name)
|
protected boolean |
isPrimitiveType(EClassifier eType)
|
protected List |
parseName(String sourceName,
char sourceSeparator)
This method breaks sourceName into words delimited by sourceSeparator and/or mixed-case naming. |
String |
safeName(String name)
|
protected void |
setImportManager(GenBaseImpl.ImportManager importManager)
|
String |
uncapName(String name)
|
String |
uncapPrefixedName(String name)
|
protected static String |
unicodeEscapeEncode(String unicode)
|
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.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 |
reconcile |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
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 |
protected static HashSet javaReservedWords
protected static HashSet javaLangTypes
protected static GenPackage ecoreGenPackage
protected static GenPackage xmlTypeGenPackage
protected static GenPackage xmlNamespaceGenPackage
Constructor Detail |
protected GenBaseImpl()
Method Detail |
protected EClass eStaticClass()
eStaticClass
in class EObjectImpl
public GenModel getGenModel()
getGenModel
in interface GenBase
public abstract String getName()
public String capName(String name)
capName
in interface GenBase
public String uncapName(String name)
uncapName
in interface GenBase
public String uncapPrefixedName(String name)
uncapPrefixedName
in interface GenBase
public String safeName(String name)
safeName
in interface GenBase
protected String getImplClassName(String interfaceName)
public boolean canGenerate()
canGenerate
in interface GenBase
protected boolean hasModelContribution()
public void generate(IProgressMonitor progressMonitor)
generate
in interface GenBase
protected void generate(IProgressMonitor progressMonitor, int style, List pluginVariables, String outputFilePath, JETEmitter jetEmitter)
protected void generate(IProgressMonitor progressMonitor, int style, List pluginVariables, String outputFilePath, GenBaseImpl.GIFEmitter gifEmitter, String key)
protected void generate(IProgressMonitor progressMonitor, int style, List pluginVariables, String outputFilePath, GenBaseImpl.GIFEmitter gifEmitter, String parentKey, String childKey)
protected void generate(IProgressMonitor progressMonitor, int style, List pluginVariables, String targetDirectory, String packageName, String className, JETEmitter jetEmitter)
protected GenBaseImpl.ImportManager getImportManager()
protected void setImportManager(GenBaseImpl.ImportManager importManager)
protected IContainer findOrCreateContainer(IProgressMonitor progressMonitor, int style, List pluginVariables, IPath outputPath, boolean forceStyle)
public String format(String name, char separator, String prefix, boolean includePrefix)
format
in interface GenBase
protected List parseName(String sourceName, char sourceSeparator)
protected List getAllGenPackages()
protected GenPackage findGenPackageHelper(GenPackage genPackage, EPackage ePackage)
public GenPackage findGenPackage(EPackage ePackage)
protected GenClass findGenClass(EClass eClass)
protected GenEnum findGenEnum(EEnum eEnum)
protected GenDataType findGenDataType(EDataType eDataType)
protected GenClassifier findGenClassifier(EClassifier eClassifier)
protected GenFeature findGenFeature(EStructuralFeature eStructuralFeature)
protected Class getInstanceClass(EClassifier eType)
protected boolean isPrimitiveType(EClassifier eType)
protected String getPrimitiveObjectType(EClassifier eType)
protected String getPrimitiveDefault(EClassifier eType)
protected String getType(EClassifier eType, boolean primitiveAsObject)
protected String getImportedType(EClassifier eType, boolean primitiveAsObject)
protected List getTypeGenClasses(EClassifier eType, GenPackage firstGenPackage, List genPackages, int max)
protected static HashSet getJavaReservedWords()
protected static HashSet getJavaLangTypes()
protected List filterGenClasses(List genClasses, GenBaseImpl.GenClassFilter filter)
protected List collectGenClasses(List eClasses, GenBaseImpl.GenClassFilter filter)
protected List collectGenFeatures(List genClasses, List genFeatures, GenBaseImpl.GenFeatureFilter filter)
protected List collectGenOperations(List genClasses, List genOperations, GenBaseImpl.GenOperationFilter filter)
protected List collectGenConstraints(List genClassifiers, List genConstraints, GenBaseImpl.GenConstraintFilter filter)
public String getModelInfo()
protected void appendModelSetting(StringBuffer result, String qualifier, String name, String value)
protected void appendModelSetting(StringBuffer result, String name, String value)
public GenModelPackage ePackageGenModel()
ePackageGenModel
in interface GenBase
protected static boolean isJavaUtilMapEntry(String name)
protected static boolean isBlank(String string)
public boolean canGenerateEdit()
canGenerateEdit
in interface GenBase
public void generateEdit(IProgressMonitor progressMonitor)
generateEdit
in interface GenBase
public boolean canGenerateEditor()
canGenerateEditor
in interface GenBase
public void generateEditor(IProgressMonitor progressMonitor)
generateEditor
in interface GenBase
public boolean canGenerateSchema()
canGenerateSchema
in interface GenBase
public void generateSchema(IProgressMonitor progressMonitor)
generateSchema
in interface GenBase
public String eURIFragmentSegment(EStructuralFeature eStructuralFeature, EObject eObject)
InternalEObject
eObjectForURIFragmentSegment
,
will resolve to the given object in this object's given feature.
The feature argument may be null
in which case it will be deduced, if possible.
The default result will be of the form:
"@<feature-name>[.<index>]"The index is used only for
many-valued
features;
it represents the position within the list.
eURIFragmentSegment
in interface InternalEObject
eURIFragmentSegment
in class BasicEObjectImpl
public EObject eObjectForURIFragmentSegment(String uriFragmentSegment)
InternalEObject
The fragment segment encoding will typically be of the form returned by eURIFragmentSegment
.
eObjectForURIFragmentSegment
in interface InternalEObject
eObjectForURIFragmentSegment
in class BasicEObjectImpl
protected static String unicodeEscapeEncode(String unicode)
public abstract EModelElement getEcoreModelElement()
protected String getDocumentation()
public boolean hasDocumentation()
hasDocumentation
in interface GenBase
public String getDocumentation(String indentation)
getDocumentation
in interface GenBase
protected String indent(String text, String indentation)
protected ExtendedMetaData getExtendedMetaData()
|
Copyright 2001-2004 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |