All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.contextmapper.tactic.dsl.tacticdsl.impl.AnyPropertyImpl Maven / Gradle / Ivy

There is a newer version: 6.12.0
Show newest version
/**
 * generated by Xtext 2.20.0
 */
package org.contextmapper.tactic.dsl.tacticdsl.impl;

import org.contextmapper.tactic.dsl.tacticdsl.AnyProperty;
import org.contextmapper.tactic.dsl.tacticdsl.CollectionType;
import org.contextmapper.tactic.dsl.tacticdsl.TacticdslPackage;
import org.contextmapper.tactic.dsl.tacticdsl.Visibility;

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.MinimalEObjectImpl;

/**
 * 
 * An implementation of the model object 'Any Property'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.AnyPropertyImpl#getDoc Doc}
  • *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.AnyPropertyImpl#getVisibility Visibility}
  • *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.AnyPropertyImpl#getCollectionType Collection Type}
  • *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.AnyPropertyImpl#getName Name}
  • *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.AnyPropertyImpl#isKey Key}
  • *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.AnyPropertyImpl#isNotChangeable Not Changeable}
  • *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.AnyPropertyImpl#isRequired Required}
  • *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.AnyPropertyImpl#isNullable Nullable}
  • *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.AnyPropertyImpl#getNullableMessage Nullable Message}
  • *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.AnyPropertyImpl#getHint Hint}
  • *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.AnyPropertyImpl#isNotEmpty Not Empty}
  • *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.AnyPropertyImpl#getNotEmptyMessage Not Empty Message}
  • *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.AnyPropertyImpl#getSize Size}
  • *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.AnyPropertyImpl#getValidate Validate}
  • *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.AnyPropertyImpl#isTransient Transient}
  • *
* * @generated */ public class AnyPropertyImpl extends MinimalEObjectImpl.Container implements AnyProperty { /** * The default value of the '{@link #getDoc() Doc}' attribute. * * * @see #getDoc() * @generated * @ordered */ protected static final String DOC_EDEFAULT = null; /** * The cached value of the '{@link #getDoc() Doc}' attribute. * * * @see #getDoc() * @generated * @ordered */ protected String doc = DOC_EDEFAULT; /** * The default value of the '{@link #getVisibility() Visibility}' attribute. * * * @see #getVisibility() * @generated * @ordered */ protected static final Visibility VISIBILITY_EDEFAULT = Visibility.PUBLIC; /** * The cached value of the '{@link #getVisibility() Visibility}' attribute. * * * @see #getVisibility() * @generated * @ordered */ protected Visibility visibility = VISIBILITY_EDEFAULT; /** * The default value of the '{@link #getCollectionType() Collection Type}' attribute. * * * @see #getCollectionType() * @generated * @ordered */ protected static final CollectionType COLLECTION_TYPE_EDEFAULT = CollectionType.NONE; /** * The cached value of the '{@link #getCollectionType() Collection Type}' attribute. * * * @see #getCollectionType() * @generated * @ordered */ protected CollectionType collectionType = COLLECTION_TYPE_EDEFAULT; /** * The default value of the '{@link #getName() Name}' attribute. * * * @see #getName() * @generated * @ordered */ protected static final String NAME_EDEFAULT = null; /** * The cached value of the '{@link #getName() Name}' attribute. * * * @see #getName() * @generated * @ordered */ protected String name = NAME_EDEFAULT; /** * The default value of the '{@link #isKey() Key}' attribute. * * * @see #isKey() * @generated * @ordered */ protected static final boolean KEY_EDEFAULT = false; /** * The cached value of the '{@link #isKey() Key}' attribute. * * * @see #isKey() * @generated * @ordered */ protected boolean key = KEY_EDEFAULT; /** * The default value of the '{@link #isNotChangeable() Not Changeable}' attribute. * * * @see #isNotChangeable() * @generated * @ordered */ protected static final boolean NOT_CHANGEABLE_EDEFAULT = false; /** * The cached value of the '{@link #isNotChangeable() Not Changeable}' attribute. * * * @see #isNotChangeable() * @generated * @ordered */ protected boolean notChangeable = NOT_CHANGEABLE_EDEFAULT; /** * The default value of the '{@link #isRequired() Required}' attribute. * * * @see #isRequired() * @generated * @ordered */ protected static final boolean REQUIRED_EDEFAULT = false; /** * The cached value of the '{@link #isRequired() Required}' attribute. * * * @see #isRequired() * @generated * @ordered */ protected boolean required = REQUIRED_EDEFAULT; /** * The default value of the '{@link #isNullable() Nullable}' attribute. * * * @see #isNullable() * @generated * @ordered */ protected static final boolean NULLABLE_EDEFAULT = false; /** * The cached value of the '{@link #isNullable() Nullable}' attribute. * * * @see #isNullable() * @generated * @ordered */ protected boolean nullable = NULLABLE_EDEFAULT; /** * The default value of the '{@link #getNullableMessage() Nullable Message}' attribute. * * * @see #getNullableMessage() * @generated * @ordered */ protected static final String NULLABLE_MESSAGE_EDEFAULT = null; /** * The cached value of the '{@link #getNullableMessage() Nullable Message}' attribute. * * * @see #getNullableMessage() * @generated * @ordered */ protected String nullableMessage = NULLABLE_MESSAGE_EDEFAULT; /** * The default value of the '{@link #getHint() Hint}' attribute. * * * @see #getHint() * @generated * @ordered */ protected static final String HINT_EDEFAULT = null; /** * The cached value of the '{@link #getHint() Hint}' attribute. * * * @see #getHint() * @generated * @ordered */ protected String hint = HINT_EDEFAULT; /** * The default value of the '{@link #isNotEmpty() Not Empty}' attribute. * * * @see #isNotEmpty() * @generated * @ordered */ protected static final boolean NOT_EMPTY_EDEFAULT = false; /** * The cached value of the '{@link #isNotEmpty() Not Empty}' attribute. * * * @see #isNotEmpty() * @generated * @ordered */ protected boolean notEmpty = NOT_EMPTY_EDEFAULT; /** * The default value of the '{@link #getNotEmptyMessage() Not Empty Message}' attribute. * * * @see #getNotEmptyMessage() * @generated * @ordered */ protected static final String NOT_EMPTY_MESSAGE_EDEFAULT = null; /** * The cached value of the '{@link #getNotEmptyMessage() Not Empty Message}' attribute. * * * @see #getNotEmptyMessage() * @generated * @ordered */ protected String notEmptyMessage = NOT_EMPTY_MESSAGE_EDEFAULT; /** * The default value of the '{@link #getSize() Size}' attribute. * * * @see #getSize() * @generated * @ordered */ protected static final String SIZE_EDEFAULT = null; /** * The cached value of the '{@link #getSize() Size}' attribute. * * * @see #getSize() * @generated * @ordered */ protected String size = SIZE_EDEFAULT; /** * The default value of the '{@link #getValidate() Validate}' attribute. * * * @see #getValidate() * @generated * @ordered */ protected static final String VALIDATE_EDEFAULT = null; /** * The cached value of the '{@link #getValidate() Validate}' attribute. * * * @see #getValidate() * @generated * @ordered */ protected String validate = VALIDATE_EDEFAULT; /** * The default value of the '{@link #isTransient() Transient}' attribute. * * * @see #isTransient() * @generated * @ordered */ protected static final boolean TRANSIENT_EDEFAULT = false; /** * The cached value of the '{@link #isTransient() Transient}' attribute. * * * @see #isTransient() * @generated * @ordered */ protected boolean transient_ = TRANSIENT_EDEFAULT; /** * * * @generated */ protected AnyPropertyImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return TacticdslPackage.Literals.ANY_PROPERTY; } /** * * * @generated */ public String getDoc() { return doc; } /** * * * @generated */ public void setDoc(String newDoc) { String oldDoc = doc; doc = newDoc; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.ANY_PROPERTY__DOC, oldDoc, doc)); } /** * * * @generated */ public Visibility getVisibility() { return visibility; } /** * * * @generated */ public void setVisibility(Visibility newVisibility) { Visibility oldVisibility = visibility; visibility = newVisibility == null ? VISIBILITY_EDEFAULT : newVisibility; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.ANY_PROPERTY__VISIBILITY, oldVisibility, visibility)); } /** * * * @generated */ public CollectionType getCollectionType() { return collectionType; } /** * * * @generated */ public void setCollectionType(CollectionType newCollectionType) { CollectionType oldCollectionType = collectionType; collectionType = newCollectionType == null ? COLLECTION_TYPE_EDEFAULT : newCollectionType; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.ANY_PROPERTY__COLLECTION_TYPE, oldCollectionType, collectionType)); } /** * * * @generated */ public String getName() { return name; } /** * * * @generated */ public void setName(String newName) { String oldName = name; name = newName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.ANY_PROPERTY__NAME, oldName, name)); } /** * * * @generated */ public boolean isKey() { return key; } /** * * * @generated */ public void setKey(boolean newKey) { boolean oldKey = key; key = newKey; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.ANY_PROPERTY__KEY, oldKey, key)); } /** * * * @generated */ public boolean isNotChangeable() { return notChangeable; } /** * * * @generated */ public void setNotChangeable(boolean newNotChangeable) { boolean oldNotChangeable = notChangeable; notChangeable = newNotChangeable; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.ANY_PROPERTY__NOT_CHANGEABLE, oldNotChangeable, notChangeable)); } /** * * * @generated */ public boolean isRequired() { return required; } /** * * * @generated */ public void setRequired(boolean newRequired) { boolean oldRequired = required; required = newRequired; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.ANY_PROPERTY__REQUIRED, oldRequired, required)); } /** * * * @generated */ public boolean isNullable() { return nullable; } /** * * * @generated */ public void setNullable(boolean newNullable) { boolean oldNullable = nullable; nullable = newNullable; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.ANY_PROPERTY__NULLABLE, oldNullable, nullable)); } /** * * * @generated */ public String getNullableMessage() { return nullableMessage; } /** * * * @generated */ public void setNullableMessage(String newNullableMessage) { String oldNullableMessage = nullableMessage; nullableMessage = newNullableMessage; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.ANY_PROPERTY__NULLABLE_MESSAGE, oldNullableMessage, nullableMessage)); } /** * * * @generated */ public String getHint() { return hint; } /** * * * @generated */ public void setHint(String newHint) { String oldHint = hint; hint = newHint; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.ANY_PROPERTY__HINT, oldHint, hint)); } /** * * * @generated */ public boolean isNotEmpty() { return notEmpty; } /** * * * @generated */ public void setNotEmpty(boolean newNotEmpty) { boolean oldNotEmpty = notEmpty; notEmpty = newNotEmpty; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.ANY_PROPERTY__NOT_EMPTY, oldNotEmpty, notEmpty)); } /** * * * @generated */ public String getNotEmptyMessage() { return notEmptyMessage; } /** * * * @generated */ public void setNotEmptyMessage(String newNotEmptyMessage) { String oldNotEmptyMessage = notEmptyMessage; notEmptyMessage = newNotEmptyMessage; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.ANY_PROPERTY__NOT_EMPTY_MESSAGE, oldNotEmptyMessage, notEmptyMessage)); } /** * * * @generated */ public String getSize() { return size; } /** * * * @generated */ public void setSize(String newSize) { String oldSize = size; size = newSize; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.ANY_PROPERTY__SIZE, oldSize, size)); } /** * * * @generated */ public String getValidate() { return validate; } /** * * * @generated */ public void setValidate(String newValidate) { String oldValidate = validate; validate = newValidate; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.ANY_PROPERTY__VALIDATE, oldValidate, validate)); } /** * * * @generated */ public boolean isTransient() { return transient_; } /** * * * @generated */ public void setTransient(boolean newTransient) { boolean oldTransient = transient_; transient_ = newTransient; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.ANY_PROPERTY__TRANSIENT, oldTransient, transient_)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case TacticdslPackage.ANY_PROPERTY__DOC: return getDoc(); case TacticdslPackage.ANY_PROPERTY__VISIBILITY: return getVisibility(); case TacticdslPackage.ANY_PROPERTY__COLLECTION_TYPE: return getCollectionType(); case TacticdslPackage.ANY_PROPERTY__NAME: return getName(); case TacticdslPackage.ANY_PROPERTY__KEY: return isKey(); case TacticdslPackage.ANY_PROPERTY__NOT_CHANGEABLE: return isNotChangeable(); case TacticdslPackage.ANY_PROPERTY__REQUIRED: return isRequired(); case TacticdslPackage.ANY_PROPERTY__NULLABLE: return isNullable(); case TacticdslPackage.ANY_PROPERTY__NULLABLE_MESSAGE: return getNullableMessage(); case TacticdslPackage.ANY_PROPERTY__HINT: return getHint(); case TacticdslPackage.ANY_PROPERTY__NOT_EMPTY: return isNotEmpty(); case TacticdslPackage.ANY_PROPERTY__NOT_EMPTY_MESSAGE: return getNotEmptyMessage(); case TacticdslPackage.ANY_PROPERTY__SIZE: return getSize(); case TacticdslPackage.ANY_PROPERTY__VALIDATE: return getValidate(); case TacticdslPackage.ANY_PROPERTY__TRANSIENT: return isTransient(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case TacticdslPackage.ANY_PROPERTY__DOC: setDoc((String)newValue); return; case TacticdslPackage.ANY_PROPERTY__VISIBILITY: setVisibility((Visibility)newValue); return; case TacticdslPackage.ANY_PROPERTY__COLLECTION_TYPE: setCollectionType((CollectionType)newValue); return; case TacticdslPackage.ANY_PROPERTY__NAME: setName((String)newValue); return; case TacticdslPackage.ANY_PROPERTY__KEY: setKey((Boolean)newValue); return; case TacticdslPackage.ANY_PROPERTY__NOT_CHANGEABLE: setNotChangeable((Boolean)newValue); return; case TacticdslPackage.ANY_PROPERTY__REQUIRED: setRequired((Boolean)newValue); return; case TacticdslPackage.ANY_PROPERTY__NULLABLE: setNullable((Boolean)newValue); return; case TacticdslPackage.ANY_PROPERTY__NULLABLE_MESSAGE: setNullableMessage((String)newValue); return; case TacticdslPackage.ANY_PROPERTY__HINT: setHint((String)newValue); return; case TacticdslPackage.ANY_PROPERTY__NOT_EMPTY: setNotEmpty((Boolean)newValue); return; case TacticdslPackage.ANY_PROPERTY__NOT_EMPTY_MESSAGE: setNotEmptyMessage((String)newValue); return; case TacticdslPackage.ANY_PROPERTY__SIZE: setSize((String)newValue); return; case TacticdslPackage.ANY_PROPERTY__VALIDATE: setValidate((String)newValue); return; case TacticdslPackage.ANY_PROPERTY__TRANSIENT: setTransient((Boolean)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case TacticdslPackage.ANY_PROPERTY__DOC: setDoc(DOC_EDEFAULT); return; case TacticdslPackage.ANY_PROPERTY__VISIBILITY: setVisibility(VISIBILITY_EDEFAULT); return; case TacticdslPackage.ANY_PROPERTY__COLLECTION_TYPE: setCollectionType(COLLECTION_TYPE_EDEFAULT); return; case TacticdslPackage.ANY_PROPERTY__NAME: setName(NAME_EDEFAULT); return; case TacticdslPackage.ANY_PROPERTY__KEY: setKey(KEY_EDEFAULT); return; case TacticdslPackage.ANY_PROPERTY__NOT_CHANGEABLE: setNotChangeable(NOT_CHANGEABLE_EDEFAULT); return; case TacticdslPackage.ANY_PROPERTY__REQUIRED: setRequired(REQUIRED_EDEFAULT); return; case TacticdslPackage.ANY_PROPERTY__NULLABLE: setNullable(NULLABLE_EDEFAULT); return; case TacticdslPackage.ANY_PROPERTY__NULLABLE_MESSAGE: setNullableMessage(NULLABLE_MESSAGE_EDEFAULT); return; case TacticdslPackage.ANY_PROPERTY__HINT: setHint(HINT_EDEFAULT); return; case TacticdslPackage.ANY_PROPERTY__NOT_EMPTY: setNotEmpty(NOT_EMPTY_EDEFAULT); return; case TacticdslPackage.ANY_PROPERTY__NOT_EMPTY_MESSAGE: setNotEmptyMessage(NOT_EMPTY_MESSAGE_EDEFAULT); return; case TacticdslPackage.ANY_PROPERTY__SIZE: setSize(SIZE_EDEFAULT); return; case TacticdslPackage.ANY_PROPERTY__VALIDATE: setValidate(VALIDATE_EDEFAULT); return; case TacticdslPackage.ANY_PROPERTY__TRANSIENT: setTransient(TRANSIENT_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case TacticdslPackage.ANY_PROPERTY__DOC: return DOC_EDEFAULT == null ? doc != null : !DOC_EDEFAULT.equals(doc); case TacticdslPackage.ANY_PROPERTY__VISIBILITY: return visibility != VISIBILITY_EDEFAULT; case TacticdslPackage.ANY_PROPERTY__COLLECTION_TYPE: return collectionType != COLLECTION_TYPE_EDEFAULT; case TacticdslPackage.ANY_PROPERTY__NAME: return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); case TacticdslPackage.ANY_PROPERTY__KEY: return key != KEY_EDEFAULT; case TacticdslPackage.ANY_PROPERTY__NOT_CHANGEABLE: return notChangeable != NOT_CHANGEABLE_EDEFAULT; case TacticdslPackage.ANY_PROPERTY__REQUIRED: return required != REQUIRED_EDEFAULT; case TacticdslPackage.ANY_PROPERTY__NULLABLE: return nullable != NULLABLE_EDEFAULT; case TacticdslPackage.ANY_PROPERTY__NULLABLE_MESSAGE: return NULLABLE_MESSAGE_EDEFAULT == null ? nullableMessage != null : !NULLABLE_MESSAGE_EDEFAULT.equals(nullableMessage); case TacticdslPackage.ANY_PROPERTY__HINT: return HINT_EDEFAULT == null ? hint != null : !HINT_EDEFAULT.equals(hint); case TacticdslPackage.ANY_PROPERTY__NOT_EMPTY: return notEmpty != NOT_EMPTY_EDEFAULT; case TacticdslPackage.ANY_PROPERTY__NOT_EMPTY_MESSAGE: return NOT_EMPTY_MESSAGE_EDEFAULT == null ? notEmptyMessage != null : !NOT_EMPTY_MESSAGE_EDEFAULT.equals(notEmptyMessage); case TacticdslPackage.ANY_PROPERTY__SIZE: return SIZE_EDEFAULT == null ? size != null : !SIZE_EDEFAULT.equals(size); case TacticdslPackage.ANY_PROPERTY__VALIDATE: return VALIDATE_EDEFAULT == null ? validate != null : !VALIDATE_EDEFAULT.equals(validate); case TacticdslPackage.ANY_PROPERTY__TRANSIENT: return transient_ != TRANSIENT_EDEFAULT; } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (doc: "); result.append(doc); result.append(", visibility: "); result.append(visibility); result.append(", collectionType: "); result.append(collectionType); result.append(", name: "); result.append(name); result.append(", key: "); result.append(key); result.append(", notChangeable: "); result.append(notChangeable); result.append(", required: "); result.append(required); result.append(", nullable: "); result.append(nullable); result.append(", nullableMessage: "); result.append(nullableMessage); result.append(", hint: "); result.append(hint); result.append(", notEmpty: "); result.append(notEmpty); result.append(", notEmptyMessage: "); result.append(notEmptyMessage); result.append(", size: "); result.append(size); result.append(", validate: "); result.append(validate); result.append(", transient: "); result.append(transient_); result.append(')'); return result.toString(); } } //AnyPropertyImpl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy