|
|||||||||||
| 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'.
The following features are implemented:
| Nested Class Summary | |
protected static interface |
GenBaseImpl.AnnotationFilter
|
protected static class |
GenBaseImpl.AnnotationFilterImpl
|
static class |
GenBaseImpl.ColorInformation
|
protected static class |
GenBaseImpl.EclipseUtil
|
protected static class |
GenBaseImpl.GenAnnotationCopier
|
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 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 GenBaseImpl.AnnotationFilter |
DEFAULT_ANNOTATION_FILTER
|
protected static GenPackage |
ecoreGenPackage
|
protected static URI |
EMPTY_URI
|
protected EList |
genAnnotations
The cached value of the ' Gen Annotations' containment reference list |
protected static URI |
PLATFORM_RESOURCE_URI
|
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 class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET |
| Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
EOPPOSITE_FEATURE_BASE |
| Constructor Summary | |
protected |
GenBaseImpl()
|
| Method Summary | |
protected void |
addNonDuplicates(Collection target,
Collection source,
Set noDupSet)
|
protected void |
appendAnnotationInfo(StringBuffer result,
boolean qualified,
EModelElement eModelElement,
GenBaseImpl.AnnotationFilter annotationFilter)
|
protected void |
appendAnnotationInfo(StringBuffer result,
EModelElement eModelElement)
|
protected void |
appendAnnotationInfo(StringBuffer result,
EModelElement eModelElement,
GenBaseImpl.AnnotationFilter annotationFilter)
|
protected void |
appendLineBreak(StringBuffer result)
|
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()
|
boolean |
canGenerateTests()
|
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. |
InputStream |
createInputStream(URI uri)
|
protected Monitor |
createMonitor(Monitor monitor,
int ticks)
|
OutputStream |
createOutputStream(URI uri)
|
Object |
eGet(int featureID,
boolean resolve,
boolean coreType)
|
NotificationChain |
eInverseAdd(InternalEObject otherEnd,
int featureID,
NotificationChain msgs)
|
NotificationChain |
eInverseRemove(InternalEObject otherEnd,
int featureID,
NotificationChain msgs)
|
boolean |
eIsSet(int featureID)
|
EObject |
eObjectForURIFragmentSegment(String uriFragmentSegment)
Returns the object resolved by the fragment segment. |
protected static String |
escapeString(String s,
String additionalCharactersToEscape)
|
void |
eSet(int featureID,
Object newValue)
|
protected EClass |
eStaticClass()
|
void |
eUnset(int featureID)
|
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.
|
boolean |
exists(URI uri)
|
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)
|
protected GenOperation |
findGenOperation(EOperation eOperation)
|
GenPackage |
findGenPackage(EPackage ePackage)
|
protected GenPackage |
findGenPackageHelper(GenPackage genPackage,
EPackage ePackage)
Finds the GenPackage corresponding to the EPackage, taking into account any nested GenPackages. |
boolean |
findOrCreateContainer(Monitor progressMonitor,
int style,
List pluginVariables,
URI outputURI,
boolean forceStyle)
|
String |
format(String name,
char separator,
String prefix,
boolean includePrefix)
Deprecated. in 2.2. Please use format(String, char, String, boolean, boolean) instead. |
protected String |
format(String name,
char separator,
String prefix,
boolean includePrefix,
boolean includeLeadingSeparator)
|
protected String |
formatCode(String contents,
org.eclipse.jdt.core.formatter.CodeFormatter codeFormatter)
If code formatting is enabled for this model, use
the specified JDT code formatter to format the given compilation unit contents. |
void |
gen(Monitor progressMonitor)
|
void |
gen(Monitor progressMonitor,
int style,
List pluginVariables,
String targetDirectory,
String packageName,
String className,
JETEmitter jetEmitter)
|
void |
genEdit(Monitor progressMonitor)
|
void |
genEditor(Monitor progressMonitor)
|
void |
generate(IProgressMonitor progressMonitor)
|
void |
generate(Monitor progressMonitor)
|
protected void |
generate(Monitor progressMonitor,
int style,
List pluginVariables,
String outputFilePath,
GenBaseImpl.GIFEmitter gifEmitter,
String key)
|
protected void |
generate(Monitor progressMonitor,
int style,
List pluginVariables,
String outputFilePath,
GenBaseImpl.GIFEmitter gifEmitter,
String parentKey,
String childKey)
|
protected void |
generate(Monitor progressMonitor,
int style,
List pluginVariables,
String outputFilePath,
JETEmitter jetEmitter)
|
protected void |
generate(Monitor progressMonitor,
int style,
List pluginVariables,
String targetDirectory,
String packageName,
String className,
JETEmitter jetEmitter)
|
protected void |
generate(Monitor progressMonitor,
int style,
List pluginVariables,
String targetDirectory,
String packageName,
String className,
JETEmitter jetEmitter,
Object[] arguments)
|
void |
generateEdit(IProgressMonitor progressMonitor)
|
void |
generateEdit(Monitor progressMonitor)
|
void |
generateEditor(IProgressMonitor progressMonitor)
|
void |
generateEditor(Monitor progressMonitor)
|
void |
generateSchema(IProgressMonitor progressMonitor)
|
void |
generateSchema(Monitor progressMonitor)
|
void |
generateTests(IProgressMonitor progressMonitor)
|
void |
generateTests(Monitor progressMonitor)
|
void |
genSchema(Monitor progressMonitor)
|
void |
genTests(Monitor progressMonitor)
|
protected List |
getAllGenPackages()
|
protected List |
getAnnotationInfo(EModelElement eModelElement)
|
protected List |
getAnnotationInfo(EModelElement eModelElement,
GenBaseImpl.AnnotationFilter annotationFilter)
|
String |
getContents(URI uri)
|
protected String |
getDocumentation()
|
String |
getDocumentation(String indentation)
|
EModelElement |
getEcoreModelElement()
|
protected String |
getEffectiveEObjectType()
|
protected String |
getEffectiveFeatureMapWrapperInterface()
|
protected String |
getEffectiveListType()
|
protected String |
getEffectiveMapType()
|
String |
getEncoding(URI uri)
|
protected ExtendedMetaData |
getExtendedMetaData()
|
GenAnnotation |
getGenAnnotation(String source)
|
EList |
getGenAnnotations()
|
GenModel |
getGenModel()
|
protected String |
getImplClassName(String interfaceName)
|
protected String |
getImportedEffectiveFeatureMapWrapperClass()
|
protected String |
getImportedEffectiveFeatureMapWrapperInternalInterface()
|
protected String |
getImportedType(EClassifier eType,
boolean primitiveAsObject)
Returns the primitive or class name for the given EClassifier. |
protected ImportManager |
getImportManager()
|
protected Class |
getInstanceClass(EClassifier eType)
|
protected static Set |
getJavaLangTypes()
Deprecated. |
protected static Set |
getJavaReservedWords()
Deprecated. |
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 boolean |
isEffectiveSuppressEMFTypes()
|
protected static boolean |
isJavaUtilMapEntry(String name)
|
protected boolean |
isPrimitiveType(EClassifier eType)
|
boolean |
isReadOnly(URI uri)
|
protected List |
parseName(String sourceName,
char sourceSeparator)
Deprecated. in 2.1.0. Use CodeGenUtil.parseName(String, char) instead. |
void |
reconcileGenAnnotations(GenBase oldGenBase)
|
String |
safeName(String name)
|
protected void |
setImportManager(ImportManager importManager)
|
void |
setOverwriteable(URI uri)
|
String |
uncapName(String name)
|
String |
uncapPrefixedName(String name)
|
String |
uncapPrefixedName(String name,
boolean forceDifferent)
|
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 EList genAnnotations
Gen Annotations' containment reference list.
getGenAnnotations()protected static GenPackage ecoreGenPackage
protected static GenPackage xmlTypeGenPackage
protected static GenPackage xmlNamespaceGenPackage
protected static final GenBaseImpl.AnnotationFilter DEFAULT_ANNOTATION_FILTER
protected static final URI PLATFORM_RESOURCE_URI
protected static final URI EMPTY_URI
| Constructor Detail |
protected GenBaseImpl()
| Method Detail |
protected EClass eStaticClass()
eStaticClass in class EObjectImplpublic EList getGenAnnotations()
getGenAnnotations in interface GenBaseGenModelPackage.getGenBase_GenAnnotations(),
GenAnnotation.getGenBase()public GenAnnotation getGenAnnotation(String source)
getGenAnnotation in interface GenBase
public NotificationChain eInverseAdd(InternalEObject otherEnd,
int featureID,
NotificationChain msgs)
eInverseAdd in class BasicEObjectImpl
public NotificationChain eInverseRemove(InternalEObject otherEnd,
int featureID,
NotificationChain msgs)
eInverseRemove in class BasicEObjectImpl
public Object eGet(int featureID,
boolean resolve,
boolean coreType)
eGet in class BasicEObjectImpl
public void eSet(int featureID,
Object newValue)
eSet in class BasicEObjectImplpublic void eUnset(int featureID)
eUnset in class BasicEObjectImplpublic boolean eIsSet(int featureID)
eIsSet in class BasicEObjectImplpublic GenModel getGenModel()
getGenModel in interface GenBasepublic abstract String getName()
public String capName(String name)
capName in interface GenBasepublic String uncapName(String name)
uncapName in interface GenBasepublic String uncapPrefixedName(String name)
uncapPrefixedName in interface GenBase
public String uncapPrefixedName(String name,
boolean forceDifferent)
public String safeName(String name)
safeName in interface GenBaseprotected String getImplClassName(String interfaceName)
public boolean canGenerate()
canGenerate in interface GenBaseprotected boolean hasModelContribution()
public final void generate(IProgressMonitor progressMonitor)
generate in interface GenBasepublic final void gen(Monitor progressMonitor)
gen in interface GenBasepublic void generate(Monitor progressMonitor)
generate in interface GenBase
protected void generate(Monitor progressMonitor,
int style,
List pluginVariables,
String outputFilePath,
JETEmitter jetEmitter)
protected Monitor createMonitor(Monitor monitor,
int ticks)
protected void generate(Monitor progressMonitor,
int style,
List pluginVariables,
String outputFilePath,
GenBaseImpl.GIFEmitter gifEmitter,
String key)
protected void generate(Monitor progressMonitor,
int style,
List pluginVariables,
String outputFilePath,
GenBaseImpl.GIFEmitter gifEmitter,
String parentKey,
String childKey)
public void gen(Monitor progressMonitor,
int style,
List pluginVariables,
String targetDirectory,
String packageName,
String className,
JETEmitter jetEmitter)
protected void generate(Monitor progressMonitor,
int style,
List pluginVariables,
String targetDirectory,
String packageName,
String className,
JETEmitter jetEmitter)
protected void generate(Monitor progressMonitor,
int style,
List pluginVariables,
String targetDirectory,
String packageName,
String className,
JETEmitter jetEmitter,
Object[] arguments)
protected ImportManager getImportManager()
protected void setImportManager(ImportManager importManager)
protected String formatCode(String contents,
org.eclipse.jdt.core.formatter.CodeFormatter codeFormatter)
code formatting is enabled for this model, use
the specified JDT code formatter to format the given compilation unit contents. If no code formatter is specified,
one will be created.
public String format(String name,
char separator,
String prefix,
boolean includePrefix)
format(String, char, String, boolean, boolean) instead.
format in interface GenBase
protected String format(String name,
char separator,
String prefix,
boolean includePrefix,
boolean includeLeadingSeparator)
protected final List parseName(String sourceName,
char sourceSeparator)
CodeGenUtil.parseName(String, char) instead.
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 GenOperation findGenOperation(EOperation eOperation)
protected boolean isEffectiveSuppressEMFTypes()
protected String getEffectiveMapType()
protected String getEffectiveListType()
protected String getEffectiveEObjectType()
protected String getEffectiveFeatureMapWrapperInterface()
protected String getImportedEffectiveFeatureMapWrapperInternalInterface()
protected String getImportedEffectiveFeatureMapWrapperClass()
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 Set getJavaReservedWords()
protected static Set 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 List getAnnotationInfo(EModelElement eModelElement)
protected List getAnnotationInfo(EModelElement eModelElement,
GenBaseImpl.AnnotationFilter annotationFilter)
protected void appendAnnotationInfo(StringBuffer result,
EModelElement eModelElement)
protected void appendAnnotationInfo(StringBuffer result,
EModelElement eModelElement,
GenBaseImpl.AnnotationFilter annotationFilter)
protected void appendAnnotationInfo(StringBuffer result,
boolean qualified,
EModelElement eModelElement,
GenBaseImpl.AnnotationFilter annotationFilter)
protected static String escapeString(String s,
String additionalCharactersToEscape)
protected void appendLineBreak(StringBuffer result)
protected void appendModelSetting(StringBuffer result,
String qualifier,
String name,
String value)
protected void appendModelSetting(StringBuffer result,
String name,
String value)
protected static boolean isJavaUtilMapEntry(String name)
protected static boolean isBlank(String string)
public boolean canGenerateEdit()
canGenerateEdit in interface GenBasepublic final void generateEdit(IProgressMonitor progressMonitor)
generateEdit in interface GenBasepublic final void genEdit(Monitor progressMonitor)
genEdit in interface GenBasepublic void generateEdit(Monitor progressMonitor)
generateEdit in interface GenBasepublic boolean canGenerateEditor()
canGenerateEditor in interface GenBasepublic final void generateEditor(IProgressMonitor progressMonitor)
generateEditor in interface GenBasepublic final void genEditor(Monitor progressMonitor)
genEditor in interface GenBasepublic void generateEditor(Monitor progressMonitor)
generateEditor in interface GenBasepublic boolean canGenerateSchema()
canGenerateSchema in interface GenBasepublic final void generateSchema(IProgressMonitor progressMonitor)
generateSchema in interface GenBasepublic final void genSchema(Monitor progressMonitor)
genSchema in interface GenBasepublic void generateSchema(Monitor progressMonitor)
generateSchema in interface GenBasepublic boolean canGenerateTests()
canGenerateTests in interface GenBasepublic final void generateTests(IProgressMonitor progressMonitor)
generateTests in interface GenBasepublic final void genTests(Monitor progressMonitor)
genTests in interface GenBasepublic void generateTests(Monitor progressMonitor)
generateTests in interface GenBase
public String eURIFragmentSegment(EStructuralFeature eStructuralFeature,
EObject eObject)
InternalEObjecteObjectForURIFragmentSegment,
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 InternalEObjecteURIFragmentSegment in class BasicEObjectImplpublic EObject eObjectForURIFragmentSegment(String uriFragmentSegment)
InternalEObject
The fragment segment encoding will typically be of the form returned by eURIFragmentSegment.
eObjectForURIFragmentSegment in interface InternalEObjecteObjectForURIFragmentSegment in class BasicEObjectImplprotected static String unicodeEscapeEncode(String unicode)
protected String getDocumentation()
public boolean hasDocumentation()
hasDocumentation in interface GenBasepublic String getDocumentation(String indentation)
getDocumentation in interface GenBase
protected String indent(String text,
String indentation)
protected ExtendedMetaData getExtendedMetaData()
protected void addNonDuplicates(Collection target,
Collection source,
Set noDupSet)
public boolean findOrCreateContainer(Monitor progressMonitor,
int style,
List pluginVariables,
URI outputURI,
boolean forceStyle)
public boolean exists(URI uri)
public boolean isReadOnly(URI uri)
public InputStream createInputStream(URI uri)
throws Exception
Exception
public OutputStream createOutputStream(URI uri)
throws Exception
Exception
public String getContents(URI uri)
throws Exception
Exceptionpublic String getEncoding(URI uri)
public void setOverwriteable(URI uri)
throws Exception
Exceptionpublic EModelElement getEcoreModelElement()
getEcoreModelElement in interface GenBasepublic void reconcileGenAnnotations(GenBase oldGenBase)
|
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 | ||||||||||