|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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
public abstract class 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
Deprecated. In EMF 2.2, this moved to GIFEmitter .
This copy will be removed after 2.2. |
protected static class |
GenBaseImpl.EclipseUtil
Deprecated. In EMF 2.2, a GeneratorAdapter should be used to
implement code generation. AbstractGeneratorAdapter provides
an equivalents to the methods in this class. This class will be removed after 2.2. |
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
Deprecated. In EMF 2.2, this moved to GIFEmitter .
This copy will be removed after 2.2. |
protected class |
GenBaseImpl.UniqueNameHelper
|
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
---|
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl |
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
---|
BasicNotifierImpl.EAdapterList<E extends java.lang.Object & Adapter> |
Nested classes/interfaces inherited from interface 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
Deprecated. in EMF 2.2 |
protected EList<GenAnnotation> |
genAnnotations
The cached value of the ' Gen Annotations ' containment reference list |
protected static URI |
PLATFORM_RESOURCE_URI
Deprecated. in EMF 2.2 |
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
|
addNonDuplicates(java.util.Collection<T> target,
java.util.Collection<? extends T> source,
java.util.Set<T> noDupSet)
|
|
protected void |
appendAnnotationInfo(java.lang.StringBuffer result,
boolean qualified,
EModelElement eModelElement,
GenBaseImpl.AnnotationFilter annotationFilter)
|
|
protected void |
appendAnnotationInfo(java.lang.StringBuffer result,
EModelElement eModelElement)
|
|
protected void |
appendAnnotationInfo(java.lang.StringBuffer result,
EModelElement eModelElement,
GenBaseImpl.AnnotationFilter annotationFilter)
|
|
protected void |
appendLineBreak(java.lang.StringBuffer result)
|
|
protected void |
appendModelSetting(java.lang.StringBuffer result,
java.lang.String name,
java.lang.String value)
|
|
protected void |
appendModelSetting(java.lang.StringBuffer result,
java.lang.String qualifier,
java.lang.String name,
java.lang.String value)
|
|
boolean |
canGenerate()
|
|
boolean |
canGenerateEdit()
|
|
boolean |
canGenerateEditor()
|
|
boolean |
canGenerateSchema()
Deprecated. In EMF 2.2, schema generation is properly done via a model exporter. This method will be removed after 2.2. |
|
boolean |
canGenerateTests()
|
|
java.lang.String |
capName(java.lang.String name)
|
|
protected java.util.List<GenClass> |
collectGenClasses(java.util.List<EClass> eClasses,
GenBaseImpl.GenClassFilter filter)
Iterate over the specified eClasses list, finding the GenClass corresponding to each EClass. |
|
protected java.util.List<java.lang.String> |
collectGenConstraints(java.util.List<? extends GenClassifier> genClassifiers,
java.util.List<java.lang.String> 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 java.util.List<GenFeature> |
collectGenFeatures(java.util.List<GenClass> genClasses,
java.util.List<GenFeature> 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 java.util.List<GenOperation> |
collectGenOperations(GenClass context,
java.util.List<GenClass> genClasses,
java.util.List<GenOperation> 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. |
|
java.io.InputStream |
createInputStream(URI uri)
Deprecated. In EMF 2.2, a GeneratorAdapter should be used to
implement code generation. AbstractGeneratorAdapter provides
an equivalent to this method. This method will be removed after 2.2. |
|
protected Monitor |
createMonitor(Monitor monitor,
int ticks)
Deprecated. In EMF 2.2, a GeneratorAdapter should be used to
implement code generation. AbstractGeneratorAdapter provides
an equivalent to this method. This method will be removed after 2.2. |
|
java.io.OutputStream |
createOutputStream(URI uri)
Deprecated. In EMF 2.2, a GeneratorAdapter should be used to
implement code generation. AbstractGeneratorAdapter provides
an equivalent to this method. This method will be removed after 2.2. |
|
java.lang.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(java.lang.String uriFragmentSegment)
Returns the object resolved by the fragment segment. |
|
protected static java.lang.String |
escapeString(java.lang.String s,
java.lang.String additionalCharactersToEscape)
|
|
void |
eSet(int featureID,
java.lang.Object newValue)
|
|
protected EClass |
eStaticClass()
|
|
void |
eUnset(int featureID)
|
|
java.lang.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)
Deprecated. In EMF 2.2, a GeneratorAdapter should be used to
implement code generation. AbstractGeneratorAdapter provides
an equivalent to this method. This method will be removed after 2.2. |
|
protected java.util.List<GenClass> |
filterGenClasses(java.util.List<GenClass> 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,
java.util.List pluginVariables,
URI outputURI,
boolean forceStyle)
Deprecated. In EMF 2.2, a GeneratorAdapter should be used to
implement code generation. AbstractGeneratorAdapter provides
an equivalent to this method. This method will be removed after 2.2. |
|
java.lang.String |
format(java.lang.String name,
char separator,
java.lang.String prefix,
boolean includePrefix)
Deprecated. in 2.2. Please use format(String, char, String, boolean, boolean) instead. |
|
protected java.lang.String |
format(java.lang.String name,
char separator,
java.lang.String prefix,
boolean includePrefix,
boolean includeLeadingSeparator)
|
|
protected java.lang.String |
formatCode(java.lang.String contents,
org.eclipse.jdt.core.formatter.CodeFormatter codeFormatter)
Deprecated. In EMF 2.2, a GeneratorAdapter should be used to
implement code generation. AbstractGeneratorAdapter provides
an equivalent to this method. This method will be removed after 2.2. |
|
void |
gen(Monitor progressMonitor)
Deprecated. In EMF 2.2, a Generator should be used to generate code.
This method will be removed after 2.2. |
|
void |
gen(Monitor progressMonitor,
int style,
java.util.List pluginVariables,
java.lang.String targetDirectory,
java.lang.String packageName,
java.lang.String className,
JETEmitter jetEmitter)
Deprecated. In EMF 2.2, a GeneratorAdapter should be used to
implement code generation. AbstractGeneratorAdapter provides
an equivalent to this method. This method will be removed after 2.2. |
|
void |
genEdit(Monitor progressMonitor)
Deprecated. In EMF 2.2, a Generator should be used to generate code.
This method will be removed after 2.2. |
|
void |
genEditor(Monitor progressMonitor)
Deprecated. In EMF 2.2, a Generator should be used to generate code.
This method will be removed after 2.2. |
|
void |
generate(IProgressMonitor progressMonitor)
Deprecated. In EMF 2.2, a Generator should be used to generate code.
This method will be removed after 2.2. |
|
void |
generate(Monitor progressMonitor)
Deprecated. In EMF 2.2, a Generator should be used to generate code.
This method will be removed after 2.2. |
|
protected void |
generate(Monitor progressMonitor,
int style,
java.util.List pluginVariables,
java.lang.String outputFilePath,
GenBaseImpl.GIFEmitter gifEmitter,
java.lang.String key)
Deprecated. In EMF 2.2, a GeneratorAdapter should be used to
implement code generation. AbstractGeneratorAdapter provides
an equivalent to this method. This method will be removed after 2.2. |
|
protected void |
generate(Monitor progressMonitor,
int style,
java.util.List pluginVariables,
java.lang.String outputFilePath,
GenBaseImpl.GIFEmitter gifEmitter,
java.lang.String parentKey,
java.lang.String childKey)
Deprecated. In EMF 2.2, a GeneratorAdapter should be used to
implement code generation. AbstractGeneratorAdapter provides
an equivalent to this method. This method will be removed after 2.2. |
|
protected void |
generate(Monitor progressMonitor,
int style,
java.util.List pluginVariables,
java.lang.String outputFilePath,
JETEmitter jetEmitter)
Deprecated. In EMF 2.2, a GeneratorAdapter should be used to
implement code generation. AbstractGeneratorAdapter provides
an equivalent to this method. This method will be removed after 2.2. |
|
protected void |
generate(Monitor progressMonitor,
int style,
java.util.List pluginVariables,
java.lang.String targetDirectory,
java.lang.String packageName,
java.lang.String className,
JETEmitter jetEmitter)
Deprecated. In EMF 2.2, a GeneratorAdapter should be used to
implement code generation. AbstractGeneratorAdapter provides
an equivalent to this method. This method will be removed after 2.2. |
|
protected void |
generate(Monitor progressMonitor,
int style,
java.util.List pluginVariables,
java.lang.String targetDirectory,
java.lang.String packageName,
java.lang.String className,
JETEmitter jetEmitter,
java.lang.Object[] arguments)
Deprecated. In EMF 2.2, a GeneratorAdapter should be used to
implement code generation. AbstractGeneratorAdapter provides
an equivalent to this method. This method will be removed after 2.2. |
|
void |
generateEdit(IProgressMonitor progressMonitor)
Deprecated. In EMF 2.2, a Generator should be used to generate code.
This method will be removed after 2.2. |
|
void |
generateEdit(Monitor progressMonitor)
Deprecated. In EMF 2.2, a Generator should be used to generate code.
This method will be removed after 2.2. |
|
void |
generateEditor(IProgressMonitor progressMonitor)
Deprecated. In EMF 2.2, a Generator should be used to generate code.
This method will be removed after 2.2. |
|
void |
generateEditor(Monitor progressMonitor)
Deprecated. In EMF 2.2, a Generator should be used to generate code.
This method will be removed after 2.2. |
|
void |
generateSchema(IProgressMonitor progressMonitor)
Deprecated. In EMF 2.2, schema generation is properly done via a model exporter. This method will be removed after 2.2. |
|
void |
generateSchema(Monitor progressMonitor)
Deprecated. In EMF 2.2, schema generation is properly done via a model exporter. This method will be removed after 2.2. |
|
void |
generateTests(IProgressMonitor progressMonitor)
Deprecated. In EMF 2.2, a Generator should be used to generate code.
This method will be removed after 2.2. |
|
void |
generateTests(Monitor progressMonitor)
Deprecated. In EMF 2.2, a Generator should be used to generate code.
This method will be removed after 2.2. |
|
void |
genSchema(Monitor progressMonitor)
Deprecated. In EMF 2.2, schema generation is properly done via a model exporter. This method will be removed after 2.2. |
|
void |
genTests(Monitor progressMonitor)
Deprecated. In EMF 2.2, a Generator should be used to generate code.
This method will be removed after 2.2. |
|
protected java.util.List<GenPackage> |
getAllGenPackages()
|
|
protected java.util.List<java.lang.String> |
getAnnotationInfo(EModelElement eModelElement)
|
|
protected java.util.List<java.lang.String> |
getAnnotationInfo(EModelElement eModelElement,
GenBaseImpl.AnnotationFilter annotationFilter)
|
|
protected EClassifier |
getBoundType(EGenericType eGenericType)
|
|
java.lang.String |
getContents(URI uri)
Deprecated. In EMF 2.2, a GeneratorAdapter should be used to
implement code generation. AbstractGeneratorAdapter provides
an equivalent to this method. This method will be removed after 2.2. |
|
protected java.lang.String |
getCopyright(boolean includeGenModelCopyrightTextAsDefault)
|
|
java.lang.String |
getCopyright(java.lang.String indentation)
|
|
protected java.lang.String |
getDocumentation()
|
|
java.lang.String |
getDocumentation(java.lang.String indentation)
|
|
EModelElement |
getEcoreModelElement()
|
|
protected java.lang.String |
getEcoreType(EGenericType eGenericType)
|
|
protected GenJDKLevel |
getEffectiveComplianceLevel()
|
|
protected java.lang.String |
getEffectiveEObjectType()
|
|
protected java.lang.String |
getEffectiveFeatureMapWrapperInterface()
|
|
protected java.lang.String |
getEffectiveListType()
|
|
protected java.lang.String |
getEffectiveListType(GenClass context,
EClassifier eType)
|
|
protected java.lang.String |
getEffectiveListType(GenClass context,
EGenericType eGenericType)
|
|
protected java.lang.String |
getEffectiveMapEntryType()
|
|
protected java.lang.String |
getEffectiveMapEntryType(GenClass context,
EGenericType eGenericType,
GenClass genClass)
|
|
protected java.lang.String |
getEffectiveMapEntryType(GenClass context,
GenClass genClass)
|
|
protected java.lang.String |
getEffectiveMapType()
|
|
protected java.lang.String |
getEffectiveMapType(GenClass context,
EGenericType eGenericType,
GenClass genClass)
|
|
protected java.lang.String |
getEffectiveMapType(GenClass context,
GenClass genClass)
|
|
java.lang.String |
getEncoding(URI uri)
Deprecated. In EMF 2.2, a GeneratorAdapter should be used to
implement code generation. AbstractGeneratorAdapter provides
an equivalent to this method. This method will be removed after 2.2. |
|
protected ExtendedMetaData |
getExtendedMetaData()
|
|
GenAnnotation |
getGenAnnotation(java.lang.String source)
|
|
EList<GenAnnotation> |
getGenAnnotations()
|
|
GenModel |
getGenModel()
|
|
protected java.lang.String |
getImplClassName(java.lang.String name)
|
|
protected java.lang.String |
getImportedEffectiveFeatureMapWrapperClass()
|
|
protected java.lang.String |
getImportedEffectiveFeatureMapWrapperInternalInterface()
|
|
protected java.lang.String |
getImportedType(GenClass context,
EClassifier eType,
boolean primitiveAsObject)
Returns the primitive or class name for the given EClassifier. |
|
protected java.lang.String |
getImportedType(GenClass context,
EClassifier eType,
boolean primitiveAsObject,
boolean erased)
|
|
protected java.lang.String |
getImportedType(GenClass context,
EGenericType eGenericType,
boolean primitiveAsObject)
Returns the primitive or class name for the given EClassifier. |
|
protected ImportManager |
getImportManager()
|
|
protected java.lang.Class<?> |
getInstanceClass(EClassifier eType)
|
|
protected java.lang.String |
getInterfaceName(java.lang.String name)
|
|
protected static java.util.Set |
getJavaLangTypes()
Deprecated. |
|
protected static java.util.Set |
getJavaReservedWords()
Deprecated. |
|
java.lang.String |
getModelInfo()
|
|
abstract java.lang.String |
getName()
|
|
protected java.lang.String |
getPrimitiveDefault(EClassifier eType)
|
|
protected java.lang.String |
getPrimitiveObjectType(EClassifier eType)
|
|
protected java.lang.String |
getType(GenClass context,
EClassifier eType,
boolean primitiveAsObject)
Returns the primitive or qualified class name for the given EClassifier. |
|
protected java.lang.String |
getType(GenClass context,
EClassifier eType,
boolean primitiveAsObject,
boolean erased)
|
|
protected java.lang.String |
getType(GenClass context,
EGenericType eGenericType,
boolean primitiveAsObject)
Returns the primitive or qualified class name for the given EClassifier. |
|
protected java.lang.String |
getTypeArgument(GenClass context,
EGenericType eGenericType,
boolean isImported,
boolean isErased)
|
|
protected java.lang.String |
getTypeArguments(GenClass context,
java.util.List<EGenericType> typeArguments,
boolean isImported)
|
|
protected java.util.List<GenClass> |
getTypeGenClasses(EClassifier eType,
GenPackage firstGenPackage,
java.util.List<GenPackage> 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 |
hasCopyright()
|
|
boolean |
hasDocumentation()
|
|
protected boolean |
hasModelContribution()
|
|
protected boolean |
hasReferenceToClassifierWithInstanceTypeName(EGenericType eGenericType)
|
|
protected boolean |
hasReferenceToClassifierWithInstanceTypeName(java.util.List<? extends EGenericType> eGenericTypes)
|
|
protected java.lang.String |
indent(java.lang.String text,
java.lang.String indentation)
|
|
protected static boolean |
isBlank(java.lang.String string)
|
|
protected boolean |
isEffectiveSuppressEMFTypes()
|
|
protected static boolean |
isJavaUtilMapEntry(java.lang.String name)
|
|
protected boolean |
isPrimitiveType(EClassifier eType)
|
|
boolean |
isReadOnly(URI uri)
Deprecated. In EMF 2.2, a GeneratorAdapter should be used to
implement code generation. AbstractGeneratorAdapter provides
an equivalent to this method. This method will be removed after 2.2. |
|
protected java.util.List |
parseName(java.lang.String sourceName,
char sourceSeparator)
Deprecated. in 2.1.0. Use CodeGenUtil.parseName(String, char) instead. |
|
void |
reconcileGenAnnotations(GenBase oldGenBase)
|
|
java.lang.String |
safeName(java.lang.String name)
|
|
protected void |
setImportManager(ImportManager importManager)
|
|
void |
setOverwriteable(URI uri)
Deprecated. In EMF 2.2, a GeneratorAdapter should be used to
implement code generation. AbstractGeneratorAdapter provides
an equivalent to this method. This method will be removed after 2.2. |
|
java.lang.String |
uncapName(java.lang.String name)
|
|
java.lang.String |
uncapPrefixedName(java.lang.String name)
|
|
java.lang.String |
uncapPrefixedName(java.lang.String name,
boolean forceDifferent)
|
|
protected static java.lang.String |
unicodeEscapeEncode(java.lang.String unicode)
Deprecated. In EMF 2.2, this moved to CodeGenUtil .
This copy will be removed after 2.2. |
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<GenAnnotation> 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
@Deprecated protected static final URI PLATFORM_RESOURCE_URI
@Deprecated protected static final URI EMPTY_URI
Constructor Detail |
---|
protected GenBaseImpl()
Method Detail |
---|
protected EClass eStaticClass()
eStaticClass
in class EObjectImpl
public EList<GenAnnotation> getGenAnnotations()
getGenAnnotations
in interface GenBase
GenModelPackage.getGenBase_GenAnnotations()
,
GenAnnotation.getGenBase()
public GenAnnotation getGenAnnotation(java.lang.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 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface InternalEObject
eGet
in class BasicEObjectImpl
InternalEObject.eGet(EStructuralFeature, boolean, boolean)
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface InternalEObject
eSet
in class BasicEObjectImpl
EObject.eSet(EStructuralFeature, Object)
public void eUnset(int featureID)
eUnset
in interface InternalEObject
eUnset
in class BasicEObjectImpl
EObject.eUnset(EStructuralFeature)
public boolean eIsSet(int featureID)
eIsSet
in interface InternalEObject
eIsSet
in class BasicEObjectImpl
EObject.eIsSet(EStructuralFeature)
public GenModel getGenModel()
getGenModel
in interface GenBase
public abstract java.lang.String getName()
public java.lang.String capName(java.lang.String name)
capName
in interface GenBase
public java.lang.String uncapName(java.lang.String name)
uncapName
in interface GenBase
public java.lang.String uncapPrefixedName(java.lang.String name)
uncapPrefixedName
in interface GenBase
public java.lang.String uncapPrefixedName(java.lang.String name, boolean forceDifferent)
public java.lang.String safeName(java.lang.String name)
safeName
in interface GenBase
protected java.lang.String getInterfaceName(java.lang.String name)
protected java.lang.String getImplClassName(java.lang.String name)
public boolean canGenerate()
canGenerate
in interface GenBase
protected boolean hasModelContribution()
@Deprecated public final void generate(IProgressMonitor progressMonitor)
Generator
should be used to generate code.
This method will be removed after 2.2.
generate
in interface GenBase
@Deprecated public final void gen(Monitor progressMonitor)
Generator
should be used to generate code.
This method will be removed after 2.2.
gen
in interface GenBase
@Deprecated public void generate(Monitor progressMonitor)
Generator
should be used to generate code.
This method will be removed after 2.2.
generate
in interface GenBase
@Deprecated protected void generate(Monitor progressMonitor, int style, java.util.List pluginVariables, java.lang.String outputFilePath, JETEmitter jetEmitter)
GeneratorAdapter
should be used to
implement code generation. AbstractGeneratorAdapter
provides
an equivalent to this method. This method will be removed after 2.2.
@Deprecated protected Monitor createMonitor(Monitor monitor, int ticks)
GeneratorAdapter
should be used to
implement code generation. AbstractGeneratorAdapter
provides
an equivalent to this method. This method will be removed after 2.2.
@Deprecated protected void generate(Monitor progressMonitor, int style, java.util.List pluginVariables, java.lang.String outputFilePath, GenBaseImpl.GIFEmitter gifEmitter, java.lang.String key)
GeneratorAdapter
should be used to
implement code generation. AbstractGeneratorAdapter
provides
an equivalent to this method. This method will be removed after 2.2.
@Deprecated protected void generate(Monitor progressMonitor, int style, java.util.List pluginVariables, java.lang.String outputFilePath, GenBaseImpl.GIFEmitter gifEmitter, java.lang.String parentKey, java.lang.String childKey)
GeneratorAdapter
should be used to
implement code generation. AbstractGeneratorAdapter
provides
an equivalent to this method. This method will be removed after 2.2.
@Deprecated public void gen(Monitor progressMonitor, int style, java.util.List pluginVariables, java.lang.String targetDirectory, java.lang.String packageName, java.lang.String className, JETEmitter jetEmitter)
GeneratorAdapter
should be used to
implement code generation. AbstractGeneratorAdapter
provides
an equivalent to this method. This method will be removed after 2.2.
@Deprecated protected void generate(Monitor progressMonitor, int style, java.util.List pluginVariables, java.lang.String targetDirectory, java.lang.String packageName, java.lang.String className, JETEmitter jetEmitter)
GeneratorAdapter
should be used to
implement code generation. AbstractGeneratorAdapter
provides
an equivalent to this method. This method will be removed after 2.2.
@Deprecated protected void generate(Monitor progressMonitor, int style, java.util.List pluginVariables, java.lang.String targetDirectory, java.lang.String packageName, java.lang.String className, JETEmitter jetEmitter, java.lang.Object[] arguments)
GeneratorAdapter
should be used to
implement code generation. AbstractGeneratorAdapter
provides
an equivalent to this method. This method will be removed after 2.2.
protected ImportManager getImportManager()
protected void setImportManager(ImportManager importManager)
@Deprecated protected java.lang.String formatCode(java.lang.String contents, org.eclipse.jdt.core.formatter.CodeFormatter codeFormatter)
GeneratorAdapter
should be used to
implement code generation. AbstractGeneratorAdapter
provides
an equivalent to this method. This method will be removed after 2.2.
@Deprecated public java.lang.String format(java.lang.String name, char separator, java.lang.String prefix, boolean includePrefix)
format(String, char, String, boolean, boolean)
instead.
format
in interface GenBase
protected java.lang.String format(java.lang.String name, char separator, java.lang.String prefix, boolean includePrefix, boolean includeLeadingSeparator)
@Deprecated protected final java.util.List parseName(java.lang.String sourceName, char sourceSeparator)
CodeGenUtil.parseName(String, char)
instead.
protected java.util.List<GenPackage> 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 GenJDKLevel getEffectiveComplianceLevel()
protected boolean isEffectiveSuppressEMFTypes()
protected java.lang.String getEffectiveMapType(GenClass context, EGenericType eGenericType, GenClass genClass)
protected java.lang.String getEffectiveMapType(GenClass context, GenClass genClass)
protected java.lang.String getEffectiveMapType()
protected java.lang.String getEffectiveMapEntryType(GenClass context, EGenericType eGenericType, GenClass genClass)
protected java.lang.String getEffectiveMapEntryType(GenClass context, GenClass genClass)
protected java.lang.String getEffectiveMapEntryType()
protected java.lang.String getEffectiveListType(GenClass context, EGenericType eGenericType)
protected java.lang.String getEffectiveListType(GenClass context, EClassifier eType)
protected java.lang.String getEffectiveListType()
protected java.lang.String getEffectiveEObjectType()
protected java.lang.String getEffectiveFeatureMapWrapperInterface()
protected java.lang.String getImportedEffectiveFeatureMapWrapperInternalInterface()
protected java.lang.String getImportedEffectiveFeatureMapWrapperClass()
protected java.lang.Class<?> getInstanceClass(EClassifier eType)
protected boolean isPrimitiveType(EClassifier eType)
protected java.lang.String getPrimitiveObjectType(EClassifier eType)
protected java.lang.String getPrimitiveDefault(EClassifier eType)
protected boolean hasReferenceToClassifierWithInstanceTypeName(java.util.List<? extends EGenericType> eGenericTypes)
protected boolean hasReferenceToClassifierWithInstanceTypeName(EGenericType eGenericType)
protected java.lang.String getEcoreType(EGenericType eGenericType)
protected java.lang.String getType(GenClass context, EClassifier eType, boolean primitiveAsObject)
protected java.lang.String getType(GenClass context, EClassifier eType, boolean primitiveAsObject, boolean erased)
protected java.lang.String getImportedType(GenClass context, EGenericType eGenericType, boolean primitiveAsObject)
protected java.lang.String getType(GenClass context, EGenericType eGenericType, boolean primitiveAsObject)
protected java.lang.String getImportedType(GenClass context, EClassifier eType, boolean primitiveAsObject)
protected java.lang.String getImportedType(GenClass context, EClassifier eType, boolean primitiveAsObject, boolean erased)
protected java.util.List<GenClass> getTypeGenClasses(EClassifier eType, GenPackage firstGenPackage, java.util.List<GenPackage> genPackages, int max)
@Deprecated protected static java.util.Set getJavaReservedWords()
@Deprecated protected static java.util.Set getJavaLangTypes()
protected java.util.List<GenClass> filterGenClasses(java.util.List<GenClass> genClasses, GenBaseImpl.GenClassFilter filter)
protected java.util.List<GenClass> collectGenClasses(java.util.List<EClass> eClasses, GenBaseImpl.GenClassFilter filter)
protected java.util.List<GenFeature> collectGenFeatures(java.util.List<GenClass> genClasses, java.util.List<GenFeature> genFeatures, GenBaseImpl.GenFeatureFilter filter)
protected java.util.List<GenOperation> collectGenOperations(GenClass context, java.util.List<GenClass> genClasses, java.util.List<GenOperation> genOperations, GenBaseImpl.GenOperationFilter filter)
protected java.util.List<java.lang.String> collectGenConstraints(java.util.List<? extends GenClassifier> genClassifiers, java.util.List<java.lang.String> genConstraints, GenBaseImpl.GenConstraintFilter filter)
public java.lang.String getModelInfo()
protected java.util.List<java.lang.String> getAnnotationInfo(EModelElement eModelElement)
protected java.util.List<java.lang.String> getAnnotationInfo(EModelElement eModelElement, GenBaseImpl.AnnotationFilter annotationFilter)
protected void appendAnnotationInfo(java.lang.StringBuffer result, EModelElement eModelElement)
protected void appendAnnotationInfo(java.lang.StringBuffer result, EModelElement eModelElement, GenBaseImpl.AnnotationFilter annotationFilter)
protected void appendAnnotationInfo(java.lang.StringBuffer result, boolean qualified, EModelElement eModelElement, GenBaseImpl.AnnotationFilter annotationFilter)
protected static java.lang.String escapeString(java.lang.String s, java.lang.String additionalCharactersToEscape)
protected void appendLineBreak(java.lang.StringBuffer result)
protected void appendModelSetting(java.lang.StringBuffer result, java.lang.String qualifier, java.lang.String name, java.lang.String value)
protected void appendModelSetting(java.lang.StringBuffer result, java.lang.String name, java.lang.String value)
protected static boolean isJavaUtilMapEntry(java.lang.String name)
protected static boolean isBlank(java.lang.String string)
public boolean canGenerateEdit()
canGenerateEdit
in interface GenBase
@Deprecated public final void generateEdit(IProgressMonitor progressMonitor)
Generator
should be used to generate code.
This method will be removed after 2.2.
generateEdit
in interface GenBase
@Deprecated public final void genEdit(Monitor progressMonitor)
Generator
should be used to generate code.
This method will be removed after 2.2.
genEdit
in interface GenBase
@Deprecated public void generateEdit(Monitor progressMonitor)
Generator
should be used to generate code.
This method will be removed after 2.2.
generateEdit
in interface GenBase
public boolean canGenerateEditor()
canGenerateEditor
in interface GenBase
@Deprecated public final void generateEditor(IProgressMonitor progressMonitor)
Generator
should be used to generate code.
This method will be removed after 2.2.
generateEditor
in interface GenBase
@Deprecated public final void genEditor(Monitor progressMonitor)
Generator
should be used to generate code.
This method will be removed after 2.2.
genEditor
in interface GenBase
@Deprecated public void generateEditor(Monitor progressMonitor)
Generator
should be used to generate code.
This method will be removed after 2.2.
generateEditor
in interface GenBase
@Deprecated public boolean canGenerateSchema()
canGenerateSchema
in interface GenBase
@Deprecated public final void generateSchema(IProgressMonitor progressMonitor)
generateSchema
in interface GenBase
@Deprecated public final void genSchema(Monitor progressMonitor)
genSchema
in interface GenBase
@Deprecated public void generateSchema(Monitor progressMonitor)
generateSchema
in interface GenBase
public boolean canGenerateTests()
canGenerateTests
in interface GenBase
@Deprecated public final void generateTests(IProgressMonitor progressMonitor)
Generator
should be used to generate code.
This method will be removed after 2.2.
generateTests
in interface GenBase
@Deprecated public final void genTests(Monitor progressMonitor)
Generator
should be used to generate code.
This method will be removed after 2.2.
genTests
in interface GenBase
@Deprecated public void generateTests(Monitor progressMonitor)
Generator
should be used to generate code.
This method will be removed after 2.2.
generateTests
in interface GenBase
public java.lang.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
eStructuralFeature
- the feature relating the given object to this object, or null
.eObject
- the object to be identified.
public EObject eObjectForURIFragmentSegment(java.lang.String uriFragmentSegment)
InternalEObject
The fragment segment encoding will typically be of the form returned by eURIFragmentSegment
.
eObjectForURIFragmentSegment
in interface InternalEObject
eObjectForURIFragmentSegment
in class BasicEObjectImpl
uriFragmentSegment
- a fragment segment.
@Deprecated protected static java.lang.String unicodeEscapeEncode(java.lang.String unicode)
CodeGenUtil
.
This copy will be removed after 2.2.
protected java.lang.String getDocumentation()
public boolean hasDocumentation()
hasDocumentation
in interface GenBase
public java.lang.String getDocumentation(java.lang.String indentation)
getDocumentation
in interface GenBase
protected java.lang.String getCopyright(boolean includeGenModelCopyrightTextAsDefault)
public boolean hasCopyright()
hasCopyright
in interface GenBase
public java.lang.String getCopyright(java.lang.String indentation)
getCopyright
in interface GenBase
protected java.lang.String indent(java.lang.String text, java.lang.String indentation)
protected ExtendedMetaData getExtendedMetaData()
protected <T> void addNonDuplicates(java.util.Collection<T> target, java.util.Collection<? extends T> source, java.util.Set<T> noDupSet)
@Deprecated public boolean findOrCreateContainer(Monitor progressMonitor, int style, java.util.List pluginVariables, URI outputURI, boolean forceStyle)
GeneratorAdapter
should be used to
implement code generation. AbstractGeneratorAdapter
provides
an equivalent to this method. This method will be removed after 2.2.
@Deprecated public boolean exists(URI uri)
GeneratorAdapter
should be used to
implement code generation. AbstractGeneratorAdapter
provides
an equivalent to this method. This method will be removed after 2.2.
@Deprecated public boolean isReadOnly(URI uri)
GeneratorAdapter
should be used to
implement code generation. AbstractGeneratorAdapter
provides
an equivalent to this method. This method will be removed after 2.2.
@Deprecated public java.io.InputStream createInputStream(URI uri) throws java.lang.Exception
GeneratorAdapter
should be used to
implement code generation. AbstractGeneratorAdapter
provides
an equivalent to this method. This method will be removed after 2.2.
java.lang.Exception
@Deprecated public java.io.OutputStream createOutputStream(URI uri) throws java.lang.Exception
GeneratorAdapter
should be used to
implement code generation. AbstractGeneratorAdapter
provides
an equivalent to this method. This method will be removed after 2.2.
java.lang.Exception
@Deprecated public java.lang.String getContents(URI uri) throws java.lang.Exception
GeneratorAdapter
should be used to
implement code generation. AbstractGeneratorAdapter
provides
an equivalent to this method. This method will be removed after 2.2.
java.lang.Exception
@Deprecated public java.lang.String getEncoding(URI uri)
GeneratorAdapter
should be used to
implement code generation. AbstractGeneratorAdapter
provides
an equivalent to this method. This method will be removed after 2.2.
@Deprecated public void setOverwriteable(URI uri) throws java.lang.Exception
GeneratorAdapter
should be used to
implement code generation. AbstractGeneratorAdapter
provides
an equivalent to this method. This method will be removed after 2.2.
java.lang.Exception
public EModelElement getEcoreModelElement()
getEcoreModelElement
in interface GenBase
public void reconcileGenAnnotations(GenBase oldGenBase)
protected java.lang.String getTypeArguments(GenClass context, java.util.List<EGenericType> typeArguments, boolean isImported)
protected EClassifier getBoundType(EGenericType eGenericType)
protected java.lang.String getTypeArgument(GenClass context, EGenericType eGenericType, boolean isImported, boolean isErased)
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |