Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/UmlStyleImpl.java')
-rw-r--r--extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/UmlStyleImpl.java102
1 files changed, 55 insertions, 47 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/UmlStyleImpl.java b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/UmlStyleImpl.java
index 413d6cf47ec..5e1de8b50aa 100644
--- a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/UmlStyleImpl.java
+++ b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/UmlStyleImpl.java
@@ -40,17 +40,19 @@ import org.eclipse.papyrus.umldi.util.UMLDIValidator;
* The following features are implemented:
* </p>
* <ul>
- * <li>{@link org.eclipse.papyrus.umldi.impl.UmlStyleImpl#getFontName <em>Font Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.umldi.impl.UmlStyleImpl#getFontSize <em>Font Size</em>}</li>
+ * <li>{@link org.eclipse.papyrus.umldi.impl.UmlStyleImpl#getFontName <em>Font Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.umldi.impl.UmlStyleImpl#getFontSize <em>Font Size</em>}</li>
* </ul>
*
* @generated
*/
public class UmlStyleImpl extends StyleImpl implements UmlStyle {
+
/**
* The default value of the '{@link #getFontName() <em>Font Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getFontName()
* @generated
* @ordered
@@ -61,6 +63,7 @@ public class UmlStyleImpl extends StyleImpl implements UmlStyle {
* The cached value of the '{@link #getFontName() <em>Font Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getFontName()
* @generated
* @ordered
@@ -71,6 +74,7 @@ public class UmlStyleImpl extends StyleImpl implements UmlStyle {
* The default value of the '{@link #getFontSize() <em>Font Size</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getFontSize()
* @generated
* @ordered
@@ -81,6 +85,7 @@ public class UmlStyleImpl extends StyleImpl implements UmlStyle {
* The cached value of the '{@link #getFontSize() <em>Font Size</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getFontSize()
* @generated
* @ordered
@@ -90,6 +95,7 @@ public class UmlStyleImpl extends StyleImpl implements UmlStyle {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected UmlStyleImpl() {
@@ -99,6 +105,7 @@ public class UmlStyleImpl extends StyleImpl implements UmlStyle {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -109,6 +116,7 @@ public class UmlStyleImpl extends StyleImpl implements UmlStyle {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public String getFontName() {
@@ -118,18 +126,20 @@ public class UmlStyleImpl extends StyleImpl implements UmlStyle {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setFontName(String newFontName) {
String oldFontName = fontName;
fontName = newFontName;
- if (eNotificationRequired())
+ if(eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, UMLDIPackage.UML_STYLE__FONT_NAME, oldFontName, fontName));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public double getFontSize() {
@@ -139,19 +149,22 @@ public class UmlStyleImpl extends StyleImpl implements UmlStyle {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setFontSize(double newFontSize) {
double oldFontSize = fontSize;
fontSize = newFontSize;
- if (eNotificationRequired())
+ if(eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, UMLDIPackage.UML_STYLE__FONT_SIZE, oldFontSize, fontSize));
}
/**
- * The cached validation expression for the '{@link #fontsizePositive(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Fontsize Positive</em>}' invariant operation.
+ * The cached validation expression for the '{@link #fontsizePositive(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
+ * <em>Fontsize Positive</em>}' invariant operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #fontsizePositive(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
* @generated
* @ordered
@@ -161,35 +174,26 @@ public class UmlStyleImpl extends StyleImpl implements UmlStyle {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public boolean fontsizePositive(DiagnosticChain diagnostics, Map<Object, Object> context) {
- return
- UMLDIValidator.validate
- (UMLDIPackage.Literals.UML_STYLE,
- this,
- diagnostics,
- context,
- "http://www.eclipse.org/emf/2002/Ecore/OCL",
- UMLDIPackage.Literals.UML_STYLE___FONTSIZE_POSITIVE__DIAGNOSTICCHAIN_MAP,
- FONTSIZE_POSITIVE_DIAGNOSTIC_CHAIN_MAP__EEXPRESSION,
- Diagnostic.ERROR,
- UMLDIValidator.DIAGNOSTIC_SOURCE,
- UMLDIValidator.UML_STYLE__FONTSIZE_POSITIVE);
+ return UMLDIValidator.validate(UMLDIPackage.Literals.UML_STYLE, this, diagnostics, context, "http://www.eclipse.org/emf/2002/Ecore/OCL", UMLDIPackage.Literals.UML_STYLE___FONTSIZE_POSITIVE__DIAGNOSTICCHAIN_MAP, FONTSIZE_POSITIVE_DIAGNOSTIC_CHAIN_MAP__EEXPRESSION, Diagnostic.ERROR, UMLDIValidator.DIAGNOSTIC_SOURCE, UMLDIValidator.UML_STYLE__FONTSIZE_POSITIVE);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case UMLDIPackage.UML_STYLE__FONT_NAME:
- return getFontName();
- case UMLDIPackage.UML_STYLE__FONT_SIZE:
- return getFontSize();
+ switch(featureID) {
+ case UMLDIPackage.UML_STYLE__FONT_NAME:
+ return getFontName();
+ case UMLDIPackage.UML_STYLE__FONT_SIZE:
+ return getFontSize();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -197,17 +201,18 @@ public class UmlStyleImpl extends StyleImpl implements UmlStyle {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case UMLDIPackage.UML_STYLE__FONT_NAME:
- setFontName((String)newValue);
- return;
- case UMLDIPackage.UML_STYLE__FONT_SIZE:
- setFontSize((Double)newValue);
- return;
+ switch(featureID) {
+ case UMLDIPackage.UML_STYLE__FONT_NAME:
+ setFontName((String)newValue);
+ return;
+ case UMLDIPackage.UML_STYLE__FONT_SIZE:
+ setFontSize((Double)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -215,17 +220,18 @@ public class UmlStyleImpl extends StyleImpl implements UmlStyle {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch (featureID) {
- case UMLDIPackage.UML_STYLE__FONT_NAME:
- setFontName(FONT_NAME_EDEFAULT);
- return;
- case UMLDIPackage.UML_STYLE__FONT_SIZE:
- setFontSize(FONT_SIZE_EDEFAULT);
- return;
+ switch(featureID) {
+ case UMLDIPackage.UML_STYLE__FONT_NAME:
+ setFontName(FONT_NAME_EDEFAULT);
+ return;
+ case UMLDIPackage.UML_STYLE__FONT_SIZE:
+ setFontSize(FONT_SIZE_EDEFAULT);
+ return;
}
super.eUnset(featureID);
}
@@ -233,15 +239,16 @@ public class UmlStyleImpl extends StyleImpl implements UmlStyle {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch (featureID) {
- case UMLDIPackage.UML_STYLE__FONT_NAME:
- return FONT_NAME_EDEFAULT == null ? fontName != null : !FONT_NAME_EDEFAULT.equals(fontName);
- case UMLDIPackage.UML_STYLE__FONT_SIZE:
- return fontSize != FONT_SIZE_EDEFAULT;
+ switch(featureID) {
+ case UMLDIPackage.UML_STYLE__FONT_NAME:
+ return FONT_NAME_EDEFAULT == null ? fontName != null : !FONT_NAME_EDEFAULT.equals(fontName);
+ case UMLDIPackage.UML_STYLE__FONT_SIZE:
+ return fontSize != FONT_SIZE_EDEFAULT;
}
return super.eIsSet(featureID);
}
@@ -249,14 +256,15 @@ public class UmlStyleImpl extends StyleImpl implements UmlStyle {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@SuppressWarnings("unchecked")
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
- switch (operationID) {
- case UMLDIPackage.UML_STYLE___FONTSIZE_POSITIVE__DIAGNOSTICCHAIN_MAP:
- return fontsizePositive((DiagnosticChain)arguments.get(0), (Map<Object, Object>)arguments.get(1));
+ switch(operationID) {
+ case UMLDIPackage.UML_STYLE___FONTSIZE_POSITIVE__DIAGNOSTICCHAIN_MAP:
+ return fontsizePositive((DiagnosticChain)arguments.get(0), (Map<Object, Object>)arguments.get(1));
}
return super.eInvoke(operationID, arguments);
}
@@ -264,12 +272,13 @@ public class UmlStyleImpl extends StyleImpl implements UmlStyle {
/**
* <!-- 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(" (fontName: ");
result.append(fontName);
@@ -278,5 +287,4 @@ public class UmlStyleImpl extends StyleImpl implements UmlStyle {
result.append(')');
return result.toString();
}
-
} //UmlStyleImpl

Back to the top