/*******************************************************************************
* Copyright (c) 2006-2012
* Software Technology Group, Dresden University of Technology
* DevBoost GmbH, Berlin, Amtsgericht Charlottenburg, HRB 140026
*
* 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:
* Software Technology Group - TU Dresden, Germany;
* DevBoost GmbH - Berlin, Germany
* - initial API and implementation
******************************************************************************/
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package org.oasisopen.names.tc.opendocument.xmlns.form.impl;
import java.math.BigInteger;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.oasisopen.names.tc.opendocument.xmlns.form.FormPackage;
import org.oasisopen.names.tc.opendocument.xmlns.form.PasswordType;
import org.oasisopen.names.tc.opendocument.xmlns.text.impl.CommonFormControlContentImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Password Type</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.PasswordTypeImpl#getBind <em>Bind</em>}</li>
* <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.PasswordTypeImpl#getControlImplementation <em>Control Implementation</em>}</li>
* <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.PasswordTypeImpl#getConvertEmptyToNull <em>Convert Empty To Null</em>}</li>
* <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.PasswordTypeImpl#getDisabled <em>Disabled</em>}</li>
* <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.PasswordTypeImpl#getEchoChar <em>Echo Char</em>}</li>
* <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.PasswordTypeImpl#getId <em>Id</em>}</li>
* <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.PasswordTypeImpl#getMaxLength <em>Max Length</em>}</li>
* <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.PasswordTypeImpl#getName <em>Name</em>}</li>
* <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.PasswordTypeImpl#getPrintable <em>Printable</em>}</li>
* <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.PasswordTypeImpl#getTabIndex <em>Tab Index</em>}</li>
* <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.PasswordTypeImpl#getTabStop <em>Tab Stop</em>}</li>
* <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.PasswordTypeImpl#getTitle <em>Title</em>}</li>
* <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.PasswordTypeImpl#getValue <em>Value</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class PasswordTypeImpl extends CommonFormControlContentImpl implements PasswordType {
/**
* The default value of the '{@link #getBind() <em>Bind</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getBind()
* @generated
* @ordered
*/
protected static final String BIND_EDEFAULT = null;
/**
* The cached value of the '{@link #getBind() <em>Bind</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getBind()
* @generated
* @ordered
*/
protected String bind = BIND_EDEFAULT;
/**
* The default value of the '{@link #getControlImplementation() <em>Control Implementation</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getControlImplementation()
* @generated
* @ordered
*/
protected static final String CONTROL_IMPLEMENTATION_EDEFAULT = null;
/**
* The cached value of the '{@link #getControlImplementation() <em>Control Implementation</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getControlImplementation()
* @generated
* @ordered
*/
protected String controlImplementation = CONTROL_IMPLEMENTATION_EDEFAULT;
/**
* The default value of the '{@link #getConvertEmptyToNull() <em>Convert Empty To Null</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getConvertEmptyToNull()
* @generated
* @ordered
*/
protected static final org.oasisopen.names.tc.opendocument.xmlns.text.Boolean CONVERT_EMPTY_TO_NULL_EDEFAULT = org.oasisopen.names.tc.opendocument.xmlns.text.Boolean.FALSE;
/**
* The cached value of the '{@link #getConvertEmptyToNull() <em>Convert Empty To Null</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getConvertEmptyToNull()
* @generated
* @ordered
*/
protected org.oasisopen.names.tc.opendocument.xmlns.text.Boolean convertEmptyToNull = CONVERT_EMPTY_TO_NULL_EDEFAULT;
/**
* This is true if the Convert Empty To Null attribute has been set.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
protected boolean convertEmptyToNullESet;
/**
* The default value of the '{@link #getDisabled() <em>Disabled</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDisabled()
* @generated
* @ordered
*/
protected static final org.oasisopen.names.tc.opendocument.xmlns.text.Boolean DISABLED_EDEFAULT = org.oasisopen.names.tc.opendocument.xmlns.text.Boolean.FALSE;
/**
* The cached value of the '{@link #getDisabled() <em>Disabled</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDisabled()
* @generated
* @ordered
*/
protected org.oasisopen.names.tc.opendocument.xmlns.text.Boolean disabled = DISABLED_EDEFAULT;
/**
* This is true if the Disabled attribute has been set.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
protected boolean disabledESet;
/**
* The default value of the '{@link #getEchoChar() <em>Echo Char</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getEchoChar()
* @generated
* @ordered
*/
protected static final String ECHO_CHAR_EDEFAULT = "*";
/**
* The cached value of the '{@link #getEchoChar() <em>Echo Char</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getEchoChar()
* @generated
* @ordered
*/
protected String echoChar = ECHO_CHAR_EDEFAULT;
/**
* This is true if the Echo Char attribute has been set.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
protected boolean echoCharESet;
/**
* The default value of the '{@link #getId() <em>Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getId()
* @generated
* @ordered
*/
protected static final String ID_EDEFAULT = null;
/**
* The cached value of the '{@link #getId() <em>Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getId()
* @generated
* @ordered
*/
protected String id = ID_EDEFAULT;
/**
* The default value of the '{@link #getMaxLength() <em>Max Length</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMaxLength()
* @generated
* @ordered
*/
protected static final BigInteger MAX_LENGTH_EDEFAULT = null;
/**
* The cached value of the '{@link #getMaxLength() <em>Max Length</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMaxLength()
* @generated
* @ordered
*/
protected BigInteger maxLength = MAX_LENGTH_EDEFAULT;
/**
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected static final String NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected String name = NAME_EDEFAULT;
/**
* The default value of the '{@link #getPrintable() <em>Printable</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getPrintable()
* @generated
* @ordered
*/
protected static final org.oasisopen.names.tc.opendocument.xmlns.text.Boolean PRINTABLE_EDEFAULT = org.oasisopen.names.tc.opendocument.xmlns.text.Boolean.TRUE;
/**
* The cached value of the '{@link #getPrintable() <em>Printable</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getPrintable()
* @generated
* @ordered
*/
protected org.oasisopen.names.tc.opendocument.xmlns.text.Boolean printable = PRINTABLE_EDEFAULT;
/**
* This is true if the Printable attribute has been set.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
protected boolean printableESet;
/**
* The default value of the '{@link #getTabIndex() <em>Tab Index</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTabIndex()
* @generated
* @ordered
*/
protected static final BigInteger TAB_INDEX_EDEFAULT = new BigInteger("0");
/**
* The cached value of the '{@link #getTabIndex() <em>Tab Index</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTabIndex()
* @generated
* @ordered
*/
protected BigInteger tabIndex = TAB_INDEX_EDEFAULT;
/**
* This is true if the Tab Index attribute has been set.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
protected boolean tabIndexESet;
/**
* The default value of the '{@link #getTabStop() <em>Tab Stop</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTabStop()
* @generated
* @ordered
*/
protected static final org.oasisopen.names.tc.opendocument.xmlns.text.Boolean TAB_STOP_EDEFAULT = org.oasisopen.names.tc.opendocument.xmlns.text.Boolean.TRUE;
/**
* The cached value of the '{@link #getTabStop() <em>Tab Stop</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTabStop()
* @generated
* @ordered
*/
protected org.oasisopen.names.tc.opendocument.xmlns.text.Boolean tabStop = TAB_STOP_EDEFAULT;
/**
* This is true if the Tab Stop attribute has been set.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
protected boolean tabStopESet;
/**
* The default value of the '{@link #getTitle() <em>Title</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTitle()
* @generated
* @ordered
*/
protected static final Object TITLE_EDEFAULT = null;
/**
* The cached value of the '{@link #getTitle() <em>Title</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTitle()
* @generated
* @ordered
*/
protected Object title = TITLE_EDEFAULT;
/**
* The default value of the '{@link #getValue() <em>Value</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValue()
* @generated
* @ordered
*/
protected static final String 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 String value = VALUE_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected PasswordTypeImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FormPackage.eINSTANCE.getPasswordType();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getBind() {
return bind;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setBind(String newBind) {
String oldBind = bind;
bind = newBind;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FormPackage.PASSWORD_TYPE__BIND, oldBind, bind));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getControlImplementation() {
return controlImplementation;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setControlImplementation(String newControlImplementation) {
String oldControlImplementation = controlImplementation;
controlImplementation = newControlImplementation;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FormPackage.PASSWORD_TYPE__CONTROL_IMPLEMENTATION, oldControlImplementation, controlImplementation));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.oasisopen.names.tc.opendocument.xmlns.text.Boolean getConvertEmptyToNull() {
return convertEmptyToNull;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setConvertEmptyToNull(org.oasisopen.names.tc.opendocument.xmlns.text.Boolean newConvertEmptyToNull) {
org.oasisopen.names.tc.opendocument.xmlns.text.Boolean oldConvertEmptyToNull = convertEmptyToNull;
convertEmptyToNull = newConvertEmptyToNull == null ? CONVERT_EMPTY_TO_NULL_EDEFAULT : newConvertEmptyToNull;
boolean oldConvertEmptyToNullESet = convertEmptyToNullESet;
convertEmptyToNullESet = true;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FormPackage.PASSWORD_TYPE__CONVERT_EMPTY_TO_NULL, oldConvertEmptyToNull, convertEmptyToNull, !oldConvertEmptyToNullESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void unsetConvertEmptyToNull() {
org.oasisopen.names.tc.opendocument.xmlns.text.Boolean oldConvertEmptyToNull = convertEmptyToNull;
boolean oldConvertEmptyToNullESet = convertEmptyToNullESet;
convertEmptyToNull = CONVERT_EMPTY_TO_NULL_EDEFAULT;
convertEmptyToNullESet = false;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.UNSET, FormPackage.PASSWORD_TYPE__CONVERT_EMPTY_TO_NULL, oldConvertEmptyToNull, CONVERT_EMPTY_TO_NULL_EDEFAULT, oldConvertEmptyToNullESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isSetConvertEmptyToNull() {
return convertEmptyToNullESet;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.oasisopen.names.tc.opendocument.xmlns.text.Boolean getDisabled() {
return disabled;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDisabled(org.oasisopen.names.tc.opendocument.xmlns.text.Boolean newDisabled) {
org.oasisopen.names.tc.opendocument.xmlns.text.Boolean oldDisabled = disabled;
disabled = newDisabled == null ? DISABLED_EDEFAULT : newDisabled;
boolean oldDisabledESet = disabledESet;
disabledESet = true;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FormPackage.PASSWORD_TYPE__DISABLED, oldDisabled, disabled, !oldDisabledESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void unsetDisabled() {
org.oasisopen.names.tc.opendocument.xmlns.text.Boolean oldDisabled = disabled;
boolean oldDisabledESet = disabledESet;
disabled = DISABLED_EDEFAULT;
disabledESet = false;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.UNSET, FormPackage.PASSWORD_TYPE__DISABLED, oldDisabled, DISABLED_EDEFAULT, oldDisabledESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isSetDisabled() {
return disabledESet;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getEchoChar() {
return echoChar;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setEchoChar(String newEchoChar) {
String oldEchoChar = echoChar;
echoChar = newEchoChar;
boolean oldEchoCharESet = echoCharESet;
echoCharESet = true;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FormPackage.PASSWORD_TYPE__ECHO_CHAR, oldEchoChar, echoChar, !oldEchoCharESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void unsetEchoChar() {
String oldEchoChar = echoChar;
boolean oldEchoCharESet = echoCharESet;
echoChar = ECHO_CHAR_EDEFAULT;
echoCharESet = false;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.UNSET, FormPackage.PASSWORD_TYPE__ECHO_CHAR, oldEchoChar, ECHO_CHAR_EDEFAULT, oldEchoCharESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isSetEchoChar() {
return echoCharESet;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getId() {
return id;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setId(String newId) {
String oldId = id;
id = newId;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FormPackage.PASSWORD_TYPE__ID, oldId, id));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public BigInteger getMaxLength() {
return maxLength;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setMaxLength(BigInteger newMaxLength) {
BigInteger oldMaxLength = maxLength;
maxLength = newMaxLength;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FormPackage.PASSWORD_TYPE__MAX_LENGTH, oldMaxLength, maxLength));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setName(String newName) {
String oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FormPackage.PASSWORD_TYPE__NAME, oldName, name));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.oasisopen.names.tc.opendocument.xmlns.text.Boolean getPrintable() {
return printable;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setPrintable(org.oasisopen.names.tc.opendocument.xmlns.text.Boolean newPrintable) {
org.oasisopen.names.tc.opendocument.xmlns.text.Boolean oldPrintable = printable;
printable = newPrintable == null ? PRINTABLE_EDEFAULT : newPrintable;
boolean oldPrintableESet = printableESet;
printableESet = true;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FormPackage.PASSWORD_TYPE__PRINTABLE, oldPrintable, printable, !oldPrintableESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void unsetPrintable() {
org.oasisopen.names.tc.opendocument.xmlns.text.Boolean oldPrintable = printable;
boolean oldPrintableESet = printableESet;
printable = PRINTABLE_EDEFAULT;
printableESet = false;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.UNSET, FormPackage.PASSWORD_TYPE__PRINTABLE, oldPrintable, PRINTABLE_EDEFAULT, oldPrintableESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isSetPrintable() {
return printableESet;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public BigInteger getTabIndex() {
return tabIndex;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setTabIndex(BigInteger newTabIndex) {
BigInteger oldTabIndex = tabIndex;
tabIndex = newTabIndex;
boolean oldTabIndexESet = tabIndexESet;
tabIndexESet = true;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FormPackage.PASSWORD_TYPE__TAB_INDEX, oldTabIndex, tabIndex, !oldTabIndexESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void unsetTabIndex() {
BigInteger oldTabIndex = tabIndex;
boolean oldTabIndexESet = tabIndexESet;
tabIndex = TAB_INDEX_EDEFAULT;
tabIndexESet = false;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.UNSET, FormPackage.PASSWORD_TYPE__TAB_INDEX, oldTabIndex, TAB_INDEX_EDEFAULT, oldTabIndexESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isSetTabIndex() {
return tabIndexESet;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.oasisopen.names.tc.opendocument.xmlns.text.Boolean getTabStop() {
return tabStop;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setTabStop(org.oasisopen.names.tc.opendocument.xmlns.text.Boolean newTabStop) {
org.oasisopen.names.tc.opendocument.xmlns.text.Boolean oldTabStop = tabStop;
tabStop = newTabStop == null ? TAB_STOP_EDEFAULT : newTabStop;
boolean oldTabStopESet = tabStopESet;
tabStopESet = true;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FormPackage.PASSWORD_TYPE__TAB_STOP, oldTabStop, tabStop, !oldTabStopESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void unsetTabStop() {
org.oasisopen.names.tc.opendocument.xmlns.text.Boolean oldTabStop = tabStop;
boolean oldTabStopESet = tabStopESet;
tabStop = TAB_STOP_EDEFAULT;
tabStopESet = false;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.UNSET, FormPackage.PASSWORD_TYPE__TAB_STOP, oldTabStop, TAB_STOP_EDEFAULT, oldTabStopESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isSetTabStop() {
return tabStopESet;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Object getTitle() {
return title;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setTitle(Object newTitle) {
Object oldTitle = title;
title = newTitle;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FormPackage.PASSWORD_TYPE__TITLE, oldTitle, title));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValue(String newValue) {
String oldValue = value;
value = newValue;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FormPackage.PASSWORD_TYPE__VALUE, oldValue, value));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case FormPackage.PASSWORD_TYPE__BIND:
return getBind();
case FormPackage.PASSWORD_TYPE__CONTROL_IMPLEMENTATION:
return getControlImplementation();
case FormPackage.PASSWORD_TYPE__CONVERT_EMPTY_TO_NULL:
return getConvertEmptyToNull();
case FormPackage.PASSWORD_TYPE__DISABLED:
return getDisabled();
case FormPackage.PASSWORD_TYPE__ECHO_CHAR:
return getEchoChar();
case FormPackage.PASSWORD_TYPE__ID:
return getId();
case FormPackage.PASSWORD_TYPE__MAX_LENGTH:
return getMaxLength();
case FormPackage.PASSWORD_TYPE__NAME:
return getName();
case FormPackage.PASSWORD_TYPE__PRINTABLE:
return getPrintable();
case FormPackage.PASSWORD_TYPE__TAB_INDEX:
return getTabIndex();
case FormPackage.PASSWORD_TYPE__TAB_STOP:
return getTabStop();
case FormPackage.PASSWORD_TYPE__TITLE:
return getTitle();
case FormPackage.PASSWORD_TYPE__VALUE:
return getValue();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case FormPackage.PASSWORD_TYPE__BIND:
setBind((String)newValue);
return;
case FormPackage.PASSWORD_TYPE__CONTROL_IMPLEMENTATION:
setControlImplementation((String)newValue);
return;
case FormPackage.PASSWORD_TYPE__CONVERT_EMPTY_TO_NULL:
setConvertEmptyToNull((org.oasisopen.names.tc.opendocument.xmlns.text.Boolean)newValue);
return;
case FormPackage.PASSWORD_TYPE__DISABLED:
setDisabled((org.oasisopen.names.tc.opendocument.xmlns.text.Boolean)newValue);
return;
case FormPackage.PASSWORD_TYPE__ECHO_CHAR:
setEchoChar((String)newValue);
return;
case FormPackage.PASSWORD_TYPE__ID:
setId((String)newValue);
return;
case FormPackage.PASSWORD_TYPE__MAX_LENGTH:
setMaxLength((BigInteger)newValue);
return;
case FormPackage.PASSWORD_TYPE__NAME:
setName((String)newValue);
return;
case FormPackage.PASSWORD_TYPE__PRINTABLE:
setPrintable((org.oasisopen.names.tc.opendocument.xmlns.text.Boolean)newValue);
return;
case FormPackage.PASSWORD_TYPE__TAB_INDEX:
setTabIndex((BigInteger)newValue);
return;
case FormPackage.PASSWORD_TYPE__TAB_STOP:
setTabStop((org.oasisopen.names.tc.opendocument.xmlns.text.Boolean)newValue);
return;
case FormPackage.PASSWORD_TYPE__TITLE:
setTitle(newValue);
return;
case FormPackage.PASSWORD_TYPE__VALUE:
setValue((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case FormPackage.PASSWORD_TYPE__BIND:
setBind(BIND_EDEFAULT);
return;
case FormPackage.PASSWORD_TYPE__CONTROL_IMPLEMENTATION:
setControlImplementation(CONTROL_IMPLEMENTATION_EDEFAULT);
return;
case FormPackage.PASSWORD_TYPE__CONVERT_EMPTY_TO_NULL:
unsetConvertEmptyToNull();
return;
case FormPackage.PASSWORD_TYPE__DISABLED:
unsetDisabled();
return;
case FormPackage.PASSWORD_TYPE__ECHO_CHAR:
unsetEchoChar();
return;
case FormPackage.PASSWORD_TYPE__ID:
setId(ID_EDEFAULT);
return;
case FormPackage.PASSWORD_TYPE__MAX_LENGTH:
setMaxLength(MAX_LENGTH_EDEFAULT);
return;
case FormPackage.PASSWORD_TYPE__NAME:
setName(NAME_EDEFAULT);
return;
case FormPackage.PASSWORD_TYPE__PRINTABLE:
unsetPrintable();
return;
case FormPackage.PASSWORD_TYPE__TAB_INDEX:
unsetTabIndex();
return;
case FormPackage.PASSWORD_TYPE__TAB_STOP:
unsetTabStop();
return;
case FormPackage.PASSWORD_TYPE__TITLE:
setTitle(TITLE_EDEFAULT);
return;
case FormPackage.PASSWORD_TYPE__VALUE:
setValue(VALUE_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case FormPackage.PASSWORD_TYPE__BIND:
return BIND_EDEFAULT == null ? bind != null : !BIND_EDEFAULT.equals(bind);
case FormPackage.PASSWORD_TYPE__CONTROL_IMPLEMENTATION:
return CONTROL_IMPLEMENTATION_EDEFAULT == null ? controlImplementation != null : !CONTROL_IMPLEMENTATION_EDEFAULT.equals(controlImplementation);
case FormPackage.PASSWORD_TYPE__CONVERT_EMPTY_TO_NULL:
return isSetConvertEmptyToNull();
case FormPackage.PASSWORD_TYPE__DISABLED:
return isSetDisabled();
case FormPackage.PASSWORD_TYPE__ECHO_CHAR:
return isSetEchoChar();
case FormPackage.PASSWORD_TYPE__ID:
return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
case FormPackage.PASSWORD_TYPE__MAX_LENGTH:
return MAX_LENGTH_EDEFAULT == null ? maxLength != null : !MAX_LENGTH_EDEFAULT.equals(maxLength);
case FormPackage.PASSWORD_TYPE__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
case FormPackage.PASSWORD_TYPE__PRINTABLE:
return isSetPrintable();
case FormPackage.PASSWORD_TYPE__TAB_INDEX:
return isSetTabIndex();
case FormPackage.PASSWORD_TYPE__TAB_STOP:
return isSetTabStop();
case FormPackage.PASSWORD_TYPE__TITLE:
return TITLE_EDEFAULT == null ? title != null : !TITLE_EDEFAULT.equals(title);
case FormPackage.PASSWORD_TYPE__VALUE:
return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (bind: ");
result.append(bind);
result.append(", controlImplementation: ");
result.append(controlImplementation);
result.append(", convertEmptyToNull: ");
if (convertEmptyToNullESet) result.append(convertEmptyToNull); else result.append("<unset>");
result.append(", disabled: ");
if (disabledESet) result.append(disabled); else result.append("<unset>");
result.append(", echoChar: ");
if (echoCharESet) result.append(echoChar); else result.append("<unset>");
result.append(", id: ");
result.append(id);
result.append(", maxLength: ");
result.append(maxLength);
result.append(", name: ");
result.append(name);
result.append(", printable: ");
if (printableESet) result.append(printable); else result.append("<unset>");
result.append(", tabIndex: ");
if (tabIndexESet) result.append(tabIndex); else result.append("<unset>");
result.append(", tabStop: ");
if (tabStopESet) result.append(tabStop); else result.append("<unset>");
result.append(", title: ");
result.append(title);
result.append(", value: ");
result.append(value);
result.append(')');
return result.toString();
}
} //PasswordTypeImpl