blob: a8e96b198b138e675394cd18ddda05e2e288a875 [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 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* 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.CoreModelFactory;
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.YBlurNotifier;
import org.eclipse.osbp.ecview.core.common.model.core.YEmbeddableEvent;
import org.eclipse.osbp.ecview.core.common.model.core.YEmbeddableValueEndpoint;
import org.eclipse.osbp.ecview.core.common.model.core.YFocusNotifier;
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.YBeanReferenceField;
import org.eclipse.osbp.ecview.core.extension.model.extension.YBeanServiceConsumer;
import org.eclipse.osbp.ecview.core.extension.model.extension.YFilteringComponent;
// TODO: Auto-generated Javadoc
/**
* <!-- begin-user-doc --> An implementation of the model object '
* <em><b>YBean Reference Field</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YBeanReferenceFieldImpl#getValueBindingEndpoint <em>Value Binding Endpoint</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YBeanReferenceFieldImpl#isUseBeanService <em>Use Bean Service</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YBeanReferenceFieldImpl#getLastBlurEvent <em>Last Blur Event</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YBeanReferenceFieldImpl#getLastFocusEvent <em>Last Focus Event</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YBeanReferenceFieldImpl#getDatadescription <em>Datadescription</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YBeanReferenceFieldImpl#getValue <em>Value</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YBeanReferenceFieldImpl#getType <em>Type</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YBeanReferenceFieldImpl#getEmfNsURI <em>Emf Ns URI</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YBeanReferenceFieldImpl#getTypeQualifiedName <em>Type Qualified Name</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YBeanReferenceFieldImpl#getInMemoryBeanProvider <em>In Memory Bean Provider</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YBeanReferenceFieldImpl#getInMemoryBeanProviderQualifiedName <em>In Memory Bean Provider Qualified Name</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YBeanReferenceFieldImpl#getCaptionPropertyPath <em>Caption Property Path</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YBeanReferenceFieldImpl#getImagePropertyPath <em>Image Property Path</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YBeanReferenceFieldImpl#getDescriptionProperty <em>Description Property</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YBeanReferenceFieldImpl#getDescription <em>Description</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YBeanReferenceFieldImpl#getReferenceSourceType <em>Reference Source Type</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YBeanReferenceFieldImpl#getReferenceSourceTypeQualifiedName <em>Reference Source Type Qualified Name</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YBeanReferenceFieldImpl#getReferenceSourceTypeProperty <em>Reference Source Type Property</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YBeanReferenceFieldImpl#isRequired <em>Required</em>}</li>
* <li>{@link org.eclipse.osbp.ecview.core.extension.model.extension.impl.YBeanReferenceFieldImpl#getFilteringComponent <em>Filtering Component</em>}</li>
* </ul>
*
* @generated
*/
public class YBeanReferenceFieldImpl extends YInputImpl implements
YBeanReferenceField {
/**
* 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 default value of the '{@link #isUseBeanService() <em>Use Bean Service</em>}' attribute.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @see #isUseBeanService()
* @generated
* @ordered
*/
protected static final boolean USE_BEAN_SERVICE_EDEFAULT = false;
/**
* The cached value of the '{@link #isUseBeanService() <em>Use Bean Service</em>}' attribute.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @see #isUseBeanService()
* @generated
* @ordered
*/
protected boolean useBeanService = USE_BEAN_SERVICE_EDEFAULT;
/**
* The cached value of the '{@link #getLastBlurEvent() <em>Last Blur Event</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getLastBlurEvent()
* @generated
* @ordered
*/
protected YEmbeddableEvent lastBlurEvent;
/**
* The cached value of the '{@link #getLastFocusEvent() <em>Last Focus Event</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getLastFocusEvent()
* @generated
* @ordered
*/
protected YEmbeddableEvent lastFocusEvent;
/**
* 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 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;
/**
* The cached value of the '{@link #getInMemoryBeanProvider() <em>In Memory Bean Provider</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getInMemoryBeanProvider()
* @generated
* @ordered
*/
protected Class<?> inMemoryBeanProvider;
/**
* The default value of the '{@link #getInMemoryBeanProviderQualifiedName()
* <em>In Memory Bean Provider Qualified Name</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @see #getInMemoryBeanProviderQualifiedName()
* @generated
* @ordered
*/
protected static final String IN_MEMORY_BEAN_PROVIDER_QUALIFIED_NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getInMemoryBeanProviderQualifiedName()
* <em>In Memory Bean Provider Qualified Name</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @see #getInMemoryBeanProviderQualifiedName()
* @generated
* @ordered
*/
protected String inMemoryBeanProviderQualifiedName = IN_MEMORY_BEAN_PROVIDER_QUALIFIED_NAME_EDEFAULT;
/**
* The default value of the '{@link #getCaptionPropertyPath() <em>Caption Property Path</em>}' attribute.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @see #getCaptionPropertyPath()
* @generated
* @ordered
*/
protected static final String CAPTION_PROPERTY_PATH_EDEFAULT = null;
/**
* The cached value of the '{@link #getCaptionPropertyPath() <em>Caption Property Path</em>}' attribute.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @see #getCaptionPropertyPath()
* @generated
* @ordered
*/
protected String captionPropertyPath = CAPTION_PROPERTY_PATH_EDEFAULT;
/**
* The default value of the '{@link #getImagePropertyPath() <em>Image Property Path</em>}' attribute.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @see #getImagePropertyPath()
* @generated
* @ordered
*/
protected static final String IMAGE_PROPERTY_PATH_EDEFAULT = null;
/**
* The cached value of the '{@link #getImagePropertyPath() <em>Image Property Path</em>}' attribute.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @see #getImagePropertyPath()
* @generated
* @ordered
*/
protected String imagePropertyPath = IMAGE_PROPERTY_PATH_EDEFAULT;
/**
* The default value of the '{@link #getDescriptionProperty() <em>Description Property</em>}' attribute.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @see #getDescriptionProperty()
* @generated
* @ordered
*/
protected static final String DESCRIPTION_PROPERTY_EDEFAULT = null;
/**
* The cached value of the '{@link #getDescriptionProperty() <em>Description Property</em>}' attribute.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @see #getDescriptionProperty()
* @generated
* @ordered
*/
protected String descriptionProperty = DESCRIPTION_PROPERTY_EDEFAULT;
/**
* The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @see #getDescription()
* @generated
* @ordered
*/
protected static final String DESCRIPTION_EDEFAULT = null;
/**
* The cached value of the '{@link #getDescription() <em>Description</em>}' attribute.
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @see #getDescription()
* @generated
* @ordered
*/
protected String description = DESCRIPTION_EDEFAULT;
/**
* The cached value of the '{@link #getReferenceSourceType() <em>Reference Source Type</em>}' attribute.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @see #getReferenceSourceType()
* @generated
* @ordered
*/
protected Class<?> referenceSourceType;
/**
* The default value of the '{@link #getReferenceSourceTypeQualifiedName()
* <em>Reference Source Type Qualified Name</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @see #getReferenceSourceTypeQualifiedName()
* @generated
* @ordered
*/
protected static final String REFERENCE_SOURCE_TYPE_QUALIFIED_NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getReferenceSourceTypeQualifiedName()
* <em>Reference Source Type Qualified Name</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @see #getReferenceSourceTypeQualifiedName()
* @generated
* @ordered
*/
protected String referenceSourceTypeQualifiedName = REFERENCE_SOURCE_TYPE_QUALIFIED_NAME_EDEFAULT;
/**
* The default value of the '{@link #getReferenceSourceTypeProperty() <em>Reference Source Type Property</em>}' attribute.
* <!-- begin-user-doc
* --> <!-- end-user-doc -->
* @see #getReferenceSourceTypeProperty()
* @generated
* @ordered
*/
protected static final String REFERENCE_SOURCE_TYPE_PROPERTY_EDEFAULT = null;
/**
* The cached value of the '{@link #getReferenceSourceTypeProperty() <em>Reference Source Type Property</em>}' attribute.
* <!-- begin-user-doc
* --> <!-- end-user-doc -->
* @see #getReferenceSourceTypeProperty()
* @generated
* @ordered
*/
protected String referenceSourceTypeProperty = REFERENCE_SOURCE_TYPE_PROPERTY_EDEFAULT;
/**
* The default value of the '{@link #isRequired() <em>Required</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isRequired()
* @generated
* @ordered
*/
protected static final boolean REQUIRED_EDEFAULT = false;
/**
* The cached value of the '{@link #isRequired() <em>Required</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isRequired()
* @generated
* @ordered
*/
protected boolean required = REQUIRED_EDEFAULT;
/**
* The cached value of the '{@link #getFilteringComponent() <em>Filtering Component</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getFilteringComponent()
* @generated
* @ordered
*/
protected YFilteringComponent filteringComponent;
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @generated
*/
protected YBeanReferenceFieldImpl() {
super();
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @return the e class
* @generated
*/
@Override
protected EClass eStaticClass() {
return ExtensionModelPackage.Literals.YBEAN_REFERENCE_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.YBEAN_REFERENCE_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.YBEAN_REFERENCE_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.YBEAN_REFERENCE_FIELD__VALUE_BINDING_ENDPOINT, newValueBindingEndpoint, newValueBindingEndpoint));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @return the cached value of the '{@link #isUseBeanService()
* <em>Use Bean Service</em>}' attribute
* @generated
*/
public boolean isUseBeanService() {
return useBeanService;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param newUseBeanService
* the new cached value of the '{@link #isUseBeanService()
* <em>Use Bean Service</em>}' attribute
* @generated
*/
public void setUseBeanService(boolean newUseBeanService) {
boolean oldUseBeanService = useBeanService;
useBeanService = newUseBeanService;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ExtensionModelPackage.YBEAN_REFERENCE_FIELD__USE_BEAN_SERVICE, oldUseBeanService, useBeanService));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public YEmbeddableEvent getLastBlurEvent() {
if (lastBlurEvent != null && lastBlurEvent.eIsProxy()) {
InternalEObject oldLastBlurEvent = (InternalEObject)lastBlurEvent;
lastBlurEvent = (YEmbeddableEvent)eResolveProxy(oldLastBlurEvent);
if (lastBlurEvent != oldLastBlurEvent) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, ExtensionModelPackage.YBEAN_REFERENCE_FIELD__LAST_BLUR_EVENT, oldLastBlurEvent, lastBlurEvent));
}
}
return lastBlurEvent;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public YEmbeddableEvent basicGetLastBlurEvent() {
return lastBlurEvent;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setLastBlurEvent(YEmbeddableEvent newLastBlurEvent) {
YEmbeddableEvent oldLastBlurEvent = lastBlurEvent;
lastBlurEvent = newLastBlurEvent;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ExtensionModelPackage.YBEAN_REFERENCE_FIELD__LAST_BLUR_EVENT, oldLastBlurEvent, lastBlurEvent));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public YEmbeddableEvent getLastFocusEvent() {
if (lastFocusEvent != null && lastFocusEvent.eIsProxy()) {
InternalEObject oldLastFocusEvent = (InternalEObject)lastFocusEvent;
lastFocusEvent = (YEmbeddableEvent)eResolveProxy(oldLastFocusEvent);
if (lastFocusEvent != oldLastFocusEvent) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, ExtensionModelPackage.YBEAN_REFERENCE_FIELD__LAST_FOCUS_EVENT, oldLastFocusEvent, lastFocusEvent));
}
}
return lastFocusEvent;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public YEmbeddableEvent basicGetLastFocusEvent() {
return lastFocusEvent;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setLastFocusEvent(YEmbeddableEvent newLastFocusEvent) {
YEmbeddableEvent oldLastFocusEvent = lastFocusEvent;
lastFocusEvent = newLastFocusEvent;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ExtensionModelPackage.YBEAN_REFERENCE_FIELD__LAST_FOCUS_EVENT, oldLastFocusEvent, lastFocusEvent));
}
/**
* <!-- 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.YBEAN_REFERENCE_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.YBEAN_REFERENCE_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.YBEAN_REFERENCE_FIELD__VALUE, oldValue, value));
}
/**
* <!-- 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.YBEAN_REFERENCE_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.YBEAN_REFERENCE_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.YBEAN_REFERENCE_FIELD__TYPE_QUALIFIED_NAME, oldTypeQualifiedName, typeQualifiedName));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @return the cached value of the '{@link #getInMemoryBeanProvider()
* <em>In Memory Bean Provider</em>}' attribute
* @generated
*/
public Class<?> getInMemoryBeanProvider() {
return inMemoryBeanProvider;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param newInMemoryBeanProvider
* the new cached value of the '
* {@link #getInMemoryBeanProvider()
* <em>In Memory Bean Provider</em>}' attribute
* @generated
*/
public void setInMemoryBeanProvider(Class<?> newInMemoryBeanProvider) {
Class<?> oldInMemoryBeanProvider = inMemoryBeanProvider;
inMemoryBeanProvider = newInMemoryBeanProvider;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ExtensionModelPackage.YBEAN_REFERENCE_FIELD__IN_MEMORY_BEAN_PROVIDER, oldInMemoryBeanProvider, inMemoryBeanProvider));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @return the cached value of the '
* {@link #getInMemoryBeanProviderQualifiedName()
* <em>In Memory Bean Provider Qualified Name</em>}' attribute
* @generated
*/
public String getInMemoryBeanProviderQualifiedName() {
return inMemoryBeanProviderQualifiedName;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param newInMemoryBeanProviderQualifiedName
* the new cached value of the '
* {@link #getInMemoryBeanProviderQualifiedName()
* <em>In Memory Bean Provider Qualified Name</em>}' attribute
* @generated
*/
public void setInMemoryBeanProviderQualifiedName(
String newInMemoryBeanProviderQualifiedName) {
String oldInMemoryBeanProviderQualifiedName = inMemoryBeanProviderQualifiedName;
inMemoryBeanProviderQualifiedName = newInMemoryBeanProviderQualifiedName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ExtensionModelPackage.YBEAN_REFERENCE_FIELD__IN_MEMORY_BEAN_PROVIDER_QUALIFIED_NAME, oldInMemoryBeanProviderQualifiedName, inMemoryBeanProviderQualifiedName));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @return the cached value of the '{@link #getCaptionPropertyPath()
* <em>Caption Property Path</em>}' attribute
* @generated
*/
public String getCaptionPropertyPath() {
return captionPropertyPath;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param newCaptionPropertyPath
* the new cached value of the '{@link #getCaptionPropertyPath()
* <em>Caption Property Path</em>}' attribute
* @generated
*/
public void setCaptionPropertyPath(String newCaptionPropertyPath) {
String oldCaptionPropertyPath = captionPropertyPath;
captionPropertyPath = newCaptionPropertyPath;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ExtensionModelPackage.YBEAN_REFERENCE_FIELD__CAPTION_PROPERTY_PATH, oldCaptionPropertyPath, captionPropertyPath));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @return the cached value of the '{@link #getImagePropertyPath()
* <em>Image Property Path</em>}' attribute
* @generated
*/
public String getImagePropertyPath() {
return imagePropertyPath;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param newImagePropertyPath
* the new cached value of the '{@link #getImagePropertyPath()
* <em>Image Property Path</em>}' attribute
* @generated
*/
public void setImagePropertyPath(String newImagePropertyPath) {
String oldImagePropertyPath = imagePropertyPath;
imagePropertyPath = newImagePropertyPath;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ExtensionModelPackage.YBEAN_REFERENCE_FIELD__IMAGE_PROPERTY_PATH, oldImagePropertyPath, imagePropertyPath));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @return the cached value of the '{@link #getDescriptionProperty()
* <em>Description Property</em>}' attribute
* @generated
*/
public String getDescriptionProperty() {
return descriptionProperty;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param newDescriptionProperty
* the new cached value of the '{@link #getDescriptionProperty()
* <em>Description Property</em>}' attribute
* @generated
*/
public void setDescriptionProperty(String newDescriptionProperty) {
String oldDescriptionProperty = descriptionProperty;
descriptionProperty = newDescriptionProperty;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ExtensionModelPackage.YBEAN_REFERENCE_FIELD__DESCRIPTION_PROPERTY, oldDescriptionProperty, descriptionProperty));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @return the cached value of the '{@link #getDescription()
* <em>Description</em>}' attribute
* @generated
*/
public String getDescription() {
return description;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param newDescription
* the new cached value of the '{@link #getDescription()
* <em>Description</em>}' attribute
* @generated
*/
public void setDescription(String newDescription) {
String oldDescription = description;
description = newDescription;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ExtensionModelPackage.YBEAN_REFERENCE_FIELD__DESCRIPTION, oldDescription, description));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @return the cached value of the '{@link #getReferenceSourceType()
* <em>Reference Source Type</em>}' attribute
* @generated
*/
public Class<?> getReferenceSourceType() {
return referenceSourceType;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param newReferenceSourceType
* the new cached value of the '{@link #getReferenceSourceType()
* <em>Reference Source Type</em>}' attribute
* @generated
*/
public void setReferenceSourceType(Class<?> newReferenceSourceType) {
Class<?> oldReferenceSourceType = referenceSourceType;
referenceSourceType = newReferenceSourceType;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ExtensionModelPackage.YBEAN_REFERENCE_FIELD__REFERENCE_SOURCE_TYPE, oldReferenceSourceType, referenceSourceType));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @return the cached value of the '
* {@link #getReferenceSourceTypeQualifiedName()
* <em>Reference Source Type Qualified Name</em>}' attribute
* @generated
*/
public String getReferenceSourceTypeQualifiedName() {
return referenceSourceTypeQualifiedName;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param newReferenceSourceTypeQualifiedName
* the new cached value of the '
* {@link #getReferenceSourceTypeQualifiedName()
* <em>Reference Source Type Qualified Name</em>}' attribute
* @generated
*/
public void setReferenceSourceTypeQualifiedName(
String newReferenceSourceTypeQualifiedName) {
String oldReferenceSourceTypeQualifiedName = referenceSourceTypeQualifiedName;
referenceSourceTypeQualifiedName = newReferenceSourceTypeQualifiedName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ExtensionModelPackage.YBEAN_REFERENCE_FIELD__REFERENCE_SOURCE_TYPE_QUALIFIED_NAME, oldReferenceSourceTypeQualifiedName, referenceSourceTypeQualifiedName));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @return the cached value of the '
* {@link #getReferenceSourceTypeProperty()
* <em>Reference Source Type Property</em>}' attribute
* @generated
*/
public String getReferenceSourceTypeProperty() {
return referenceSourceTypeProperty;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @param newReferenceSourceTypeProperty
* the new cached value of the '
* {@link #getReferenceSourceTypeProperty()
* <em>Reference Source Type Property</em>}' attribute
* @generated
*/
public void setReferenceSourceTypeProperty(
String newReferenceSourceTypeProperty) {
String oldReferenceSourceTypeProperty = referenceSourceTypeProperty;
referenceSourceTypeProperty = newReferenceSourceTypeProperty;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ExtensionModelPackage.YBEAN_REFERENCE_FIELD__REFERENCE_SOURCE_TYPE_PROPERTY, oldReferenceSourceTypeProperty, referenceSourceTypeProperty));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isRequired() {
return required;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setRequired(boolean newRequired) {
boolean oldRequired = required;
required = newRequired;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ExtensionModelPackage.YBEAN_REFERENCE_FIELD__REQUIRED, oldRequired, required));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public YFilteringComponent getFilteringComponent() {
if (filteringComponent != null && filteringComponent.eIsProxy()) {
InternalEObject oldFilteringComponent = (InternalEObject)filteringComponent;
filteringComponent = (YFilteringComponent)eResolveProxy(oldFilteringComponent);
if (filteringComponent != oldFilteringComponent) {
InternalEObject newFilteringComponent = (InternalEObject)filteringComponent;
NotificationChain msgs = oldFilteringComponent.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ExtensionModelPackage.YBEAN_REFERENCE_FIELD__FILTERING_COMPONENT, null, null);
if (newFilteringComponent.eInternalContainer() == null) {
msgs = newFilteringComponent.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ExtensionModelPackage.YBEAN_REFERENCE_FIELD__FILTERING_COMPONENT, null, msgs);
}
if (msgs != null) msgs.dispatch();
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, ExtensionModelPackage.YBEAN_REFERENCE_FIELD__FILTERING_COMPONENT, oldFilteringComponent, filteringComponent));
}
}
return filteringComponent;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public YFilteringComponent basicGetFilteringComponent() {
return filteringComponent;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetFilteringComponent(YFilteringComponent newFilteringComponent, NotificationChain msgs) {
YFilteringComponent oldFilteringComponent = filteringComponent;
filteringComponent = newFilteringComponent;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ExtensionModelPackage.YBEAN_REFERENCE_FIELD__FILTERING_COMPONENT, oldFilteringComponent, newFilteringComponent);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setFilteringComponent(YFilteringComponent newFilteringComponent) {
if (newFilteringComponent != filteringComponent) {
NotificationChain msgs = null;
if (filteringComponent != null)
msgs = ((InternalEObject)filteringComponent).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ExtensionModelPackage.YBEAN_REFERENCE_FIELD__FILTERING_COMPONENT, null, msgs);
if (newFilteringComponent != null)
msgs = ((InternalEObject)newFilteringComponent).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ExtensionModelPackage.YBEAN_REFERENCE_FIELD__FILTERING_COMPONENT, null, msgs);
msgs = basicSetFilteringComponent(newFilteringComponent, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ExtensionModelPackage.YBEAN_REFERENCE_FIELD__FILTERING_COMPONENT, newFilteringComponent, newFilteringComponent));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->.
*
* @return the y embeddable value endpoint
*/
public YEmbeddableValueEndpoint createValueEndpointGen() {
throw new UnsupportedOperationException();
}
/* (non-Javadoc)
* @see org.eclipse.osbp.ecview.core.common.model.core.YValueBindable#createValueEndpoint()
*/
public YEmbeddableValueEndpoint createValueEndpoint() {
YEmbeddableValueEndpoint ep = CoreModelFactory.eINSTANCE
.createYEmbeddableValueEndpoint();
ep.setElement(this);
return ep;
}
/**
* <!-- 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.YBEAN_REFERENCE_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.YBEAN_REFERENCE_FIELD__VALUE_BINDING_ENDPOINT:
return basicSetValueBindingEndpoint(null, msgs);
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__FILTERING_COMPONENT:
return basicSetFilteringComponent(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.YBEAN_REFERENCE_FIELD__VALUE_BINDING_ENDPOINT:
if (resolve) return getValueBindingEndpoint();
return basicGetValueBindingEndpoint();
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__USE_BEAN_SERVICE:
return isUseBeanService();
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__LAST_BLUR_EVENT:
if (resolve) return getLastBlurEvent();
return basicGetLastBlurEvent();
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__LAST_FOCUS_EVENT:
if (resolve) return getLastFocusEvent();
return basicGetLastFocusEvent();
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__DATADESCRIPTION:
if (resolve) return getDatadescription();
return basicGetDatadescription();
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__VALUE:
return getValue();
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__TYPE:
return getType();
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__EMF_NS_URI:
return getEmfNsURI();
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__TYPE_QUALIFIED_NAME:
return getTypeQualifiedName();
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__IN_MEMORY_BEAN_PROVIDER:
return getInMemoryBeanProvider();
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__IN_MEMORY_BEAN_PROVIDER_QUALIFIED_NAME:
return getInMemoryBeanProviderQualifiedName();
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__CAPTION_PROPERTY_PATH:
return getCaptionPropertyPath();
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__IMAGE_PROPERTY_PATH:
return getImagePropertyPath();
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__DESCRIPTION_PROPERTY:
return getDescriptionProperty();
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__DESCRIPTION:
return getDescription();
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__REFERENCE_SOURCE_TYPE:
return getReferenceSourceType();
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__REFERENCE_SOURCE_TYPE_QUALIFIED_NAME:
return getReferenceSourceTypeQualifiedName();
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__REFERENCE_SOURCE_TYPE_PROPERTY:
return getReferenceSourceTypeProperty();
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__REQUIRED:
return isRequired();
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__FILTERING_COMPONENT:
if (resolve) return getFilteringComponent();
return basicGetFilteringComponent();
}
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.YBEAN_REFERENCE_FIELD__VALUE_BINDING_ENDPOINT:
setValueBindingEndpoint((YEmbeddableValueEndpoint)newValue);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__USE_BEAN_SERVICE:
setUseBeanService((Boolean)newValue);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__LAST_BLUR_EVENT:
setLastBlurEvent((YEmbeddableEvent)newValue);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__LAST_FOCUS_EVENT:
setLastFocusEvent((YEmbeddableEvent)newValue);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__DATADESCRIPTION:
setDatadescription((YDatadescription)newValue);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__VALUE:
setValue(newValue);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__TYPE:
setType((Class<?>)newValue);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__EMF_NS_URI:
setEmfNsURI((String)newValue);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__TYPE_QUALIFIED_NAME:
setTypeQualifiedName((String)newValue);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__IN_MEMORY_BEAN_PROVIDER:
setInMemoryBeanProvider((Class<?>)newValue);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__IN_MEMORY_BEAN_PROVIDER_QUALIFIED_NAME:
setInMemoryBeanProviderQualifiedName((String)newValue);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__CAPTION_PROPERTY_PATH:
setCaptionPropertyPath((String)newValue);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__IMAGE_PROPERTY_PATH:
setImagePropertyPath((String)newValue);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__DESCRIPTION_PROPERTY:
setDescriptionProperty((String)newValue);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__DESCRIPTION:
setDescription((String)newValue);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__REFERENCE_SOURCE_TYPE:
setReferenceSourceType((Class<?>)newValue);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__REFERENCE_SOURCE_TYPE_QUALIFIED_NAME:
setReferenceSourceTypeQualifiedName((String)newValue);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__REFERENCE_SOURCE_TYPE_PROPERTY:
setReferenceSourceTypeProperty((String)newValue);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__REQUIRED:
setRequired((Boolean)newValue);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__FILTERING_COMPONENT:
setFilteringComponent((YFilteringComponent)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.YBEAN_REFERENCE_FIELD__VALUE_BINDING_ENDPOINT:
setValueBindingEndpoint((YEmbeddableValueEndpoint)null);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__USE_BEAN_SERVICE:
setUseBeanService(USE_BEAN_SERVICE_EDEFAULT);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__LAST_BLUR_EVENT:
setLastBlurEvent((YEmbeddableEvent)null);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__LAST_FOCUS_EVENT:
setLastFocusEvent((YEmbeddableEvent)null);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__DATADESCRIPTION:
setDatadescription((YDatadescription)null);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__VALUE:
setValue(VALUE_EDEFAULT);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__TYPE:
setType((Class<?>)null);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__EMF_NS_URI:
setEmfNsURI(EMF_NS_URI_EDEFAULT);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__TYPE_QUALIFIED_NAME:
setTypeQualifiedName(TYPE_QUALIFIED_NAME_EDEFAULT);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__IN_MEMORY_BEAN_PROVIDER:
setInMemoryBeanProvider((Class<?>)null);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__IN_MEMORY_BEAN_PROVIDER_QUALIFIED_NAME:
setInMemoryBeanProviderQualifiedName(IN_MEMORY_BEAN_PROVIDER_QUALIFIED_NAME_EDEFAULT);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__CAPTION_PROPERTY_PATH:
setCaptionPropertyPath(CAPTION_PROPERTY_PATH_EDEFAULT);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__IMAGE_PROPERTY_PATH:
setImagePropertyPath(IMAGE_PROPERTY_PATH_EDEFAULT);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__DESCRIPTION_PROPERTY:
setDescriptionProperty(DESCRIPTION_PROPERTY_EDEFAULT);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__DESCRIPTION:
setDescription(DESCRIPTION_EDEFAULT);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__REFERENCE_SOURCE_TYPE:
setReferenceSourceType((Class<?>)null);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__REFERENCE_SOURCE_TYPE_QUALIFIED_NAME:
setReferenceSourceTypeQualifiedName(REFERENCE_SOURCE_TYPE_QUALIFIED_NAME_EDEFAULT);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__REFERENCE_SOURCE_TYPE_PROPERTY:
setReferenceSourceTypeProperty(REFERENCE_SOURCE_TYPE_PROPERTY_EDEFAULT);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__REQUIRED:
setRequired(REQUIRED_EDEFAULT);
return;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__FILTERING_COMPONENT:
setFilteringComponent((YFilteringComponent)null);
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.YBEAN_REFERENCE_FIELD__VALUE_BINDING_ENDPOINT:
return valueBindingEndpoint != null;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__USE_BEAN_SERVICE:
return useBeanService != USE_BEAN_SERVICE_EDEFAULT;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__LAST_BLUR_EVENT:
return lastBlurEvent != null;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__LAST_FOCUS_EVENT:
return lastFocusEvent != null;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__DATADESCRIPTION:
return datadescription != null;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__VALUE:
return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__TYPE:
return type != null;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__EMF_NS_URI:
return EMF_NS_URI_EDEFAULT == null ? emfNsURI != null : !EMF_NS_URI_EDEFAULT.equals(emfNsURI);
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__TYPE_QUALIFIED_NAME:
return TYPE_QUALIFIED_NAME_EDEFAULT == null ? typeQualifiedName != null : !TYPE_QUALIFIED_NAME_EDEFAULT.equals(typeQualifiedName);
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__IN_MEMORY_BEAN_PROVIDER:
return inMemoryBeanProvider != null;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__IN_MEMORY_BEAN_PROVIDER_QUALIFIED_NAME:
return IN_MEMORY_BEAN_PROVIDER_QUALIFIED_NAME_EDEFAULT == null ? inMemoryBeanProviderQualifiedName != null : !IN_MEMORY_BEAN_PROVIDER_QUALIFIED_NAME_EDEFAULT.equals(inMemoryBeanProviderQualifiedName);
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__CAPTION_PROPERTY_PATH:
return CAPTION_PROPERTY_PATH_EDEFAULT == null ? captionPropertyPath != null : !CAPTION_PROPERTY_PATH_EDEFAULT.equals(captionPropertyPath);
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__IMAGE_PROPERTY_PATH:
return IMAGE_PROPERTY_PATH_EDEFAULT == null ? imagePropertyPath != null : !IMAGE_PROPERTY_PATH_EDEFAULT.equals(imagePropertyPath);
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__DESCRIPTION_PROPERTY:
return DESCRIPTION_PROPERTY_EDEFAULT == null ? descriptionProperty != null : !DESCRIPTION_PROPERTY_EDEFAULT.equals(descriptionProperty);
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__DESCRIPTION:
return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__REFERENCE_SOURCE_TYPE:
return referenceSourceType != null;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__REFERENCE_SOURCE_TYPE_QUALIFIED_NAME:
return REFERENCE_SOURCE_TYPE_QUALIFIED_NAME_EDEFAULT == null ? referenceSourceTypeQualifiedName != null : !REFERENCE_SOURCE_TYPE_QUALIFIED_NAME_EDEFAULT.equals(referenceSourceTypeQualifiedName);
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__REFERENCE_SOURCE_TYPE_PROPERTY:
return REFERENCE_SOURCE_TYPE_PROPERTY_EDEFAULT == null ? referenceSourceTypeProperty != null : !REFERENCE_SOURCE_TYPE_PROPERTY_EDEFAULT.equals(referenceSourceTypeProperty);
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__REQUIRED:
return required != REQUIRED_EDEFAULT;
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__FILTERING_COMPONENT:
return filteringComponent != null;
}
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.YBEAN_REFERENCE_FIELD__VALUE_BINDING_ENDPOINT: return CoreModelPackage.YVALUE_BINDABLE__VALUE_BINDING_ENDPOINT;
default: return -1;
}
}
if (baseClass == YBeanServiceConsumer.class) {
switch (derivedFeatureID) {
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__USE_BEAN_SERVICE: return ExtensionModelPackage.YBEAN_SERVICE_CONSUMER__USE_BEAN_SERVICE;
default: return -1;
}
}
if (baseClass == YBlurNotifier.class) {
switch (derivedFeatureID) {
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__LAST_BLUR_EVENT: return CoreModelPackage.YBLUR_NOTIFIER__LAST_BLUR_EVENT;
default: return -1;
}
}
if (baseClass == YFocusNotifier.class) {
switch (derivedFeatureID) {
case ExtensionModelPackage.YBEAN_REFERENCE_FIELD__LAST_FOCUS_EVENT: return CoreModelPackage.YFOCUS_NOTIFIER__LAST_FOCUS_EVENT;
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.YBEAN_REFERENCE_FIELD__VALUE_BINDING_ENDPOINT;
default: return -1;
}
}
if (baseClass == YBeanServiceConsumer.class) {
switch (baseFeatureID) {
case ExtensionModelPackage.YBEAN_SERVICE_CONSUMER__USE_BEAN_SERVICE: return ExtensionModelPackage.YBEAN_REFERENCE_FIELD__USE_BEAN_SERVICE;
default: return -1;
}
}
if (baseClass == YBlurNotifier.class) {
switch (baseFeatureID) {
case CoreModelPackage.YBLUR_NOTIFIER__LAST_BLUR_EVENT: return ExtensionModelPackage.YBEAN_REFERENCE_FIELD__LAST_BLUR_EVENT;
default: return -1;
}
}
if (baseClass == YFocusNotifier.class) {
switch (baseFeatureID) {
case CoreModelPackage.YFOCUS_NOTIFIER__LAST_FOCUS_EVENT: return ExtensionModelPackage.YBEAN_REFERENCE_FIELD__LAST_FOCUS_EVENT;
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(" (useBeanService: ");
result.append(useBeanService);
result.append(", value: ");
result.append(value);
result.append(", type: ");
result.append(type);
result.append(", emfNsURI: ");
result.append(emfNsURI);
result.append(", typeQualifiedName: ");
result.append(typeQualifiedName);
result.append(", inMemoryBeanProvider: ");
result.append(inMemoryBeanProvider);
result.append(", inMemoryBeanProviderQualifiedName: ");
result.append(inMemoryBeanProviderQualifiedName);
result.append(", captionPropertyPath: ");
result.append(captionPropertyPath);
result.append(", imagePropertyPath: ");
result.append(imagePropertyPath);
result.append(", descriptionProperty: ");
result.append(descriptionProperty);
result.append(", description: ");
result.append(description);
result.append(", referenceSourceType: ");
result.append(referenceSourceType);
result.append(", referenceSourceTypeQualifiedName: ");
result.append(referenceSourceTypeQualifiedName);
result.append(", referenceSourceTypeProperty: ");
result.append(referenceSourceTypeProperty);
result.append(", required: ");
result.append(required);
result.append(')');
return result.toString();
}
/**
* Sets the label by creating a new datadescription.
*
* @param label
* the new label
*/
public void setLabel(String label) {
YDatadescription ds = getDatadescription();
if (ds == null) {
setDatadescription(createDatadescription(label));
getOrphanDatadescriptions().add(getDatadescription());
} else {
ds.setLabel(label);
}
}
/**
* Sets the label i18nKey by creating a new datadescription.
*
* @param i18nKey
* the new label i18n key
*/
public void setLabelI18nKey(String i18nKey) {
YDatadescription ds = getDatadescription();
if (ds == null) {
setDatadescription(createDatadescriptionForI18n(i18nKey));
getOrphanDatadescriptions().add(getDatadescription());
} else {
ds.setLabelI18nKey(i18nKey);
}
}
/* (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 "";
}
} // YBeanReferenceFieldImpl