/******************************************************************************* * 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 java.util.Collection; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.util.EObjectContainmentEList; import org.eclipse.emf.ecore.util.InternalEList; import org.oasisopen.names.tc.opendocument.xmlns.form.FormPackage; import org.oasisopen.names.tc.opendocument.xmlns.form.ListSourceTypeType; import org.oasisopen.names.tc.opendocument.xmlns.form.ListboxType; import org.oasisopen.names.tc.opendocument.xmlns.form.OptionType; import org.oasisopen.names.tc.opendocument.xmlns.text.impl.CommonFormControlContentImpl; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Listbox Type</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * <ul> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.ListboxTypeImpl#getOption <em>Option</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.ListboxTypeImpl#getBind <em>Bind</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.ListboxTypeImpl#getBoundColumn <em>Bound Column</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.ListboxTypeImpl#getControlImplementation <em>Control Implementation</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.ListboxTypeImpl#getDataField <em>Data Field</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.ListboxTypeImpl#getDisabled <em>Disabled</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.ListboxTypeImpl#getDropdown <em>Dropdown</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.ListboxTypeImpl#getId <em>Id</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.ListboxTypeImpl#getListSource <em>List Source</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.ListboxTypeImpl#getListSourceType <em>List Source Type</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.ListboxTypeImpl#getMultiple <em>Multiple</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.ListboxTypeImpl#getName <em>Name</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.ListboxTypeImpl#getPrintable <em>Printable</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.ListboxTypeImpl#getSize <em>Size</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.ListboxTypeImpl#getTabIndex <em>Tab Index</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.ListboxTypeImpl#getTabStop <em>Tab Stop</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.ListboxTypeImpl#getTitle <em>Title</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.form.impl.ListboxTypeImpl#getXformsListSource <em>Xforms List Source</em>}</li> * </ul> * </p> * * @generated */ public class ListboxTypeImpl extends CommonFormControlContentImpl implements ListboxType { /** * The cached value of the '{@link #getOption() <em>Option</em>}' containment reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getOption() * @generated * @ordered */ protected EList<OptionType> option; /** * 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 #getBoundColumn() <em>Bound Column</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getBoundColumn() * @generated * @ordered */ protected static final String BOUND_COLUMN_EDEFAULT = null; /** * The cached value of the '{@link #getBoundColumn() <em>Bound Column</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getBoundColumn() * @generated * @ordered */ protected String boundColumn = BOUND_COLUMN_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 #getDataField() <em>Data Field</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getDataField() * @generated * @ordered */ protected static final String DATA_FIELD_EDEFAULT = null; /** * The cached value of the '{@link #getDataField() <em>Data Field</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getDataField() * @generated * @ordered */ protected String dataField = DATA_FIELD_EDEFAULT; /** * 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 #getDropdown() <em>Dropdown</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getDropdown() * @generated * @ordered */ protected static final org.oasisopen.names.tc.opendocument.xmlns.text.Boolean DROPDOWN_EDEFAULT = org.oasisopen.names.tc.opendocument.xmlns.text.Boolean.FALSE; /** * The cached value of the '{@link #getDropdown() <em>Dropdown</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getDropdown() * @generated * @ordered */ protected org.oasisopen.names.tc.opendocument.xmlns.text.Boolean dropdown = DROPDOWN_EDEFAULT; /** * This is true if the Dropdown attribute has been set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ protected boolean dropdownESet; /** * 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 #getListSource() <em>List Source</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getListSource() * @generated * @ordered */ protected static final String LIST_SOURCE_EDEFAULT = null; /** * The cached value of the '{@link #getListSource() <em>List Source</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getListSource() * @generated * @ordered */ protected String listSource = LIST_SOURCE_EDEFAULT; /** * The default value of the '{@link #getListSourceType() <em>List Source Type</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getListSourceType() * @generated * @ordered */ protected static final ListSourceTypeType LIST_SOURCE_TYPE_EDEFAULT = ListSourceTypeType.TABLE; /** * The cached value of the '{@link #getListSourceType() <em>List Source Type</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getListSourceType() * @generated * @ordered */ protected ListSourceTypeType listSourceType = LIST_SOURCE_TYPE_EDEFAULT; /** * This is true if the List Source Type attribute has been set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ protected boolean listSourceTypeESet; /** * The default value of the '{@link #getMultiple() <em>Multiple</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getMultiple() * @generated * @ordered */ protected static final org.oasisopen.names.tc.opendocument.xmlns.text.Boolean MULTIPLE_EDEFAULT = org.oasisopen.names.tc.opendocument.xmlns.text.Boolean.FALSE; /** * The cached value of the '{@link #getMultiple() <em>Multiple</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getMultiple() * @generated * @ordered */ protected org.oasisopen.names.tc.opendocument.xmlns.text.Boolean multiple = MULTIPLE_EDEFAULT; /** * This is true if the Multiple attribute has been set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ protected boolean multipleESet; /** * 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 #getSize() <em>Size</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getSize() * @generated * @ordered */ protected static final BigInteger SIZE_EDEFAULT = null; /** * The cached value of the '{@link #getSize() <em>Size</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getSize() * @generated * @ordered */ protected BigInteger size = SIZE_EDEFAULT; /** * 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 #getXformsListSource() <em>Xforms List Source</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getXformsListSource() * @generated * @ordered */ protected static final String XFORMS_LIST_SOURCE_EDEFAULT = null; /** * The cached value of the '{@link #getXformsListSource() <em>Xforms List Source</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getXformsListSource() * @generated * @ordered */ protected String xformsListSource = XFORMS_LIST_SOURCE_EDEFAULT; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected ListboxTypeImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return FormPackage.eINSTANCE.getListboxType(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EList<OptionType> getOption() { if (option == null) { option = new EObjectContainmentEList<OptionType>(OptionType.class, this, FormPackage.LISTBOX_TYPE__OPTION); } return option; } /** * <!-- 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.LISTBOX_TYPE__BIND, oldBind, bind)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getBoundColumn() { return boundColumn; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setBoundColumn(String newBoundColumn) { String oldBoundColumn = boundColumn; boundColumn = newBoundColumn; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FormPackage.LISTBOX_TYPE__BOUND_COLUMN, oldBoundColumn, boundColumn)); } /** * <!-- 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.LISTBOX_TYPE__CONTROL_IMPLEMENTATION, oldControlImplementation, controlImplementation)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getDataField() { return dataField; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setDataField(String newDataField) { String oldDataField = dataField; dataField = newDataField; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FormPackage.LISTBOX_TYPE__DATA_FIELD, oldDataField, dataField)); } /** * <!-- 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.LISTBOX_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.LISTBOX_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 org.oasisopen.names.tc.opendocument.xmlns.text.Boolean getDropdown() { return dropdown; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setDropdown(org.oasisopen.names.tc.opendocument.xmlns.text.Boolean newDropdown) { org.oasisopen.names.tc.opendocument.xmlns.text.Boolean oldDropdown = dropdown; dropdown = newDropdown == null ? DROPDOWN_EDEFAULT : newDropdown; boolean oldDropdownESet = dropdownESet; dropdownESet = true; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FormPackage.LISTBOX_TYPE__DROPDOWN, oldDropdown, dropdown, !oldDropdownESet)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void unsetDropdown() { org.oasisopen.names.tc.opendocument.xmlns.text.Boolean oldDropdown = dropdown; boolean oldDropdownESet = dropdownESet; dropdown = DROPDOWN_EDEFAULT; dropdownESet = false; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.UNSET, FormPackage.LISTBOX_TYPE__DROPDOWN, oldDropdown, DROPDOWN_EDEFAULT, oldDropdownESet)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean isSetDropdown() { return dropdownESet; } /** * <!-- 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.LISTBOX_TYPE__ID, oldId, id)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getListSource() { return listSource; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setListSource(String newListSource) { String oldListSource = listSource; listSource = newListSource; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FormPackage.LISTBOX_TYPE__LIST_SOURCE, oldListSource, listSource)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ListSourceTypeType getListSourceType() { return listSourceType; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setListSourceType(ListSourceTypeType newListSourceType) { ListSourceTypeType oldListSourceType = listSourceType; listSourceType = newListSourceType == null ? LIST_SOURCE_TYPE_EDEFAULT : newListSourceType; boolean oldListSourceTypeESet = listSourceTypeESet; listSourceTypeESet = true; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FormPackage.LISTBOX_TYPE__LIST_SOURCE_TYPE, oldListSourceType, listSourceType, !oldListSourceTypeESet)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void unsetListSourceType() { ListSourceTypeType oldListSourceType = listSourceType; boolean oldListSourceTypeESet = listSourceTypeESet; listSourceType = LIST_SOURCE_TYPE_EDEFAULT; listSourceTypeESet = false; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.UNSET, FormPackage.LISTBOX_TYPE__LIST_SOURCE_TYPE, oldListSourceType, LIST_SOURCE_TYPE_EDEFAULT, oldListSourceTypeESet)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean isSetListSourceType() { return listSourceTypeESet; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public org.oasisopen.names.tc.opendocument.xmlns.text.Boolean getMultiple() { return multiple; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setMultiple(org.oasisopen.names.tc.opendocument.xmlns.text.Boolean newMultiple) { org.oasisopen.names.tc.opendocument.xmlns.text.Boolean oldMultiple = multiple; multiple = newMultiple == null ? MULTIPLE_EDEFAULT : newMultiple; boolean oldMultipleESet = multipleESet; multipleESet = true; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FormPackage.LISTBOX_TYPE__MULTIPLE, oldMultiple, multiple, !oldMultipleESet)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void unsetMultiple() { org.oasisopen.names.tc.opendocument.xmlns.text.Boolean oldMultiple = multiple; boolean oldMultipleESet = multipleESet; multiple = MULTIPLE_EDEFAULT; multipleESet = false; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.UNSET, FormPackage.LISTBOX_TYPE__MULTIPLE, oldMultiple, MULTIPLE_EDEFAULT, oldMultipleESet)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean isSetMultiple() { return multipleESet; } /** * <!-- 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.LISTBOX_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.LISTBOX_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.LISTBOX_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 getSize() { return size; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setSize(BigInteger newSize) { BigInteger oldSize = size; size = newSize; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FormPackage.LISTBOX_TYPE__SIZE, oldSize, size)); } /** * <!-- 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.LISTBOX_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.LISTBOX_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.LISTBOX_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.LISTBOX_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.LISTBOX_TYPE__TITLE, oldTitle, title)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getXformsListSource() { return xformsListSource; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setXformsListSource(String newXformsListSource) { String oldXformsListSource = xformsListSource; xformsListSource = newXformsListSource; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FormPackage.LISTBOX_TYPE__XFORMS_LIST_SOURCE, oldXformsListSource, xformsListSource)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case FormPackage.LISTBOX_TYPE__OPTION: return ((InternalEList<?>)getOption()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case FormPackage.LISTBOX_TYPE__OPTION: return getOption(); case FormPackage.LISTBOX_TYPE__BIND: return getBind(); case FormPackage.LISTBOX_TYPE__BOUND_COLUMN: return getBoundColumn(); case FormPackage.LISTBOX_TYPE__CONTROL_IMPLEMENTATION: return getControlImplementation(); case FormPackage.LISTBOX_TYPE__DATA_FIELD: return getDataField(); case FormPackage.LISTBOX_TYPE__DISABLED: return getDisabled(); case FormPackage.LISTBOX_TYPE__DROPDOWN: return getDropdown(); case FormPackage.LISTBOX_TYPE__ID: return getId(); case FormPackage.LISTBOX_TYPE__LIST_SOURCE: return getListSource(); case FormPackage.LISTBOX_TYPE__LIST_SOURCE_TYPE: return getListSourceType(); case FormPackage.LISTBOX_TYPE__MULTIPLE: return getMultiple(); case FormPackage.LISTBOX_TYPE__NAME: return getName(); case FormPackage.LISTBOX_TYPE__PRINTABLE: return getPrintable(); case FormPackage.LISTBOX_TYPE__SIZE: return getSize(); case FormPackage.LISTBOX_TYPE__TAB_INDEX: return getTabIndex(); case FormPackage.LISTBOX_TYPE__TAB_STOP: return getTabStop(); case FormPackage.LISTBOX_TYPE__TITLE: return getTitle(); case FormPackage.LISTBOX_TYPE__XFORMS_LIST_SOURCE: return getXformsListSource(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case FormPackage.LISTBOX_TYPE__OPTION: getOption().clear(); getOption().addAll((Collection<? extends OptionType>)newValue); return; case FormPackage.LISTBOX_TYPE__BIND: setBind((String)newValue); return; case FormPackage.LISTBOX_TYPE__BOUND_COLUMN: setBoundColumn((String)newValue); return; case FormPackage.LISTBOX_TYPE__CONTROL_IMPLEMENTATION: setControlImplementation((String)newValue); return; case FormPackage.LISTBOX_TYPE__DATA_FIELD: setDataField((String)newValue); return; case FormPackage.LISTBOX_TYPE__DISABLED: setDisabled((org.oasisopen.names.tc.opendocument.xmlns.text.Boolean)newValue); return; case FormPackage.LISTBOX_TYPE__DROPDOWN: setDropdown((org.oasisopen.names.tc.opendocument.xmlns.text.Boolean)newValue); return; case FormPackage.LISTBOX_TYPE__ID: setId((String)newValue); return; case FormPackage.LISTBOX_TYPE__LIST_SOURCE: setListSource((String)newValue); return; case FormPackage.LISTBOX_TYPE__LIST_SOURCE_TYPE: setListSourceType((ListSourceTypeType)newValue); return; case FormPackage.LISTBOX_TYPE__MULTIPLE: setMultiple((org.oasisopen.names.tc.opendocument.xmlns.text.Boolean)newValue); return; case FormPackage.LISTBOX_TYPE__NAME: setName((String)newValue); return; case FormPackage.LISTBOX_TYPE__PRINTABLE: setPrintable((org.oasisopen.names.tc.opendocument.xmlns.text.Boolean)newValue); return; case FormPackage.LISTBOX_TYPE__SIZE: setSize((BigInteger)newValue); return; case FormPackage.LISTBOX_TYPE__TAB_INDEX: setTabIndex((BigInteger)newValue); return; case FormPackage.LISTBOX_TYPE__TAB_STOP: setTabStop((org.oasisopen.names.tc.opendocument.xmlns.text.Boolean)newValue); return; case FormPackage.LISTBOX_TYPE__TITLE: setTitle(newValue); return; case FormPackage.LISTBOX_TYPE__XFORMS_LIST_SOURCE: setXformsListSource((String)newValue); return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case FormPackage.LISTBOX_TYPE__OPTION: getOption().clear(); return; case FormPackage.LISTBOX_TYPE__BIND: setBind(BIND_EDEFAULT); return; case FormPackage.LISTBOX_TYPE__BOUND_COLUMN: setBoundColumn(BOUND_COLUMN_EDEFAULT); return; case FormPackage.LISTBOX_TYPE__CONTROL_IMPLEMENTATION: setControlImplementation(CONTROL_IMPLEMENTATION_EDEFAULT); return; case FormPackage.LISTBOX_TYPE__DATA_FIELD: setDataField(DATA_FIELD_EDEFAULT); return; case FormPackage.LISTBOX_TYPE__DISABLED: unsetDisabled(); return; case FormPackage.LISTBOX_TYPE__DROPDOWN: unsetDropdown(); return; case FormPackage.LISTBOX_TYPE__ID: setId(ID_EDEFAULT); return; case FormPackage.LISTBOX_TYPE__LIST_SOURCE: setListSource(LIST_SOURCE_EDEFAULT); return; case FormPackage.LISTBOX_TYPE__LIST_SOURCE_TYPE: unsetListSourceType(); return; case FormPackage.LISTBOX_TYPE__MULTIPLE: unsetMultiple(); return; case FormPackage.LISTBOX_TYPE__NAME: setName(NAME_EDEFAULT); return; case FormPackage.LISTBOX_TYPE__PRINTABLE: unsetPrintable(); return; case FormPackage.LISTBOX_TYPE__SIZE: setSize(SIZE_EDEFAULT); return; case FormPackage.LISTBOX_TYPE__TAB_INDEX: unsetTabIndex(); return; case FormPackage.LISTBOX_TYPE__TAB_STOP: unsetTabStop(); return; case FormPackage.LISTBOX_TYPE__TITLE: setTitle(TITLE_EDEFAULT); return; case FormPackage.LISTBOX_TYPE__XFORMS_LIST_SOURCE: setXformsListSource(XFORMS_LIST_SOURCE_EDEFAULT); return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case FormPackage.LISTBOX_TYPE__OPTION: return option != null && !option.isEmpty(); case FormPackage.LISTBOX_TYPE__BIND: return BIND_EDEFAULT == null ? bind != null : !BIND_EDEFAULT.equals(bind); case FormPackage.LISTBOX_TYPE__BOUND_COLUMN: return BOUND_COLUMN_EDEFAULT == null ? boundColumn != null : !BOUND_COLUMN_EDEFAULT.equals(boundColumn); case FormPackage.LISTBOX_TYPE__CONTROL_IMPLEMENTATION: return CONTROL_IMPLEMENTATION_EDEFAULT == null ? controlImplementation != null : !CONTROL_IMPLEMENTATION_EDEFAULT.equals(controlImplementation); case FormPackage.LISTBOX_TYPE__DATA_FIELD: return DATA_FIELD_EDEFAULT == null ? dataField != null : !DATA_FIELD_EDEFAULT.equals(dataField); case FormPackage.LISTBOX_TYPE__DISABLED: return isSetDisabled(); case FormPackage.LISTBOX_TYPE__DROPDOWN: return isSetDropdown(); case FormPackage.LISTBOX_TYPE__ID: return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); case FormPackage.LISTBOX_TYPE__LIST_SOURCE: return LIST_SOURCE_EDEFAULT == null ? listSource != null : !LIST_SOURCE_EDEFAULT.equals(listSource); case FormPackage.LISTBOX_TYPE__LIST_SOURCE_TYPE: return isSetListSourceType(); case FormPackage.LISTBOX_TYPE__MULTIPLE: return isSetMultiple(); case FormPackage.LISTBOX_TYPE__NAME: return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); case FormPackage.LISTBOX_TYPE__PRINTABLE: return isSetPrintable(); case FormPackage.LISTBOX_TYPE__SIZE: return SIZE_EDEFAULT == null ? size != null : !SIZE_EDEFAULT.equals(size); case FormPackage.LISTBOX_TYPE__TAB_INDEX: return isSetTabIndex(); case FormPackage.LISTBOX_TYPE__TAB_STOP: return isSetTabStop(); case FormPackage.LISTBOX_TYPE__TITLE: return TITLE_EDEFAULT == null ? title != null : !TITLE_EDEFAULT.equals(title); case FormPackage.LISTBOX_TYPE__XFORMS_LIST_SOURCE: return XFORMS_LIST_SOURCE_EDEFAULT == null ? xformsListSource != null : !XFORMS_LIST_SOURCE_EDEFAULT.equals(xformsListSource); } 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(", boundColumn: "); result.append(boundColumn); result.append(", controlImplementation: "); result.append(controlImplementation); result.append(", dataField: "); result.append(dataField); result.append(", disabled: "); if (disabledESet) result.append(disabled); else result.append("<unset>"); result.append(", dropdown: "); if (dropdownESet) result.append(dropdown); else result.append("<unset>"); result.append(", id: "); result.append(id); result.append(", listSource: "); result.append(listSource); result.append(", listSourceType: "); if (listSourceTypeESet) result.append(listSourceType); else result.append("<unset>"); result.append(", multiple: "); if (multipleESet) result.append(multiple); else result.append("<unset>"); result.append(", name: "); result.append(name); result.append(", printable: "); if (printableESet) result.append(printable); else result.append("<unset>"); result.append(", size: "); result.append(size); 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(", xformsListSource: "); result.append(xformsListSource); result.append(')'); return result.toString(); } } //ListboxTypeImpl