Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Taal2013-03-23 12:24:58 -0400
committerMartin Taal2013-03-23 12:24:58 -0400
commit61cbccaa62becece94c24541b49ecffa6eb805e2 (patch)
tree3fc84bdc62ad6f9353b8a4c6e5ce0d09e944f26c /generator/org.eclipse.emf.texo.orm
parent7bdd6e740b5016444c91ea01773f3a063e0faf65 (diff)
downloadorg.eclipse.emf.texo-61cbccaa62becece94c24541b49ecffa6eb805e2.tar.gz
org.eclipse.emf.texo-61cbccaa62becece94c24541b49ecffa6eb805e2.tar.xz
org.eclipse.emf.texo-61cbccaa62becece94c24541b49ecffa6eb805e2.zip
Fixes issue [404132] Customizer annotation is not correctly generated
Diffstat (limited to 'generator/org.eclipse.emf.texo.orm')
-rwxr-xr-xgenerator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotations/model/orm/impl/CustomizerImpl.java166
1 files changed, 89 insertions, 77 deletions
diff --git a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotations/model/orm/impl/CustomizerImpl.java b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotations/model/orm/impl/CustomizerImpl.java
index 0f477593..10797613 100755
--- a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotations/model/orm/impl/CustomizerImpl.java
+++ b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotations/model/orm/impl/CustomizerImpl.java
@@ -7,12 +7,8 @@
package org.eclipse.emf.texo.orm.annotations.model.orm.impl;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.ecore.EClass;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-
import org.eclipse.emf.texo.orm.annotations.model.orm.Customizer;
import org.eclipse.emf.texo.orm.annotations.model.orm.OrmPackage;
import org.eclipse.emf.texo.orm.annotator.BaseOrmAnnotationImpl;
@@ -22,10 +18,10 @@ import org.eclipse.emf.texo.orm.annotator.BaseOrmAnnotationImpl;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.texo.orm.annotations.model.orm.impl.CustomizerImpl#getClass_ <em>Class</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.annotations.model.orm.impl.CustomizerImpl#getClass_ <em>Class</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class CustomizerImpl extends BaseOrmAnnotationImpl implements Customizer {
@@ -50,108 +46,124 @@ public class CustomizerImpl extends BaseOrmAnnotationImpl implements Customizer
protected String class_ = CLASS_EDEFAULT;
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
protected CustomizerImpl() {
- super();
- }
+ super();
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
protected EClass eStaticClass() {
- return OrmPackage.eINSTANCE.getCustomizer();
- }
+ return OrmPackage.eINSTANCE.getCustomizer();
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public String getClass_() {
- return class_;
- }
+ return class_;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public void setClass(String newClass) {
- String oldClass = class_;
- class_ = newClass;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.CUSTOMIZER__CLASS, oldClass, class_));
- }
+ String oldClass = class_;
+ class_ = newClass;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.CUSTOMIZER__CLASS, oldClass, class_));
+ }
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case OrmPackage.CUSTOMIZER__CLASS:
- return getClass_();
- }
- return super.eGet(featureID, resolve, coreType);
- }
+ switch (featureID) {
+ case OrmPackage.CUSTOMIZER__CLASS:
+ return getClass_();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case OrmPackage.CUSTOMIZER__CLASS:
- setClass((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
+ switch (featureID) {
+ case OrmPackage.CUSTOMIZER__CLASS:
+ setClass((String) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public void eUnset(int featureID) {
- switch (featureID) {
- case OrmPackage.CUSTOMIZER__CLASS:
- setClass(CLASS_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
+ switch (featureID) {
+ case OrmPackage.CUSTOMIZER__CLASS:
+ setClass(CLASS_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public boolean eIsSet(int featureID) {
- switch (featureID) {
- case OrmPackage.CUSTOMIZER__CLASS:
- return CLASS_EDEFAULT == null ? class_ != null : !CLASS_EDEFAULT.equals(class_);
- }
- return super.eIsSet(featureID);
- }
+ switch (featureID) {
+ case OrmPackage.CUSTOMIZER__CLASS:
+ return CLASS_EDEFAULT == null ? class_ != null : !CLASS_EDEFAULT.equals(class_);
+ }
+ return super.eIsSet(featureID);
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public String toString() {
- if (eIsProxy()) return super.toString();
+ if (eIsProxy()) {
+ return super.toString();
+ }
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (class: ");
- result.append(class_);
- result.append(')');
- return result.toString();
- }
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (class: ");
+ result.append(class_);
+ result.append(')');
+ return result.toString();
+ }
+ @Override
+ public String getJavaAnnotation(String identifier) {
+ return "@org.eclipse.persistence.annotations.Customizer(value=" + getClass_() + ".class)";
+ }
} // CustomizerImpl

Back to the top