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

org.jboss.drools.impl.CalendarImpl Maven / Gradle / Ivy

There is a newer version: 7.74.1.Final
Show newest version
/**
 */
package org.jboss.drools.impl;

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

import org.jboss.drools.Calendar;
import org.jboss.drools.DroolsPackage;

/**
 * 
 * An implementation of the model object 'Calendar'.
 * 
 * 

* The following features are implemented: *

    *
  • {@link org.jboss.drools.impl.CalendarImpl#getValue Value}
  • *
  • {@link org.jboss.drools.impl.CalendarImpl#getId Id}
  • *
  • {@link org.jboss.drools.impl.CalendarImpl#getName Name}
  • *
*

* * @generated */ public class CalendarImpl extends EObjectImpl implements Calendar { /** * The default value of the '{@link #getValue() Value}' attribute. * * * @see #getValue() * @generated * @ordered */ protected static final String VALUE_EDEFAULT = null; /** * The cached value of the '{@link #getValue() Value}' attribute. * * * @see #getValue() * @generated * @ordered */ protected String value = VALUE_EDEFAULT; /** * The default value of the '{@link #getId() Id}' attribute. * * * @see #getId() * @generated * @ordered */ protected static final String ID_EDEFAULT = null; /** * The cached value of the '{@link #getId() Id}' attribute. * * * @see #getId() * @generated * @ordered */ protected String id = ID_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; /** * * * @generated */ protected CalendarImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return DroolsPackage.Literals.CALENDAR; } /** * * * @generated */ public String getValue() { return value; } /** * * * @generated */ public void setValue(String newValue) { String oldValue = value; value = newValue; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroolsPackage.CALENDAR__VALUE, oldValue, value)); } /** * * * @generated */ public String getId() { return id; } /** * * * @generated */ public void setId(String newId) { String oldId = id; id = newId; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DroolsPackage.CALENDAR__ID, oldId, id)); } /** * * * @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, DroolsPackage.CALENDAR__NAME, oldName, name)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case DroolsPackage.CALENDAR__VALUE: return getValue(); case DroolsPackage.CALENDAR__ID: return getId(); case DroolsPackage.CALENDAR__NAME: return getName(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case DroolsPackage.CALENDAR__VALUE: setValue((String)newValue); return; case DroolsPackage.CALENDAR__ID: setId((String)newValue); return; case DroolsPackage.CALENDAR__NAME: setName((String)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case DroolsPackage.CALENDAR__VALUE: setValue(VALUE_EDEFAULT); return; case DroolsPackage.CALENDAR__ID: setId(ID_EDEFAULT); return; case DroolsPackage.CALENDAR__NAME: setName(NAME_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case DroolsPackage.CALENDAR__VALUE: return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); case DroolsPackage.CALENDAR__ID: return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); case DroolsPackage.CALENDAR__NAME: return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (value: "); result.append(value); result.append(", id: "); result.append(id); result.append(", name: "); result.append(name); result.append(')'); return result.toString(); } } //CalendarImpl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy