⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 messageoptionimpl.java

📁 lumaQQ的源文件
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
/**
 * <copyright>
 * </copyright>
 *
 * $Id: MessageOptionImpl.java 1 2006-06-12 17:37:42Z sxp $
 */
package edu.tsinghua.lumaqq.ecore.option.impl;

import edu.tsinghua.lumaqq.ecore.option.MessageOption;
import edu.tsinghua.lumaqq.ecore.option.OptionPackage;

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;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Message Option</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link edu.tsinghua.lumaqq.ecore.option.impl.MessageOptionImpl#isAutoEject <em>Auto Eject</em>}</li>
 *   <li>{@link edu.tsinghua.lumaqq.ecore.option.impl.MessageOptionImpl#isEnableSound <em>Enable Sound</em>}</li>
 *   <li>{@link edu.tsinghua.lumaqq.ecore.option.impl.MessageOptionImpl#isRejectStranger <em>Reject Stranger</em>}</li>
 *   <li>{@link edu.tsinghua.lumaqq.ecore.option.impl.MessageOptionImpl#isRejectTempSessionIM <em>Reject Temp Session IM</em>}</li>
 *   <li>{@link edu.tsinghua.lumaqq.ecore.option.impl.MessageOptionImpl#isUseEnterInMessageMode <em>Use Enter In Message Mode</em>}</li>
 *   <li>{@link edu.tsinghua.lumaqq.ecore.option.impl.MessageOptionImpl#isUseEnterInTalkMode <em>Use Enter In Talk Mode</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class MessageOptionImpl extends EObjectImpl implements MessageOption {
	/**
	 * The default value of the '{@link #isAutoEject() <em>Auto Eject</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #isAutoEject()
	 * @generated
	 * @ordered
	 */
	protected static final boolean AUTO_EJECT_EDEFAULT = false;

	/**
	 * The cached value of the '{@link #isAutoEject() <em>Auto Eject</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #isAutoEject()
	 * @generated
	 * @ordered
	 */
	protected boolean autoEject = AUTO_EJECT_EDEFAULT;

	/**
	 * This is true if the Auto Eject attribute has been set.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 * @ordered
	 */
	protected boolean autoEjectESet = false;

	/**
	 * The default value of the '{@link #isEnableSound() <em>Enable Sound</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #isEnableSound()
	 * @generated
	 * @ordered
	 */
	protected static final boolean ENABLE_SOUND_EDEFAULT = false;

	/**
	 * The cached value of the '{@link #isEnableSound() <em>Enable Sound</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #isEnableSound()
	 * @generated
	 * @ordered
	 */
	protected boolean enableSound = ENABLE_SOUND_EDEFAULT;

	/**
	 * This is true if the Enable Sound attribute has been set.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 * @ordered
	 */
	protected boolean enableSoundESet = false;

	/**
	 * The default value of the '{@link #isRejectStranger() <em>Reject Stranger</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #isRejectStranger()
	 * @generated
	 * @ordered
	 */
	protected static final boolean REJECT_STRANGER_EDEFAULT = false;

	/**
	 * The cached value of the '{@link #isRejectStranger() <em>Reject Stranger</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #isRejectStranger()
	 * @generated
	 * @ordered
	 */
	protected boolean rejectStranger = REJECT_STRANGER_EDEFAULT;

	/**
	 * This is true if the Reject Stranger attribute has been set.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 * @ordered
	 */
	protected boolean rejectStrangerESet = false;

	/**
	 * The default value of the '{@link #isRejectTempSessionIM() <em>Reject Temp Session IM</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #isRejectTempSessionIM()
	 * @generated
	 * @ordered
	 */
	protected static final boolean REJECT_TEMP_SESSION_IM_EDEFAULT = false;

	/**
	 * The cached value of the '{@link #isRejectTempSessionIM() <em>Reject Temp Session IM</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #isRejectTempSessionIM()
	 * @generated
	 * @ordered
	 */
	protected boolean rejectTempSessionIM = REJECT_TEMP_SESSION_IM_EDEFAULT;

	/**
	 * This is true if the Reject Temp Session IM attribute has been set.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 * @ordered
	 */
	protected boolean rejectTempSessionIMESet = false;

	/**
	 * The default value of the '{@link #isUseEnterInMessageMode() <em>Use Enter In Message Mode</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #isUseEnterInMessageMode()
	 * @generated
	 * @ordered
	 */
	protected static final boolean USE_ENTER_IN_MESSAGE_MODE_EDEFAULT = false;

	/**
	 * The cached value of the '{@link #isUseEnterInMessageMode() <em>Use Enter In Message Mode</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #isUseEnterInMessageMode()
	 * @generated
	 * @ordered
	 */
	protected boolean useEnterInMessageMode = USE_ENTER_IN_MESSAGE_MODE_EDEFAULT;

	/**
	 * This is true if the Use Enter In Message Mode attribute has been set.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 * @ordered
	 */
	protected boolean useEnterInMessageModeESet = false;

	/**
	 * The default value of the '{@link #isUseEnterInTalkMode() <em>Use Enter In Talk Mode</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #isUseEnterInTalkMode()
	 * @generated
	 * @ordered
	 */
	protected static final boolean USE_ENTER_IN_TALK_MODE_EDEFAULT = false;

	/**
	 * The cached value of the '{@link #isUseEnterInTalkMode() <em>Use Enter In Talk Mode</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #isUseEnterInTalkMode()
	 * @generated
	 * @ordered
	 */
	protected boolean useEnterInTalkMode = USE_ENTER_IN_TALK_MODE_EDEFAULT;

	/**
	 * This is true if the Use Enter In Talk Mode attribute has been set.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 * @ordered
	 */
	protected boolean useEnterInTalkModeESet = false;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected MessageOptionImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected EClass eStaticClass() {
		return OptionPackage.Literals.MESSAGE_OPTION;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean isAutoEject() {
		return autoEject;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setAutoEject(boolean newAutoEject) {
		boolean oldAutoEject = autoEject;
		autoEject = newAutoEject;
		boolean oldAutoEjectESet = autoEjectESet;
		autoEjectESet = true;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, OptionPackage.MESSAGE_OPTION__AUTO_EJECT, oldAutoEject, autoEject, !oldAutoEjectESet));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void unsetAutoEject() {
		boolean oldAutoEject = autoEject;
		boolean oldAutoEjectESet = autoEjectESet;
		autoEject = AUTO_EJECT_EDEFAULT;
		autoEjectESet = false;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.UNSET, OptionPackage.MESSAGE_OPTION__AUTO_EJECT, oldAutoEject, AUTO_EJECT_EDEFAULT, oldAutoEjectESet));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean isSetAutoEject() {
		return autoEjectESet;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean isEnableSound() {
		return enableSound;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setEnableSound(boolean newEnableSound) {
		boolean oldEnableSound = enableSound;
		enableSound = newEnableSound;
		boolean oldEnableSoundESet = enableSoundESet;
		enableSoundESet = true;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, OptionPackage.MESSAGE_OPTION__ENABLE_SOUND, oldEnableSound, enableSound, !oldEnableSoundESet));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void unsetEnableSound() {
		boolean oldEnableSound = enableSound;
		boolean oldEnableSoundESet = enableSoundESet;
		enableSound = ENABLE_SOUND_EDEFAULT;
		enableSoundESet = false;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.UNSET, OptionPackage.MESSAGE_OPTION__ENABLE_SOUND, oldEnableSound, ENABLE_SOUND_EDEFAULT, oldEnableSoundESet));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean isSetEnableSound() {

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -