Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/GradientStopImpl.java')
-rw-r--r--extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/GradientStopImpl.java180
1 files changed, 101 insertions, 79 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/GradientStopImpl.java b/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/GradientStopImpl.java
index c8fa6653d43..b9143714b1d 100644
--- a/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/GradientStopImpl.java
+++ b/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src-gen/org/eclipse/papyrus/dd/dg/impl/GradientStopImpl.java
@@ -39,9 +39,9 @@ import org.eclipse.papyrus.dd.dg.util.DGValidator;
* The following features are implemented:
* </p>
* <ul>
- * <li>{@link org.eclipse.papyrus.dd.dg.impl.GradientStopImpl#getColor <em>Color</em>}</li>
- * <li>{@link org.eclipse.papyrus.dd.dg.impl.GradientStopImpl#getOffset <em>Offset</em>}</li>
- * <li>{@link org.eclipse.papyrus.dd.dg.impl.GradientStopImpl#getOpacity <em>Opacity</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dd.dg.impl.GradientStopImpl#getColor <em>Color</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dd.dg.impl.GradientStopImpl#getOffset <em>Offset</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dd.dg.impl.GradientStopImpl#getOpacity <em>Opacity</em>}</li>
* </ul>
*
* @generated
@@ -51,6 +51,7 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
/**
* The default value of the '{@link #getColor() <em>Color</em>}' attribute.
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @see #getColor()
* @generated
* @ordered
@@ -60,6 +61,7 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
/**
* The cached value of the '{@link #getColor() <em>Color</em>}' attribute.
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @see #getColor()
* @generated
* @ordered
@@ -70,6 +72,7 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
* This is true if the Color attribute has been set.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -78,6 +81,7 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
/**
* The default value of the '{@link #getOffset() <em>Offset</em>}' attribute.
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @see #getOffset()
* @generated
* @ordered
@@ -87,6 +91,7 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
/**
* The cached value of the '{@link #getOffset() <em>Offset</em>}' attribute.
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @see #getOffset()
* @generated
* @ordered
@@ -97,6 +102,7 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
* This is true if the Offset attribute has been set.
* <!-- begin-user-doc
* --> <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -105,6 +111,7 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
/**
* The default value of the '{@link #getOpacity() <em>Opacity</em>}' attribute.
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @see #getOpacity()
* @generated
* @ordered
@@ -114,6 +121,7 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
/**
* The cached value of the '{@link #getOpacity() <em>Opacity</em>}' attribute.
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @see #getOpacity()
* @generated
* @ordered
@@ -124,6 +132,7 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
* This is true if the Opacity attribute has been set.
* <!-- begin-user-doc
* --> <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -131,6 +140,7 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
protected GradientStopImpl() {
@@ -139,6 +149,7 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -148,6 +159,7 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public Color getColor() {
@@ -156,6 +168,7 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public void setColor(Color newColor) {
@@ -163,12 +176,13 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
color = newColor;
boolean oldColorESet = colorESet;
colorESet = true;
- if (eNotificationRequired())
+ if(eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DGPackage.GRADIENT_STOP__COLOR, oldColor, color, !oldColorESet));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public void unsetColor() {
@@ -176,12 +190,13 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
boolean oldColorESet = colorESet;
color = COLOR_EDEFAULT;
colorESet = false;
- if (eNotificationRequired())
+ if(eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.UNSET, DGPackage.GRADIENT_STOP__COLOR, oldColor, COLOR_EDEFAULT, oldColorESet));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public boolean isSetColor() {
@@ -190,6 +205,7 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public double getOffset() {
@@ -198,6 +214,7 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public void setOffset(double newOffset) {
@@ -205,12 +222,13 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
offset = newOffset;
boolean oldOffsetESet = offsetESet;
offsetESet = true;
- if (eNotificationRequired())
+ if(eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DGPackage.GRADIENT_STOP__OFFSET, oldOffset, offset, !oldOffsetESet));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public void unsetOffset() {
@@ -218,12 +236,13 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
boolean oldOffsetESet = offsetESet;
offset = OFFSET_EDEFAULT;
offsetESet = false;
- if (eNotificationRequired())
+ if(eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.UNSET, DGPackage.GRADIENT_STOP__OFFSET, oldOffset, OFFSET_EDEFAULT, oldOffsetESet));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public boolean isSetOffset() {
@@ -232,6 +251,7 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public double getOpacity() {
@@ -240,6 +260,7 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public void setOpacity(double newOpacity) {
@@ -247,12 +268,13 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
opacity = newOpacity;
boolean oldOpacityESet = opacityESet;
opacityESet = true;
- if (eNotificationRequired())
+ if(eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DGPackage.GRADIENT_STOP__OPACITY, oldOpacity, opacity, !oldOpacityESet));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public void unsetOpacity() {
@@ -260,12 +282,13 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
boolean oldOpacityESet = opacityESet;
opacity = OPACITY_EDEFAULT;
opacityESet = false;
- if (eNotificationRequired())
+ if(eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.UNSET, DGPackage.GRADIENT_STOP__OPACITY, oldOpacity, OPACITY_EDEFAULT, oldOpacityESet));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public boolean isSetOpacity() {
@@ -273,9 +296,11 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
}
/**
- * The cached validation expression for the '{@link #validOffset(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Valid Offset</em>}' invariant operation.
+ * The cached validation expression for the '{@link #validOffset(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
+ * <em>Valid Offset</em>}' invariant operation.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
+ *
* @see #validOffset(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
* @generated
* @ordered
@@ -284,27 +309,19 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public boolean validOffset(DiagnosticChain diagnostics, Map<Object, Object> context) {
- return
- DGValidator.validate
- (DGPackage.Literals.GRADIENT_STOP,
- this,
- diagnostics,
- context,
- "http://www.eclipse.org/emf/2002/Ecore/OCL",
- DGPackage.Literals.GRADIENT_STOP___VALID_OFFSET__DIAGNOSTICCHAIN_MAP,
- VALID_OFFSET_DIAGNOSTIC_CHAIN_MAP__EEXPRESSION,
- Diagnostic.ERROR,
- DGValidator.DIAGNOSTIC_SOURCE,
- DGValidator.GRADIENT_STOP__VALID_OFFSET);
+ return DGValidator.validate(DGPackage.Literals.GRADIENT_STOP, this, diagnostics, context, "http://www.eclipse.org/emf/2002/Ecore/OCL", DGPackage.Literals.GRADIENT_STOP___VALID_OFFSET__DIAGNOSTICCHAIN_MAP, VALID_OFFSET_DIAGNOSTIC_CHAIN_MAP__EEXPRESSION, Diagnostic.ERROR, DGValidator.DIAGNOSTIC_SOURCE, DGValidator.GRADIENT_STOP__VALID_OFFSET);
}
/**
- * The cached validation expression for the '{@link #validOpacity(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Valid Opacity</em>}' invariant operation.
+ * The cached validation expression for the '{@link #validOpacity(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
+ * <em>Valid Opacity</em>}' invariant operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #validOpacity(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
* @generated
* @ordered
@@ -313,128 +330,133 @@ public class GradientStopImpl extends MinimalEObjectImpl.Container implements Gr
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public boolean validOpacity(DiagnosticChain diagnostics, Map<Object, Object> context) {
- return
- DGValidator.validate
- (DGPackage.Literals.GRADIENT_STOP,
- this,
- diagnostics,
- context,
- "http://www.eclipse.org/emf/2002/Ecore/OCL",
- DGPackage.Literals.GRADIENT_STOP___VALID_OPACITY__DIAGNOSTICCHAIN_MAP,
- VALID_OPACITY_DIAGNOSTIC_CHAIN_MAP__EEXPRESSION,
- Diagnostic.ERROR,
- DGValidator.DIAGNOSTIC_SOURCE,
- DGValidator.GRADIENT_STOP__VALID_OPACITY);
+ return DGValidator.validate(DGPackage.Literals.GRADIENT_STOP, this, diagnostics, context, "http://www.eclipse.org/emf/2002/Ecore/OCL", DGPackage.Literals.GRADIENT_STOP___VALID_OPACITY__DIAGNOSTICCHAIN_MAP, VALID_OPACITY_DIAGNOSTIC_CHAIN_MAP__EEXPRESSION, Diagnostic.ERROR, DGValidator.DIAGNOSTIC_SOURCE, DGValidator.GRADIENT_STOP__VALID_OPACITY);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case DGPackage.GRADIENT_STOP__COLOR:
- return getColor();
- case DGPackage.GRADIENT_STOP__OFFSET:
- return getOffset();
- case DGPackage.GRADIENT_STOP__OPACITY:
- return getOpacity();
+ switch(featureID) {
+ case DGPackage.GRADIENT_STOP__COLOR:
+ return getColor();
+ case DGPackage.GRADIENT_STOP__OFFSET:
+ return getOffset();
+ case DGPackage.GRADIENT_STOP__OPACITY:
+ return getOpacity();
}
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.GRADIENT_STOP__COLOR:
- setColor((Color)newValue);
- return;
- case DGPackage.GRADIENT_STOP__OFFSET:
- setOffset((Double)newValue);
- return;
- case DGPackage.GRADIENT_STOP__OPACITY:
- setOpacity((Double)newValue);
- return;
+ switch(featureID) {
+ case DGPackage.GRADIENT_STOP__COLOR:
+ setColor((Color)newValue);
+ return;
+ case DGPackage.GRADIENT_STOP__OFFSET:
+ setOffset((Double)newValue);
+ return;
+ case DGPackage.GRADIENT_STOP__OPACITY:
+ setOpacity((Double)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch (featureID) {
- case DGPackage.GRADIENT_STOP__COLOR:
- unsetColor();
- return;
- case DGPackage.GRADIENT_STOP__OFFSET:
- unsetOffset();
- return;
- case DGPackage.GRADIENT_STOP__OPACITY:
- unsetOpacity();
- return;
+ switch(featureID) {
+ case DGPackage.GRADIENT_STOP__COLOR:
+ unsetColor();
+ return;
+ case DGPackage.GRADIENT_STOP__OFFSET:
+ unsetOffset();
+ return;
+ case DGPackage.GRADIENT_STOP__OPACITY:
+ unsetOpacity();
+ return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch (featureID) {
- case DGPackage.GRADIENT_STOP__COLOR:
- return isSetColor();
- case DGPackage.GRADIENT_STOP__OFFSET:
- return isSetOffset();
- case DGPackage.GRADIENT_STOP__OPACITY:
- return isSetOpacity();
+ switch(featureID) {
+ case DGPackage.GRADIENT_STOP__COLOR:
+ return isSetColor();
+ case DGPackage.GRADIENT_STOP__OFFSET:
+ return isSetOffset();
+ case DGPackage.GRADIENT_STOP__OPACITY:
+ return isSetOpacity();
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@SuppressWarnings("unchecked")
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
- switch (operationID) {
- case DGPackage.GRADIENT_STOP___VALID_OFFSET__DIAGNOSTICCHAIN_MAP:
- return validOffset((DiagnosticChain)arguments.get(0), (Map<Object, Object>)arguments.get(1));
- case DGPackage.GRADIENT_STOP___VALID_OPACITY__DIAGNOSTICCHAIN_MAP:
- return validOpacity((DiagnosticChain)arguments.get(0), (Map<Object, Object>)arguments.get(1));
+ switch(operationID) {
+ case DGPackage.GRADIENT_STOP___VALID_OFFSET__DIAGNOSTICCHAIN_MAP:
+ return validOffset((DiagnosticChain)arguments.get(0), (Map<Object, Object>)arguments.get(1));
+ case DGPackage.GRADIENT_STOP___VALID_OPACITY__DIAGNOSTICCHAIN_MAP:
+ return validOpacity((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(" (color: ");
- if (colorESet) result.append(color); else result.append("<unset>");
+ if(colorESet)
+ result.append(color);
+ else
+ result.append("<unset>");
result.append(", offset: ");
- if (offsetESet) result.append(offset); else result.append("<unset>");
+ if(offsetESet)
+ result.append(offset);
+ else
+ result.append("<unset>");
result.append(", opacity: ");
- if (opacityESet) result.append(opacity); else result.append("<unset>");
+ if(opacityESet)
+ result.append(opacity);
+ else
+ result.append("<unset>");
result.append(')');
return result.toString();
}

Back to the top