blob: ce5c9a541c927f4437c54f0d7e9bdff6591d5d94 [file] [log] [blame]
/**
* Copyright (c) 2011, 2015 - Lunifera GmbH (Gross Enzersdorf, Austria), Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Florian Pirchner - Initial implementation
*/
package org.eclipse.osbp.ecview.core.extension.model.extension.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.osbp.ecview.core.common.model.core.CoreModelPackage;
import org.eclipse.osbp.ecview.core.common.model.core.YBindable;
import org.eclipse.osbp.ecview.core.common.model.core.YEmbeddableValueEndpoint;
import org.eclipse.osbp.ecview.core.common.model.core.YValueBindable;
import org.eclipse.osbp.ecview.core.common.model.datatypes.YDatadescription;
import org.eclipse.osbp.ecview.core.extension.model.extension.ExtensionModelPackage;
import org.eclipse.osbp.ecview.core.extension.model.extension.YReferenceSearchField;
import org.eclipse.osbp.ecview.core.extension.model.extension.YSearchWildcards;
// TODO: Auto-generated Javadoc
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>YReference Search Field</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YReferenceSearchFieldImpl#getValueBindingEndpoint <em>Value Binding Endpoint</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YReferenceSearchFieldImpl#getDatadescription <em>Datadescription</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YReferenceSearchFieldImpl#getValue <em>Value</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YReferenceSearchFieldImpl#getWildcard <em>Wildcard</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YReferenceSearchFieldImpl#getPropertyPath <em>Property Path</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YReferenceSearchFieldImpl#getType <em>Type</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YReferenceSearchFieldImpl#getEmfNsURI <em>Emf Ns URI</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YReferenceSearchFieldImpl#getTypeQualifiedName <em>Type Qualified Name</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class YReferenceSearchFieldImpl extends YInputImpl implements YReferenceSearchField {
/**
* The cached value of the '{@link #getValueBindingEndpoint() <em>Value Binding Endpoint</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueBindingEndpoint()
* @generated
* @ordered
*/
protected YEmbeddableValueEndpoint valueBindingEndpoint;
/**
* The cached value of the '{@link #getDatadescription() <em>Datadescription</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDatadescription()
* @generated
* @ordered
*/
protected YDatadescription datadescription;
/**
* The default value of the '{@link #getValue() <em>Value</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValue()
* @generated
* @ordered
*/
protected static final Object VALUE_EDEFAULT = null;
/**
* The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValue()
* @generated
* @ordered
*/
protected Object value = VALUE_EDEFAULT;
/**
* The default value of the '{@link #getWildcard() <em>Wildcard</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getWildcard()
* @generated
* @ordered
*/
protected static final YSearchWildcards WILDCARD_EDEFAULT = YSearchWildcards.GT;
/**
* The cached value of the '{@link #getWildcard() <em>Wildcard</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getWildcard()
* @generated
* @ordered
*/
protected YSearchWildcards wildcard = WILDCARD_EDEFAULT;
/**
* The default value of the '{@link #getPropertyPath() <em>Property Path</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getPropertyPath()
* @generated
* @ordered
*/
protected static final String PROPERTY_PATH_EDEFAULT = null;
/**
* The cached value of the '{@link #getPropertyPath() <em>Property Path</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getPropertyPath()
* @generated
* @ordered
*/
protected String propertyPath = PROPERTY_PATH_EDEFAULT;
/**
* The cached value of the '{@link #getType() <em>Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getType()
* @generated
* @ordered
*/
protected Class<?> type;
/**
* The default value of the '{@link #getEmfNsURI() <em>Emf Ns URI</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getEmfNsURI()
* @generated
* @ordered
*/
protected static final String EMF_NS_URI_EDEFAULT = null;
/**
* The cached value of the '{@link #getEmfNsURI() <em>Emf Ns URI</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getEmfNsURI()
* @generated
* @ordered
*/
protected String emfNsURI = EMF_NS_URI_EDEFAULT;
/**
* The default value of the '{@link #getTypeQualifiedName() <em>Type Qualified Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTypeQualifiedName()
* @generated
* @ordered
*/
protected static final String TYPE_QUALIFIED_NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getTypeQualifiedName() <em>Type Qualified Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTypeQualifiedName()
* @generated
* @ordered
*/
protected String typeQualifiedName = TYPE_QUALIFIED_NAME_EDEFAULT;
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @generated
*/
protected YReferenceSearchFieldImpl() {
super();
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @return the e class
* @generated
*/
@Override
protected EClass eStaticClass() {
return ExtensionModelPackage.Literals.YREFERENCE_SEARCH_FIELD;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @return the cached value of the '{@link #getValueBindingEndpoint()
* <em>Value Binding Endpoint</em>}' reference
* @generated
*/
public YEmbeddableValueEndpoint getValueBindingEndpoint() {
if (valueBindingEndpoint != null && valueBindingEndpoint.eIsProxy()) {
InternalEObject oldValueBindingEndpoint = (InternalEObject)valueBindingEndpoint;
valueBindingEndpoint = (YEmbeddableValueEndpoint)eResolveProxy(oldValueBindingEndpoint);
if (valueBindingEndpoint != oldValueBindingEndpoint) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__VALUE_BINDING_ENDPOINT, oldValueBindingEndpoint, valueBindingEndpoint));
}
}
return valueBindingEndpoint;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @return the y embeddable value endpoint
* @generated
*/
public YEmbeddableValueEndpoint basicGetValueBindingEndpoint() {
return valueBindingEndpoint;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param newValueBindingEndpoint
* the new value binding endpoint
* @param msgs
* the msgs
* @return the notification chain
* @generated
*/
public NotificationChain basicSetValueBindingEndpoint(YEmbeddableValueEndpoint newValueBindingEndpoint, NotificationChain msgs) {
YEmbeddableValueEndpoint oldValueBindingEndpoint = valueBindingEndpoint;
valueBindingEndpoint = newValueBindingEndpoint;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__VALUE_BINDING_ENDPOINT, oldValueBindingEndpoint, newValueBindingEndpoint);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param newValueBindingEndpoint
* the new cached value of the '
* {@link #getValueBindingEndpoint()
* <em>Value Binding Endpoint</em>}' reference
* @generated
*/
public void setValueBindingEndpoint(YEmbeddableValueEndpoint newValueBindingEndpoint) {
if (newValueBindingEndpoint != valueBindingEndpoint) {
NotificationChain msgs = null;
if (valueBindingEndpoint != null)
msgs = ((InternalEObject)valueBindingEndpoint).eInverseRemove(this, CoreModelPackage.YEMBEDDABLE_VALUE_ENDPOINT__ELEMENT, YEmbeddableValueEndpoint.class, msgs);
if (newValueBindingEndpoint != null)
msgs = ((InternalEObject)newValueBindingEndpoint).eInverseAdd(this, CoreModelPackage.YEMBEDDABLE_VALUE_ENDPOINT__ELEMENT, YEmbeddableValueEndpoint.class, msgs);
msgs = basicSetValueBindingEndpoint(newValueBindingEndpoint, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__VALUE_BINDING_ENDPOINT, newValueBindingEndpoint, newValueBindingEndpoint));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @return the cached value of the '{@link #getDatadescription()
* <em>Datadescription</em>}' reference
* @generated
*/
public YDatadescription getDatadescription() {
if (datadescription != null && datadescription.eIsProxy()) {
InternalEObject oldDatadescription = (InternalEObject)datadescription;
datadescription = (YDatadescription)eResolveProxy(oldDatadescription);
if (datadescription != oldDatadescription) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__DATADESCRIPTION, oldDatadescription, datadescription));
}
}
return datadescription;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @return the y datadescription
* @generated
*/
public YDatadescription basicGetDatadescription() {
return datadescription;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param newDatadescription
* the new cached value of the '{@link #getDatadescription()
* <em>Datadescription</em>}' reference
* @generated
*/
public void setDatadescription(YDatadescription newDatadescription) {
YDatadescription oldDatadescription = datadescription;
datadescription = newDatadescription;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__DATADESCRIPTION, oldDatadescription, datadescription));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @return the cached value of the '{@link #getValue() <em>Value</em>}'
* attribute
* @generated
*/
public Object getValue() {
return value;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param newValue
* the new cached value of the '{@link #getValue()
* <em>Value</em>}' attribute
* @generated
*/
public void setValue(Object newValue) {
Object oldValue = value;
value = newValue;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__VALUE, oldValue, value));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @return the cached value of the '{@link #getWildcard() <em>Wildcard</em>}
* ' attribute
* @generated
*/
public YSearchWildcards getWildcard() {
return wildcard;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param newWildcard
* the new cached value of the '{@link #getWildcard()
* <em>Wildcard</em>}' attribute
* @generated
*/
public void setWildcard(YSearchWildcards newWildcard) {
YSearchWildcards oldWildcard = wildcard;
wildcard = newWildcard == null ? WILDCARD_EDEFAULT : newWildcard;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__WILDCARD, oldWildcard, wildcard));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @return the cached value of the '{@link #getPropertyPath()
* <em>Property Path</em>}' attribute
* @generated
*/
public String getPropertyPath() {
return propertyPath;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param newPropertyPath
* the new cached value of the '{@link #getPropertyPath()
* <em>Property Path</em>}' attribute
* @generated
*/
public void setPropertyPath(String newPropertyPath) {
String oldPropertyPath = propertyPath;
propertyPath = newPropertyPath;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__PROPERTY_PATH, oldPropertyPath, propertyPath));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @return the cached value of the '{@link #getType() <em>Type</em>}'
* attribute
* @generated
*/
public Class<?> getType() {
return type;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param newType
* the new cached value of the '{@link #getType() <em>Type</em>}'
* attribute
* @generated
*/
public void setType(Class<?> newType) {
Class<?> oldType = type;
type = newType;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__TYPE, oldType, type));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @return the cached value of the '{@link #getEmfNsURI()
* <em>Emf Ns URI</em>}' attribute
* @generated
*/
public String getEmfNsURI() {
return emfNsURI;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param newEmfNsURI
* the new cached value of the '{@link #getEmfNsURI()
* <em>Emf Ns URI</em>}' attribute
* @generated
*/
public void setEmfNsURI(String newEmfNsURI) {
String oldEmfNsURI = emfNsURI;
emfNsURI = newEmfNsURI;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__EMF_NS_URI, oldEmfNsURI, emfNsURI));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @return the cached value of the '{@link #getTypeQualifiedName()
* <em>Type Qualified Name</em>}' attribute
* @generated
*/
public String getTypeQualifiedName() {
return typeQualifiedName;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param newTypeQualifiedName
* the new cached value of the '{@link #getTypeQualifiedName()
* <em>Type Qualified Name</em>}' attribute
* @generated
*/
public void setTypeQualifiedName(String newTypeQualifiedName) {
String oldTypeQualifiedName = typeQualifiedName;
typeQualifiedName = newTypeQualifiedName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__TYPE_QUALIFIED_NAME, oldTypeQualifiedName, typeQualifiedName));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @return the y embeddable value endpoint
* @generated
*/
public YEmbeddableValueEndpoint createValueEndpoint() {
// TODO: implement this method
// Ensure that you remove @generated or mark it @generated NOT
throw new UnsupportedOperationException();
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param otherEnd
* the other end
* @param featureID
* the feature id
* @param msgs
* the msgs
* @return the notification chain
* @generated
*/
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__VALUE_BINDING_ENDPOINT:
if (valueBindingEndpoint != null)
msgs = ((InternalEObject)valueBindingEndpoint).eInverseRemove(this, CoreModelPackage.YEMBEDDABLE_VALUE_ENDPOINT__ELEMENT, YEmbeddableValueEndpoint.class, msgs);
return basicSetValueBindingEndpoint((YEmbeddableValueEndpoint)otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param otherEnd
* the other end
* @param featureID
* the feature id
* @param msgs
* the msgs
* @return the notification chain
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__VALUE_BINDING_ENDPOINT:
return basicSetValueBindingEndpoint(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param featureID
* the feature id
* @param resolve
* the resolve
* @param coreType
* the core type
* @return the object
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__VALUE_BINDING_ENDPOINT:
if (resolve) return getValueBindingEndpoint();
return basicGetValueBindingEndpoint();
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__DATADESCRIPTION:
if (resolve) return getDatadescription();
return basicGetDatadescription();
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__VALUE:
return getValue();
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__WILDCARD:
return getWildcard();
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__PROPERTY_PATH:
return getPropertyPath();
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__TYPE:
return getType();
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__EMF_NS_URI:
return getEmfNsURI();
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__TYPE_QUALIFIED_NAME:
return getTypeQualifiedName();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param featureID
* the feature id
* @param newValue
* the new value
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__VALUE_BINDING_ENDPOINT:
setValueBindingEndpoint((YEmbeddableValueEndpoint)newValue);
return;
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__DATADESCRIPTION:
setDatadescription((YDatadescription)newValue);
return;
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__VALUE:
setValue(newValue);
return;
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__WILDCARD:
setWildcard((YSearchWildcards)newValue);
return;
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__PROPERTY_PATH:
setPropertyPath((String)newValue);
return;
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__TYPE:
setType((Class<?>)newValue);
return;
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__EMF_NS_URI:
setEmfNsURI((String)newValue);
return;
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__TYPE_QUALIFIED_NAME:
setTypeQualifiedName((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param featureID
* the feature id
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__VALUE_BINDING_ENDPOINT:
setValueBindingEndpoint((YEmbeddableValueEndpoint)null);
return;
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__DATADESCRIPTION:
setDatadescription((YDatadescription)null);
return;
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__VALUE:
setValue(VALUE_EDEFAULT);
return;
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__WILDCARD:
setWildcard(WILDCARD_EDEFAULT);
return;
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__PROPERTY_PATH:
setPropertyPath(PROPERTY_PATH_EDEFAULT);
return;
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__TYPE:
setType((Class<?>)null);
return;
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__EMF_NS_URI:
setEmfNsURI(EMF_NS_URI_EDEFAULT);
return;
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__TYPE_QUALIFIED_NAME:
setTypeQualifiedName(TYPE_QUALIFIED_NAME_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param featureID
* the feature id
* @return true, if successful
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__VALUE_BINDING_ENDPOINT:
return valueBindingEndpoint != null;
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__DATADESCRIPTION:
return datadescription != null;
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__VALUE:
return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__WILDCARD:
return wildcard != WILDCARD_EDEFAULT;
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__PROPERTY_PATH:
return PROPERTY_PATH_EDEFAULT == null ? propertyPath != null : !PROPERTY_PATH_EDEFAULT.equals(propertyPath);
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__TYPE:
return type != null;
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__EMF_NS_URI:
return EMF_NS_URI_EDEFAULT == null ? emfNsURI != null : !EMF_NS_URI_EDEFAULT.equals(emfNsURI);
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__TYPE_QUALIFIED_NAME:
return TYPE_QUALIFIED_NAME_EDEFAULT == null ? typeQualifiedName != null : !TYPE_QUALIFIED_NAME_EDEFAULT.equals(typeQualifiedName);
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param derivedFeatureID
* the derived feature id
* @param baseClass
* the base class
* @return the int
* @generated
*/
@Override
public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
if (baseClass == YBindable.class) {
switch (derivedFeatureID) {
default: return -1;
}
}
if (baseClass == YValueBindable.class) {
switch (derivedFeatureID) {
case ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__VALUE_BINDING_ENDPOINT: return CoreModelPackage.YVALUE_BINDABLE__VALUE_BINDING_ENDPOINT;
default: return -1;
}
}
return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param baseFeatureID
* the base feature id
* @param baseClass
* the base class
* @return the int
* @generated
*/
@Override
public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
if (baseClass == YBindable.class) {
switch (baseFeatureID) {
default: return -1;
}
}
if (baseClass == YValueBindable.class) {
switch (baseFeatureID) {
case CoreModelPackage.YVALUE_BINDABLE__VALUE_BINDING_ENDPOINT: return ExtensionModelPackage.YREFERENCE_SEARCH_FIELD__VALUE_BINDING_ENDPOINT;
default: return -1;
}
}
return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @return the string
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (value: ");
result.append(value);
result.append(", wildcard: ");
result.append(wildcard);
result.append(", propertyPath: ");
result.append(propertyPath);
result.append(", type: ");
result.append(type);
result.append(", emfNsURI: ");
result.append(emfNsURI);
result.append(", typeQualifiedName: ");
result.append(typeQualifiedName);
result.append(')');
return result.toString();
}
/* (non-Javadoc)
* @see org.eclipse.osbp.ecview.core.common.model.core.impl.YFieldImpl#getLabel()
*/
@Override
public String getLabel() {
YDatadescription ds = getDatadescription();
if (ds != null) {
return ds.getLabel();
}
return "";
}
/* (non-Javadoc)
* @see org.eclipse.osbp.ecview.core.common.model.core.impl.YFieldImpl#getLabelI18nKey()
*/
@Override
public String getLabelI18nKey() {
YDatadescription ds = getDatadescription();
if (ds != null) {
return ds.getLabelI18nKey();
}
return "";
}
} //YReferenceSearchFieldImpl