diff options
Diffstat (limited to 'plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css3.xtext/src-gen/org/eclipse/papyrus/infra/gmfdiag/css3/cSS/impl/pageImpl.java')
-rw-r--r-- | plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css3.xtext/src-gen/org/eclipse/papyrus/infra/gmfdiag/css3/cSS/impl/pageImpl.java | 500 |
1 files changed, 260 insertions, 240 deletions
diff --git a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css3.xtext/src-gen/org/eclipse/papyrus/infra/gmfdiag/css3/cSS/impl/pageImpl.java b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css3.xtext/src-gen/org/eclipse/papyrus/infra/gmfdiag/css3/cSS/impl/pageImpl.java index 6f01a843641..12867d87b22 100644 --- a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css3.xtext/src-gen/org/eclipse/papyrus/infra/gmfdiag/css3/cSS/impl/pageImpl.java +++ b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css3.xtext/src-gen/org/eclipse/papyrus/infra/gmfdiag/css3/cSS/impl/pageImpl.java @@ -1,240 +1,260 @@ -/** - */ -package org.eclipse.papyrus.infra.gmfdiag.css3.cSS.impl; - -import java.util.Collection; - -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.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.papyrus.infra.gmfdiag.css3.cSS.CSSPackage; -import org.eclipse.papyrus.infra.gmfdiag.css3.cSS.css_declaration; -import org.eclipse.papyrus.infra.gmfdiag.css3.cSS.page; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>page</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * </p> - * <ul> - * <li>{@link org.eclipse.papyrus.infra.gmfdiag.css3.cSS.impl.pageImpl#getPseudoPage <em>Pseudo Page</em>}</li> - * <li>{@link org.eclipse.papyrus.infra.gmfdiag.css3.cSS.impl.pageImpl#getDeclarations <em>Declarations</em>}</li> - * </ul> - * - * @generated - */ -public class pageImpl extends MinimalEObjectImpl.Container implements page -{ - /** - * The default value of the '{@link #getPseudoPage() <em>Pseudo Page</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPseudoPage() - * @generated - * @ordered - */ - protected static final String PSEUDO_PAGE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getPseudoPage() <em>Pseudo Page</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPseudoPage() - * @generated - * @ordered - */ - protected String pseudoPage = PSEUDO_PAGE_EDEFAULT; - - /** - * The cached value of the '{@link #getDeclarations() <em>Declarations</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDeclarations() - * @generated - * @ordered - */ - protected EList<css_declaration> declarations; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected pageImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() - { - return CSSPackage.Literals.PAGE; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getPseudoPage() - { - return pseudoPage; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setPseudoPage(String newPseudoPage) - { - String oldPseudoPage = pseudoPage; - pseudoPage = newPseudoPage; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CSSPackage.PAGE__PSEUDO_PAGE, oldPseudoPage, pseudoPage)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList<css_declaration> getDeclarations() - { - if (declarations == null) - { - declarations = new EObjectContainmentEList<css_declaration>(css_declaration.class, this, CSSPackage.PAGE__DECLARATIONS); - } - return declarations; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case CSSPackage.PAGE__DECLARATIONS: - return ((InternalEList<?>)getDeclarations()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case CSSPackage.PAGE__PSEUDO_PAGE: - return getPseudoPage(); - case CSSPackage.PAGE__DECLARATIONS: - return getDeclarations(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case CSSPackage.PAGE__PSEUDO_PAGE: - setPseudoPage((String)newValue); - return; - case CSSPackage.PAGE__DECLARATIONS: - getDeclarations().clear(); - getDeclarations().addAll((Collection<? extends css_declaration>)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case CSSPackage.PAGE__PSEUDO_PAGE: - setPseudoPage(PSEUDO_PAGE_EDEFAULT); - return; - case CSSPackage.PAGE__DECLARATIONS: - getDeclarations().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case CSSPackage.PAGE__PSEUDO_PAGE: - return PSEUDO_PAGE_EDEFAULT == null ? pseudoPage != null : !PSEUDO_PAGE_EDEFAULT.equals(pseudoPage); - case CSSPackage.PAGE__DECLARATIONS: - return declarations != null && !declarations.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (pseudoPage: "); - result.append(pseudoPage); - result.append(')'); - return result.toString(); - } - -} //pageImpl +/**
+ */
+package org.eclipse.papyrus.infra.gmfdiag.css3.cSS.impl;
+
+import java.util.Collection;
+
+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.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.eclipse.papyrus.infra.gmfdiag.css3.cSS.CSSPackage;
+import org.eclipse.papyrus.infra.gmfdiag.css3.cSS.css_declaration;
+import org.eclipse.papyrus.infra.gmfdiag.css3.cSS.page;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>page</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.css3.cSS.impl.pageImpl#getPseudoPage <em>Pseudo Page</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.gmfdiag.css3.cSS.impl.pageImpl#getDeclarations <em>Declarations</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class pageImpl extends MinimalEObjectImpl.Container implements page
+{
+ /**
+ * The default value of the '{@link #getPseudoPage() <em>Pseudo Page</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getPseudoPage()
+ * @generated
+ * @ordered
+ */
+ protected static final String PSEUDO_PAGE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getPseudoPage() <em>Pseudo Page</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getPseudoPage()
+ * @generated
+ * @ordered
+ */
+ protected String pseudoPage = PSEUDO_PAGE_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getDeclarations() <em>Declarations</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getDeclarations()
+ * @generated
+ * @ordered
+ */
+ protected EList<css_declaration> declarations;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected pageImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return CSSPackage.Literals.PAGE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getPseudoPage()
+ {
+ return pseudoPage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void setPseudoPage(String newPseudoPage)
+ {
+ String oldPseudoPage = pseudoPage;
+ pseudoPage = newPseudoPage;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, CSSPackage.PAGE__PSEUDO_PAGE, oldPseudoPage, pseudoPage));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EList<css_declaration> getDeclarations()
+ {
+ if (declarations == null)
+ {
+ declarations = new EObjectContainmentEList<css_declaration>(css_declaration.class, this, CSSPackage.PAGE__DECLARATIONS);
+ }
+ return declarations;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case CSSPackage.PAGE__DECLARATIONS:
+ return ((InternalEList<?>) getDeclarations()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case CSSPackage.PAGE__PSEUDO_PAGE:
+ return getPseudoPage();
+ case CSSPackage.PAGE__DECLARATIONS:
+ return getDeclarations();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case CSSPackage.PAGE__PSEUDO_PAGE:
+ setPseudoPage((String) newValue);
+ return;
+ case CSSPackage.PAGE__DECLARATIONS:
+ getDeclarations().clear();
+ getDeclarations().addAll((Collection<? extends css_declaration>) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case CSSPackage.PAGE__PSEUDO_PAGE:
+ setPseudoPage(PSEUDO_PAGE_EDEFAULT);
+ return;
+ case CSSPackage.PAGE__DECLARATIONS:
+ getDeclarations().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case CSSPackage.PAGE__PSEUDO_PAGE:
+ return PSEUDO_PAGE_EDEFAULT == null ? pseudoPage != null : !PSEUDO_PAGE_EDEFAULT.equals(pseudoPage);
+ case CSSPackage.PAGE__DECLARATIONS:
+ return declarations != null && !declarations.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) {
+ return super.toString();
+ }
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (pseudoPage: ");
+ result.append(pseudoPage);
+ result.append(')');
+ return result.toString();
+ }
+
+} // pageImpl
|