Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Taal2012-11-20 06:44:40 -0500
committerMartin Taal2012-11-20 06:44:40 -0500
commit6724f07ab16480c61402dd5566c50e17c9fcad7a (patch)
treeb55a7d92addbbc1d56d4a56e963175c23f51d136 /generator/org.eclipse.emf.texo.orm
parente321d9948764a04f0ac30e5ceabc318cbadfae38 (diff)
downloadorg.eclipse.emf.texo-6724f07ab16480c61402dd5566c50e17c9fcad7a.tar.gz
org.eclipse.emf.texo-6724f07ab16480c61402dd5566c50e17c9fcad7a.tar.xz
org.eclipse.emf.texo-6724f07ab16480c61402dd5566c50e17c9fcad7a.zip
Fixes issue [394640] Correctly support multitenant JPA annotation
Diffstat (limited to 'generator/org.eclipse.emf.texo.orm')
-rw-r--r--generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotations/model/orm/impl/MultitenantImpl.java435
-rw-r--r--generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotator/ORMJavaAnnotationGenerator.java28
2 files changed, 245 insertions, 218 deletions
diff --git a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotations/model/orm/impl/MultitenantImpl.java b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotations/model/orm/impl/MultitenantImpl.java
index 7d6acca0..9eca10e6 100644
--- a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotations/model/orm/impl/MultitenantImpl.java
+++ b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotations/model/orm/impl/MultitenantImpl.java
@@ -6,257 +6,270 @@
*/
package org.eclipse.emf.texo.orm.annotations.model.orm.impl;
+import java.util.ArrayList;
import java.util.Collection;
+import java.util.List;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
-
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
-
import org.eclipse.emf.texo.orm.annotations.model.orm.Multitenant;
import org.eclipse.emf.texo.orm.annotations.model.orm.MultitenantType;
import org.eclipse.emf.texo.orm.annotations.model.orm.OrmPackage;
import org.eclipse.emf.texo.orm.annotations.model.orm.TenantDiscriminator;
-
import org.eclipse.emf.texo.orm.annotator.BaseOrmAnnotationImpl;
+import org.eclipse.emf.texo.orm.annotator.ORMJavaAnnotationGenerator;
/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Multitenant</b></em>'.
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Multitenant</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.texo.orm.annotations.model.orm.impl.MultitenantImpl#getTenantDiscriminator <em>Tenant Discriminator</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.annotations.model.orm.impl.MultitenantImpl#getType <em>Type</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.annotations.model.orm.impl.MultitenantImpl#getTenantDiscriminator <em>Tenant
+ * Discriminator</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.annotations.model.orm.impl.MultitenantImpl#getType <em>Type</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class MultitenantImpl extends BaseOrmAnnotationImpl implements Multitenant {
- /**
- * The cached value of the '{@link #getTenantDiscriminator() <em>Tenant Discriminator</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTenantDiscriminator()
- * @generated
- * @ordered
- */
- protected EList<TenantDiscriminator> tenantDiscriminator;
+ /**
+ * The cached value of the '{@link #getTenantDiscriminator() <em>Tenant Discriminator</em>}' containment reference
+ * list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getTenantDiscriminator()
+ * @generated
+ * @ordered
+ */
+ protected EList<TenantDiscriminator> tenantDiscriminator;
+
+ /**
+ * The default value of the '{@link #getType() <em>Type</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getType()
+ * @generated
+ * @ordered
+ */
+ protected static final MultitenantType TYPE_EDEFAULT = MultitenantType.SINGLETABLE;
+
+ /**
+ * The cached value of the '{@link #getType() <em>Type</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getType()
+ * @generated
+ * @ordered
+ */
+ protected MultitenantType type = TYPE_EDEFAULT;
- /**
- * The default value of the '{@link #getType() <em>Type</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getType()
- * @generated
- * @ordered
- */
- protected static final MultitenantType TYPE_EDEFAULT = MultitenantType.SINGLETABLE;
+ /**
+ * This is true if the Type attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean typeESet;
- /**
- * The cached value of the '{@link #getType() <em>Type</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getType()
- * @generated
- * @ordered
- */
- protected MultitenantType type = TYPE_EDEFAULT;
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected MultitenantImpl() {
+ super();
+ }
- /**
- * This is true if the Type attribute has been set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- protected boolean typeESet;
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return OrmPackage.eINSTANCE.getMultitenant();
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected MultitenantImpl() {
- super();
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<TenantDiscriminator> getTenantDiscriminator() {
+ if (tenantDiscriminator == null) {
+ tenantDiscriminator = new EObjectContainmentEList<TenantDiscriminator>(TenantDiscriminator.class, this,
+ OrmPackage.MULTITENANT__TENANT_DISCRIMINATOR);
+ }
+ return tenantDiscriminator;
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return OrmPackage.eINSTANCE.getMultitenant();
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public MultitenantType getType() {
+ return type;
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<TenantDiscriminator> getTenantDiscriminator() {
- if (tenantDiscriminator == null) {
- tenantDiscriminator = new EObjectContainmentEList<TenantDiscriminator>(TenantDiscriminator.class, this, OrmPackage.MULTITENANT__TENANT_DISCRIMINATOR);
- }
- return tenantDiscriminator;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setType(MultitenantType newType) {
+ MultitenantType oldType = type;
+ type = newType == null ? TYPE_EDEFAULT : newType;
+ boolean oldTypeESet = typeESet;
+ typeESet = true;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MULTITENANT__TYPE, oldType, type, !oldTypeESet));
+ }
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public MultitenantType getType() {
- return type;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetType() {
+ MultitenantType oldType = type;
+ boolean oldTypeESet = typeESet;
+ type = TYPE_EDEFAULT;
+ typeESet = false;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.MULTITENANT__TYPE, oldType, TYPE_EDEFAULT,
+ oldTypeESet));
+ }
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setType(MultitenantType newType) {
- MultitenantType oldType = type;
- type = newType == null ? TYPE_EDEFAULT : newType;
- boolean oldTypeESet = typeESet;
- typeESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MULTITENANT__TYPE, oldType, type, !oldTypeESet));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetType() {
+ return typeESet;
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void unsetType() {
- MultitenantType oldType = type;
- boolean oldTypeESet = typeESet;
- type = TYPE_EDEFAULT;
- typeESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.MULTITENANT__TYPE, oldType, TYPE_EDEFAULT, oldTypeESet));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case OrmPackage.MULTITENANT__TENANT_DISCRIMINATOR:
+ return ((InternalEList<?>) getTenantDiscriminator()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isSetType() {
- return typeESet;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case OrmPackage.MULTITENANT__TENANT_DISCRIMINATOR:
+ return getTenantDiscriminator();
+ case OrmPackage.MULTITENANT__TYPE:
+ return getType();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case OrmPackage.MULTITENANT__TENANT_DISCRIMINATOR:
- return ((InternalEList<?>)getTenantDiscriminator()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case OrmPackage.MULTITENANT__TENANT_DISCRIMINATOR:
+ getTenantDiscriminator().clear();
+ getTenantDiscriminator().addAll((Collection<? extends TenantDiscriminator>) newValue);
+ return;
+ case OrmPackage.MULTITENANT__TYPE:
+ setType((MultitenantType) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case OrmPackage.MULTITENANT__TENANT_DISCRIMINATOR:
- return getTenantDiscriminator();
- case OrmPackage.MULTITENANT__TYPE:
- return getType();
- }
- return super.eGet(featureID, resolve, coreType);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case OrmPackage.MULTITENANT__TENANT_DISCRIMINATOR:
+ getTenantDiscriminator().clear();
+ return;
+ case OrmPackage.MULTITENANT__TYPE:
+ unsetType();
+ return;
+ }
+ super.eUnset(featureID);
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case OrmPackage.MULTITENANT__TENANT_DISCRIMINATOR:
- getTenantDiscriminator().clear();
- getTenantDiscriminator().addAll((Collection<? extends TenantDiscriminator>)newValue);
- return;
- case OrmPackage.MULTITENANT__TYPE:
- setType((MultitenantType)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case OrmPackage.MULTITENANT__TENANT_DISCRIMINATOR:
+ return tenantDiscriminator != null && !tenantDiscriminator.isEmpty();
+ case OrmPackage.MULTITENANT__TYPE:
+ return isSetType();
+ }
+ return super.eIsSet(featureID);
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case OrmPackage.MULTITENANT__TENANT_DISCRIMINATOR:
- getTenantDiscriminator().clear();
- return;
- case OrmPackage.MULTITENANT__TYPE:
- unsetType();
- return;
- }
- super.eUnset(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) {
+ return super.toString();
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case OrmPackage.MULTITENANT__TENANT_DISCRIMINATOR:
- return tenantDiscriminator != null && !tenantDiscriminator.isEmpty();
- case OrmPackage.MULTITENANT__TYPE:
- return isSetType();
- }
- return super.eIsSet(featureID);
- }
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (type: ");
+ if (typeESet) {
+ result.append(type);
+ } else {
+ result.append("<unset>");
+ }
+ result.append(')');
+ return result.toString();
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
+ @Override
+ public String getJavaAnnotation(String identifier) {
+ final List<EStructuralFeature> features = new ArrayList<EStructuralFeature>();
+ features.add(OrmPackage.eINSTANCE.getMultitenant_Type());
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (type: ");
- if (typeESet) result.append(type); else result.append("<unset>");
- result.append(')');
- return result.toString();
- }
+ return ORMJavaAnnotationGenerator.getInstance().generateJavaAnnotation(this, features, true, identifier);
+ }
-} //MultitenantImpl
+} // MultitenantImpl
diff --git a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotator/ORMJavaAnnotationGenerator.java b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotator/ORMJavaAnnotationGenerator.java
index 5d2f0622..9852f1e5 100644
--- a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotator/ORMJavaAnnotationGenerator.java
+++ b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotator/ORMJavaAnnotationGenerator.java
@@ -28,6 +28,7 @@ import org.eclipse.emf.common.util.Enumerator;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClassifier;
import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.ENamedElement;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.EStructuralFeature;
@@ -57,6 +58,7 @@ public class ORMJavaAnnotationGenerator {
private List<String> classFeatureNames = new ArrayList<String>();
private Map<Class<?>, String> enumTypeNames = new HashMap<Class<?>, String>();
private Map<String, String> renames = new HashMap<String, String>();
+ private Map<ENamedElement, String> annotationNames = new HashMap<ENamedElement, String>();
private Map<EStructuralFeature, String> eFeatureAnnotationMapping = new HashMap<EStructuralFeature, String>();
public ORMJavaAnnotationGenerator() {
@@ -83,6 +85,7 @@ public class ORMJavaAnnotationGenerator {
eclipseLinkEClassifiers.add(OrmPackage.eINSTANCE.getIndex());
eclipseLinkEClassifiers.add(OrmPackage.eINSTANCE.getInstantiationCopyPolicy());
eclipseLinkEClassifiers.add(OrmPackage.eINSTANCE.getJoinFetchType());
+ eclipseLinkEClassifiers.add(OrmPackage.eINSTANCE.getMultitenant());
eclipseLinkEClassifiers.add(OrmPackage.eINSTANCE.getNamedStoredProcedureQuery());
eclipseLinkEClassifiers.add(OrmPackage.eINSTANCE.getPrimaryKey());
eclipseLinkEClassifiers.add(OrmPackage.eINSTANCE.getProperty());
@@ -93,6 +96,7 @@ public class ORMJavaAnnotationGenerator {
eclipseLinkEClassifiers.add(OrmPackage.eINSTANCE.getReadTransformer());
eclipseLinkEClassifiers.add(OrmPackage.eINSTANCE.getStoredProcedureParameter());
eclipseLinkEClassifiers.add(OrmPackage.eINSTANCE.getStructConverter());
+ eclipseLinkEClassifiers.add(OrmPackage.eINSTANCE.getTenantDiscriminator());
eclipseLinkEClassifiers.add(OrmPackage.eINSTANCE.getTimeOfDay());
eclipseLinkEClassifiers.add(OrmPackage.eINSTANCE.getTransformation());
eclipseLinkEClassifiers.add(OrmPackage.eINSTANCE.getTypeConverter());
@@ -116,6 +120,16 @@ public class ORMJavaAnnotationGenerator {
renames.put("entityResults", "entities");
renames.put("columnResults", "columns");
+ annotationNames.put(OrmPackage.eINSTANCE.getTenantDiscriminator(), "TenantDiscriminatorColumn");
+ annotationNames.put(OrmPackage.eINSTANCE.getTenantDiscriminator_ColumnName(), "name");
+ annotationNames.put(OrmPackage.eINSTANCE.getMultitenant_TenantDiscriminator(), "TenantDiscriminatorColumn");
+ }
+
+ protected String getName(ENamedElement eNamedElement) {
+ if (annotationNames.containsKey(eNamedElement)) {
+ return annotationNames.get(eNamedElement);
+ }
+ return eNamedElement.getName();
}
/**
@@ -140,7 +154,7 @@ public class ORMJavaAnnotationGenerator {
}
final StringBuilder sb = new StringBuilder();
- sb.append("@" + getJavaPackage(annotation.eClass()) + "." + annotation.eClass().getName()); //$NON-NLS-1$//$NON-NLS-2$
+ sb.append("@" + getJavaPackage(annotation.eClass()) + "." + getName(annotation.eClass())); //$NON-NLS-1$//$NON-NLS-2$
sb.append("("); //$NON-NLS-1$
boolean addComma = false;
for (EStructuralFeature eFeature : annotation.eClass().getEStructuralFeatures()) {
@@ -192,7 +206,7 @@ public class ORMJavaAnnotationGenerator {
continue;
}
separateAnnotation
- .append("@" + getJavaPackage(eFeature.getEType()) + "." + pluralize(upperCaseFirst(eFeature.getName())) + "({"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ .append("@" + getJavaPackage(eFeature.getEType()) + "." + pluralize(upperCaseFirst(getName(eFeature))) + "({"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
boolean addArrayComma = false;
for (Object val : values) {
if (val instanceof BaseOrmAnnotation) {
@@ -218,9 +232,9 @@ public class ORMJavaAnnotationGenerator {
addComma = true;
if (value instanceof Collection<?>) {
if (eFeature.getName().endsWith("s")) { //$NON-NLS-1$
- sb.append(eFeature.getName() + "="); //$NON-NLS-1$
+ sb.append(getName(eFeature) + "="); //$NON-NLS-1$
} else {
- sb.append(eFeature.getName() + "s="); //$NON-NLS-1$
+ sb.append(getName(eFeature) + "s="); //$NON-NLS-1$
}
final Collection<?> values = (Collection<?>) value;
@@ -239,7 +253,7 @@ public class ORMJavaAnnotationGenerator {
if (eFeature == OrmPackage.eINSTANCE.getConverter_Class()) {
sb.append("converterClass=");
} else {
- sb.append(eFeature.getName() + "="); //$NON-NLS-1$
+ sb.append(getName(eFeature) + "="); //$NON-NLS-1$
}
sb.append(generateJavaAnnotation(eFeature, value, identifier));
}
@@ -292,7 +306,7 @@ public class ORMJavaAnnotationGenerator {
}
if (eFeature.getEType() instanceof EEnum) {
final Enumerator enumerator = (Enumerator) value;
- return getJavaPackage(eFeature.getEType()) + "." + eFeature.getEType().getName() + "." + enumerator.getLiteral(); //$NON-NLS-1$ //$NON-NLS-2$
+ return getJavaPackage(eFeature.getEType()) + "." + getName(eFeature.getEType()) + "." + enumerator.getLiteral(); //$NON-NLS-1$ //$NON-NLS-2$
}
return value + ""; //$NON-NLS-1$
}
@@ -305,7 +319,7 @@ public class ORMJavaAnnotationGenerator {
valueType += "Type"; //$NON-NLS-1$
}
- return "@" + getJavaPackage(eFeature.getEType()) + "." + upperCaseFirst(eFeature.getName()) + "(" + getJavaPackage(eFeature.getEType()) + "." + valueType //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+ return "@" + getJavaPackage(eFeature.getEType()) + "." + upperCaseFirst(getName(eFeature)) + "(" + getJavaPackage(eFeature.getEType()) + "." + valueType //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+ "." + enumerator.getLiteral() + ")"; //$NON-NLS-1$ //$NON-NLS-2$
}

Back to the top