diff options
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/impl/DefinitionImpl.java')
-rw-r--r-- | extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/impl/DefinitionImpl.java | 78 |
1 files changed, 31 insertions, 47 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/impl/DefinitionImpl.java b/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/impl/DefinitionImpl.java index cf5e63c411d..1cd36f5d448 100644 --- a/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/impl/DefinitionImpl.java +++ b/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/impl/DefinitionImpl.java @@ -33,10 +33,10 @@ import org.eclipse.papyrus.dd.dg.util.DGValidator; * <p> * The following features are implemented: * <ul> - * <li>{@link org.eclipse.papyrus.dd.dg.impl.DefinitionImpl#getId <em>Id</em>}</li> + * <li>{@link org.eclipse.papyrus.dd.dg.impl.DefinitionImpl#getId <em>Id</em>}</li> * </ul> * </p> - * + * * @generated */ public abstract class DefinitionImpl extends MinimalEObjectImpl.Container @@ -63,7 +63,6 @@ public abstract class DefinitionImpl extends MinimalEObjectImpl.Container /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ protected DefinitionImpl() { @@ -72,7 +71,6 @@ public abstract class DefinitionImpl extends MinimalEObjectImpl.Container /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ @Override @@ -82,7 +80,6 @@ public abstract class DefinitionImpl extends MinimalEObjectImpl.Container /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public String getId() { @@ -91,25 +88,20 @@ public abstract class DefinitionImpl extends MinimalEObjectImpl.Container /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public void setId(String newId) { String oldId = id; id = newId; if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - DGPackage.DEFINITION__ID, oldId, id)); + eNotify(new ENotificationImpl(this, Notification.SET, DGPackage.DEFINITION__ID, oldId, id)); } /** - * The cached validation expression for the ' - * {@link #idCannotBeEmpty(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) - * <em>Id Cannot Be Empty</em>}' invariant operation. <!-- begin-user-doc + * The cached validation expression for the '{@link #idCannotBeEmpty(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Id Cannot Be Empty</em>}' invariant operation. + * <!-- begin-user-doc * --> <!-- end-user-doc --> - * - * @see #idCannotBeEmpty(org.eclipse.emf.common.util.DiagnosticChain, - * java.util.Map) + * @see #idCannotBeEmpty(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) * @generated * @ordered */ @@ -117,85 +109,80 @@ public abstract class DefinitionImpl extends MinimalEObjectImpl.Container /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public boolean idCannotBeEmpty(DiagnosticChain diagnostics, Map<Object, Object> context) { - return DGValidator - .validate( - DGPackage.Literals.DEFINITION, - this, - diagnostics, - context, - "http://www.eclipse.org/emf/2002/Ecore/OCL", - DGPackage.Literals.DEFINITION___ID_CANNOT_BE_EMPTY__DIAGNOSTICCHAIN_MAP, - ID_CANNOT_BE_EMPTY_DIAGNOSTIC_CHAIN_MAP__EEXPRESSION, - Diagnostic.ERROR, DGValidator.DIAGNOSTIC_SOURCE, - DGValidator.DEFINITION__ID_CANNOT_BE_EMPTY); + return + DGValidator.validate + (DGPackage.Literals.DEFINITION, + this, + diagnostics, + context, + "http://www.eclipse.org/emf/2002/Ecore/OCL", + DGPackage.Literals.DEFINITION___ID_CANNOT_BE_EMPTY__DIAGNOSTICCHAIN_MAP, + ID_CANNOT_BE_EMPTY_DIAGNOSTIC_CHAIN_MAP__EEXPRESSION, + Diagnostic.ERROR, + DGValidator.DIAGNOSTIC_SOURCE, + DGValidator.DEFINITION__ID_CANNOT_BE_EMPTY); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { - case DGPackage.DEFINITION__ID: - return getId(); + case DGPackage.DEFINITION__ID: + return getId(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { - case DGPackage.DEFINITION__ID: - setId((String) newValue); - return; + case DGPackage.DEFINITION__ID: + setId((String)newValue); + return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { - case DGPackage.DEFINITION__ID: - setId(ID_EDEFAULT); - return; + case DGPackage.DEFINITION__ID: + setId(ID_EDEFAULT); + return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { - case DGPackage.DEFINITION__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case DGPackage.DEFINITION__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); } return super.eIsSet(featureID); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ @Override @@ -203,22 +190,19 @@ public abstract class DefinitionImpl extends MinimalEObjectImpl.Container public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException { switch (operationID) { - case DGPackage.DEFINITION___ID_CANNOT_BE_EMPTY__DIAGNOSTICCHAIN_MAP: - return idCannotBeEmpty((DiagnosticChain) arguments.get(0), - (Map<Object, Object>) arguments.get(1)); + case DGPackage.DEFINITION___ID_CANNOT_BE_EMPTY__DIAGNOSTICCHAIN_MAP: + return idCannotBeEmpty((DiagnosticChain)arguments.get(0), (Map<Object, Object>)arguments.get(1)); } return super.eInvoke(operationID, arguments); } /** * <!-- 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(" (id: "); |