blob: 542c28af727ecaa9d97836de936a08f1a278f7cd [file] [log] [blame]
/**
*/
package org.w3._1999.xhtml.impl;
import java.math.BigInteger;
import java.util.Collection;
import java.util.List;
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.impl.MinimalEObjectImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
import org.w3._1999.xhtml.AlignType;
import org.w3._1999.xhtml.ColType;
import org.w3._1999.xhtml.ColgroupType;
import org.w3._1999.xhtml.DirType;
import org.w3._1999.xhtml.ValignType;
import org.w3._1999.xhtml.XhtmlPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Colgroup Type</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.w3._1999.xhtml.impl.ColgroupTypeImpl#getCol <em>Col</em>}</li>
* <li>{@link org.w3._1999.xhtml.impl.ColgroupTypeImpl#getAlign <em>Align</em>}</li>
* <li>{@link org.w3._1999.xhtml.impl.ColgroupTypeImpl#getChar <em>Char</em>}</li>
* <li>{@link org.w3._1999.xhtml.impl.ColgroupTypeImpl#getCharoff <em>Charoff</em>}</li>
* <li>{@link org.w3._1999.xhtml.impl.ColgroupTypeImpl#getClass_ <em>Class</em>}</li>
* <li>{@link org.w3._1999.xhtml.impl.ColgroupTypeImpl#getDir <em>Dir</em>}</li>
* <li>{@link org.w3._1999.xhtml.impl.ColgroupTypeImpl#getId <em>Id</em>}</li>
* <li>{@link org.w3._1999.xhtml.impl.ColgroupTypeImpl#getLang <em>Lang</em>}</li>
* <li>{@link org.w3._1999.xhtml.impl.ColgroupTypeImpl#getLang1 <em>Lang1</em>}</li>
* <li>{@link org.w3._1999.xhtml.impl.ColgroupTypeImpl#getOnclick <em>Onclick</em>}</li>
* <li>{@link org.w3._1999.xhtml.impl.ColgroupTypeImpl#getOndblclick <em>Ondblclick</em>}</li>
* <li>{@link org.w3._1999.xhtml.impl.ColgroupTypeImpl#getOnkeydown <em>Onkeydown</em>}</li>
* <li>{@link org.w3._1999.xhtml.impl.ColgroupTypeImpl#getOnkeypress <em>Onkeypress</em>}</li>
* <li>{@link org.w3._1999.xhtml.impl.ColgroupTypeImpl#getOnkeyup <em>Onkeyup</em>}</li>
* <li>{@link org.w3._1999.xhtml.impl.ColgroupTypeImpl#getOnmousedown <em>Onmousedown</em>}</li>
* <li>{@link org.w3._1999.xhtml.impl.ColgroupTypeImpl#getOnmousemove <em>Onmousemove</em>}</li>
* <li>{@link org.w3._1999.xhtml.impl.ColgroupTypeImpl#getOnmouseout <em>Onmouseout</em>}</li>
* <li>{@link org.w3._1999.xhtml.impl.ColgroupTypeImpl#getOnmouseover <em>Onmouseover</em>}</li>
* <li>{@link org.w3._1999.xhtml.impl.ColgroupTypeImpl#getOnmouseup <em>Onmouseup</em>}</li>
* <li>{@link org.w3._1999.xhtml.impl.ColgroupTypeImpl#getSpan <em>Span</em>}</li>
* <li>{@link org.w3._1999.xhtml.impl.ColgroupTypeImpl#getStyle <em>Style</em>}</li>
* <li>{@link org.w3._1999.xhtml.impl.ColgroupTypeImpl#getTitle <em>Title</em>}</li>
* <li>{@link org.w3._1999.xhtml.impl.ColgroupTypeImpl#getValign <em>Valign</em>}</li>
* <li>{@link org.w3._1999.xhtml.impl.ColgroupTypeImpl#getWidth <em>Width</em>}</li>
* </ul>
*
* @generated
*/
public class ColgroupTypeImpl extends MinimalEObjectImpl.Container implements ColgroupType {
/**
* The cached value of the '{@link #getCol() <em>Col</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCol()
* @generated
* @ordered
*/
protected EList<ColType> col;
/**
* The default value of the '{@link #getAlign() <em>Align</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getAlign()
* @generated
* @ordered
*/
protected static final AlignType ALIGN_EDEFAULT = AlignType.LEFT;
/**
* The cached value of the '{@link #getAlign() <em>Align</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getAlign()
* @generated
* @ordered
*/
protected AlignType align = ALIGN_EDEFAULT;
/**
* This is true if the Align attribute has been set.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
protected boolean alignESet;
/**
* The default value of the '{@link #getChar() <em>Char</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getChar()
* @generated
* @ordered
*/
protected static final String CHAR_EDEFAULT = null;
/**
* The cached value of the '{@link #getChar() <em>Char</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getChar()
* @generated
* @ordered
*/
protected String char_ = CHAR_EDEFAULT;
/**
* The default value of the '{@link #getCharoff() <em>Charoff</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCharoff()
* @generated
* @ordered
*/
protected static final String CHAROFF_EDEFAULT = null;
/**
* The cached value of the '{@link #getCharoff() <em>Charoff</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCharoff()
* @generated
* @ordered
*/
protected String charoff = CHAROFF_EDEFAULT;
/**
* The default value of the '{@link #getClass_() <em>Class</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getClass_()
* @generated
* @ordered
*/
protected static final List<String> CLASS_EDEFAULT = null;
/**
* The cached value of the '{@link #getClass_() <em>Class</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getClass_()
* @generated
* @ordered
*/
protected List<String> class_ = CLASS_EDEFAULT;
/**
* The default value of the '{@link #getDir() <em>Dir</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDir()
* @generated
* @ordered
*/
protected static final DirType DIR_EDEFAULT = DirType.LTR;
/**
* The cached value of the '{@link #getDir() <em>Dir</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDir()
* @generated
* @ordered
*/
protected DirType dir = DIR_EDEFAULT;
/**
* This is true if the Dir attribute has been set.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
protected boolean dirESet;
/**
* 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 #getLang() <em>Lang</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getLang()
* @generated
* @ordered
*/
protected static final String LANG_EDEFAULT = null;
/**
* The cached value of the '{@link #getLang() <em>Lang</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getLang()
* @generated
* @ordered
*/
protected String lang = LANG_EDEFAULT;
/**
* The default value of the '{@link #getLang1() <em>Lang1</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getLang1()
* @generated
* @ordered
*/
protected static final String LANG1_EDEFAULT = null;
/**
* The cached value of the '{@link #getLang1() <em>Lang1</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getLang1()
* @generated
* @ordered
*/
protected String lang1 = LANG1_EDEFAULT;
/**
* The default value of the '{@link #getOnclick() <em>Onclick</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOnclick()
* @generated
* @ordered
*/
protected static final String ONCLICK_EDEFAULT = null;
/**
* The cached value of the '{@link #getOnclick() <em>Onclick</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOnclick()
* @generated
* @ordered
*/
protected String onclick = ONCLICK_EDEFAULT;
/**
* The default value of the '{@link #getOndblclick() <em>Ondblclick</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOndblclick()
* @generated
* @ordered
*/
protected static final String ONDBLCLICK_EDEFAULT = null;
/**
* The cached value of the '{@link #getOndblclick() <em>Ondblclick</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOndblclick()
* @generated
* @ordered
*/
protected String ondblclick = ONDBLCLICK_EDEFAULT;
/**
* The default value of the '{@link #getOnkeydown() <em>Onkeydown</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOnkeydown()
* @generated
* @ordered
*/
protected static final String ONKEYDOWN_EDEFAULT = null;
/**
* The cached value of the '{@link #getOnkeydown() <em>Onkeydown</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOnkeydown()
* @generated
* @ordered
*/
protected String onkeydown = ONKEYDOWN_EDEFAULT;
/**
* The default value of the '{@link #getOnkeypress() <em>Onkeypress</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOnkeypress()
* @generated
* @ordered
*/
protected static final String ONKEYPRESS_EDEFAULT = null;
/**
* The cached value of the '{@link #getOnkeypress() <em>Onkeypress</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOnkeypress()
* @generated
* @ordered
*/
protected String onkeypress = ONKEYPRESS_EDEFAULT;
/**
* The default value of the '{@link #getOnkeyup() <em>Onkeyup</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOnkeyup()
* @generated
* @ordered
*/
protected static final String ONKEYUP_EDEFAULT = null;
/**
* The cached value of the '{@link #getOnkeyup() <em>Onkeyup</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOnkeyup()
* @generated
* @ordered
*/
protected String onkeyup = ONKEYUP_EDEFAULT;
/**
* The default value of the '{@link #getOnmousedown() <em>Onmousedown</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOnmousedown()
* @generated
* @ordered
*/
protected static final String ONMOUSEDOWN_EDEFAULT = null;
/**
* The cached value of the '{@link #getOnmousedown() <em>Onmousedown</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOnmousedown()
* @generated
* @ordered
*/
protected String onmousedown = ONMOUSEDOWN_EDEFAULT;
/**
* The default value of the '{@link #getOnmousemove() <em>Onmousemove</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOnmousemove()
* @generated
* @ordered
*/
protected static final String ONMOUSEMOVE_EDEFAULT = null;
/**
* The cached value of the '{@link #getOnmousemove() <em>Onmousemove</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOnmousemove()
* @generated
* @ordered
*/
protected String onmousemove = ONMOUSEMOVE_EDEFAULT;
/**
* The default value of the '{@link #getOnmouseout() <em>Onmouseout</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOnmouseout()
* @generated
* @ordered
*/
protected static final String ONMOUSEOUT_EDEFAULT = null;
/**
* The cached value of the '{@link #getOnmouseout() <em>Onmouseout</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOnmouseout()
* @generated
* @ordered
*/
protected String onmouseout = ONMOUSEOUT_EDEFAULT;
/**
* The default value of the '{@link #getOnmouseover() <em>Onmouseover</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOnmouseover()
* @generated
* @ordered
*/
protected static final String ONMOUSEOVER_EDEFAULT = null;
/**
* The cached value of the '{@link #getOnmouseover() <em>Onmouseover</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOnmouseover()
* @generated
* @ordered
*/
protected String onmouseover = ONMOUSEOVER_EDEFAULT;
/**
* The default value of the '{@link #getOnmouseup() <em>Onmouseup</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOnmouseup()
* @generated
* @ordered
*/
protected static final String ONMOUSEUP_EDEFAULT = null;
/**
* The cached value of the '{@link #getOnmouseup() <em>Onmouseup</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOnmouseup()
* @generated
* @ordered
*/
protected String onmouseup = ONMOUSEUP_EDEFAULT;
/**
* The default value of the '{@link #getSpan() <em>Span</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getSpan()
* @generated
* @ordered
*/
protected static final BigInteger SPAN_EDEFAULT = new BigInteger("1");
/**
* The cached value of the '{@link #getSpan() <em>Span</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getSpan()
* @generated
* @ordered
*/
protected BigInteger span = SPAN_EDEFAULT;
/**
* This is true if the Span attribute has been set.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
protected boolean spanESet;
/**
* The default value of the '{@link #getStyle() <em>Style</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getStyle()
* @generated
* @ordered
*/
protected static final String STYLE_EDEFAULT = null;
/**
* The cached value of the '{@link #getStyle() <em>Style</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getStyle()
* @generated
* @ordered
*/
protected String style = STYLE_EDEFAULT;
/**
* The default value of the '{@link #getTitle() <em>Title</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTitle()
* @generated
* @ordered
*/
protected static final String 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 String title = TITLE_EDEFAULT;
/**
* The default value of the '{@link #getValign() <em>Valign</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValign()
* @generated
* @ordered
*/
protected static final ValignType VALIGN_EDEFAULT = ValignType.TOP;
/**
* The cached value of the '{@link #getValign() <em>Valign</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValign()
* @generated
* @ordered
*/
protected ValignType valign = VALIGN_EDEFAULT;
/**
* This is true if the Valign attribute has been set.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
protected boolean valignESet;
/**
* The default value of the '{@link #getWidth() <em>Width</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getWidth()
* @generated
* @ordered
*/
protected static final String WIDTH_EDEFAULT = null;
/**
* The cached value of the '{@link #getWidth() <em>Width</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getWidth()
* @generated
* @ordered
*/
protected String width = WIDTH_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ColgroupTypeImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return XhtmlPackage.eINSTANCE.getColgroupType();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<ColType> getCol() {
if (col == null) {
col = new EObjectContainmentEList<ColType>(ColType.class, this, XhtmlPackage.COLGROUP_TYPE__COL);
}
return col;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public AlignType getAlign() {
return align;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setAlign(AlignType newAlign) {
AlignType oldAlign = align;
align = newAlign == null ? ALIGN_EDEFAULT : newAlign;
boolean oldAlignESet = alignESet;
alignESet = true;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XhtmlPackage.COLGROUP_TYPE__ALIGN, oldAlign, align, !oldAlignESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void unsetAlign() {
AlignType oldAlign = align;
boolean oldAlignESet = alignESet;
align = ALIGN_EDEFAULT;
alignESet = false;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.UNSET, XhtmlPackage.COLGROUP_TYPE__ALIGN, oldAlign, ALIGN_EDEFAULT, oldAlignESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isSetAlign() {
return alignESet;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getChar() {
return char_;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setChar(String newChar) {
String oldChar = char_;
char_ = newChar;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XhtmlPackage.COLGROUP_TYPE__CHAR, oldChar, char_));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getCharoff() {
return charoff;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setCharoff(String newCharoff) {
String oldCharoff = charoff;
charoff = newCharoff;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XhtmlPackage.COLGROUP_TYPE__CHAROFF, oldCharoff, charoff));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List<String> getClass_() {
return class_;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setClass(List<String> newClass) {
List<String> oldClass = class_;
class_ = newClass;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XhtmlPackage.COLGROUP_TYPE__CLASS, oldClass, class_));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public DirType getDir() {
return dir;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDir(DirType newDir) {
DirType oldDir = dir;
dir = newDir == null ? DIR_EDEFAULT : newDir;
boolean oldDirESet = dirESet;
dirESet = true;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XhtmlPackage.COLGROUP_TYPE__DIR, oldDir, dir, !oldDirESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void unsetDir() {
DirType oldDir = dir;
boolean oldDirESet = dirESet;
dir = DIR_EDEFAULT;
dirESet = false;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.UNSET, XhtmlPackage.COLGROUP_TYPE__DIR, oldDir, DIR_EDEFAULT, oldDirESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isSetDir() {
return dirESet;
}
/**
* <!-- 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, XhtmlPackage.COLGROUP_TYPE__ID, oldId, id));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getLang() {
return lang;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setLang(String newLang) {
String oldLang = lang;
lang = newLang;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XhtmlPackage.COLGROUP_TYPE__LANG, oldLang, lang));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getLang1() {
return lang1;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setLang1(String newLang1) {
String oldLang1 = lang1;
lang1 = newLang1;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XhtmlPackage.COLGROUP_TYPE__LANG1, oldLang1, lang1));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getOnclick() {
return onclick;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOnclick(String newOnclick) {
String oldOnclick = onclick;
onclick = newOnclick;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XhtmlPackage.COLGROUP_TYPE__ONCLICK, oldOnclick, onclick));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getOndblclick() {
return ondblclick;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOndblclick(String newOndblclick) {
String oldOndblclick = ondblclick;
ondblclick = newOndblclick;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XhtmlPackage.COLGROUP_TYPE__ONDBLCLICK, oldOndblclick, ondblclick));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getOnkeydown() {
return onkeydown;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOnkeydown(String newOnkeydown) {
String oldOnkeydown = onkeydown;
onkeydown = newOnkeydown;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XhtmlPackage.COLGROUP_TYPE__ONKEYDOWN, oldOnkeydown, onkeydown));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getOnkeypress() {
return onkeypress;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOnkeypress(String newOnkeypress) {
String oldOnkeypress = onkeypress;
onkeypress = newOnkeypress;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XhtmlPackage.COLGROUP_TYPE__ONKEYPRESS, oldOnkeypress, onkeypress));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getOnkeyup() {
return onkeyup;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOnkeyup(String newOnkeyup) {
String oldOnkeyup = onkeyup;
onkeyup = newOnkeyup;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XhtmlPackage.COLGROUP_TYPE__ONKEYUP, oldOnkeyup, onkeyup));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getOnmousedown() {
return onmousedown;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOnmousedown(String newOnmousedown) {
String oldOnmousedown = onmousedown;
onmousedown = newOnmousedown;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XhtmlPackage.COLGROUP_TYPE__ONMOUSEDOWN, oldOnmousedown, onmousedown));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getOnmousemove() {
return onmousemove;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOnmousemove(String newOnmousemove) {
String oldOnmousemove = onmousemove;
onmousemove = newOnmousemove;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XhtmlPackage.COLGROUP_TYPE__ONMOUSEMOVE, oldOnmousemove, onmousemove));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getOnmouseout() {
return onmouseout;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOnmouseout(String newOnmouseout) {
String oldOnmouseout = onmouseout;
onmouseout = newOnmouseout;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XhtmlPackage.COLGROUP_TYPE__ONMOUSEOUT, oldOnmouseout, onmouseout));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getOnmouseover() {
return onmouseover;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOnmouseover(String newOnmouseover) {
String oldOnmouseover = onmouseover;
onmouseover = newOnmouseover;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XhtmlPackage.COLGROUP_TYPE__ONMOUSEOVER, oldOnmouseover, onmouseover));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getOnmouseup() {
return onmouseup;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOnmouseup(String newOnmouseup) {
String oldOnmouseup = onmouseup;
onmouseup = newOnmouseup;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XhtmlPackage.COLGROUP_TYPE__ONMOUSEUP, oldOnmouseup, onmouseup));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public BigInteger getSpan() {
return span;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSpan(BigInteger newSpan) {
BigInteger oldSpan = span;
span = newSpan;
boolean oldSpanESet = spanESet;
spanESet = true;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XhtmlPackage.COLGROUP_TYPE__SPAN, oldSpan, span, !oldSpanESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void unsetSpan() {
BigInteger oldSpan = span;
boolean oldSpanESet = spanESet;
span = SPAN_EDEFAULT;
spanESet = false;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.UNSET, XhtmlPackage.COLGROUP_TYPE__SPAN, oldSpan, SPAN_EDEFAULT, oldSpanESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isSetSpan() {
return spanESet;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getStyle() {
return style;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setStyle(String newStyle) {
String oldStyle = style;
style = newStyle;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XhtmlPackage.COLGROUP_TYPE__STYLE, oldStyle, style));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getTitle() {
return title;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setTitle(String newTitle) {
String oldTitle = title;
title = newTitle;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XhtmlPackage.COLGROUP_TYPE__TITLE, oldTitle, title));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ValignType getValign() {
return valign;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setValign(ValignType newValign) {
ValignType oldValign = valign;
valign = newValign == null ? VALIGN_EDEFAULT : newValign;
boolean oldValignESet = valignESet;
valignESet = true;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XhtmlPackage.COLGROUP_TYPE__VALIGN, oldValign, valign, !oldValignESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void unsetValign() {
ValignType oldValign = valign;
boolean oldValignESet = valignESet;
valign = VALIGN_EDEFAULT;
valignESet = false;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.UNSET, XhtmlPackage.COLGROUP_TYPE__VALIGN, oldValign, VALIGN_EDEFAULT, oldValignESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isSetValign() {
return valignESet;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getWidth() {
return width;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setWidth(String newWidth) {
String oldWidth = width;
width = newWidth;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XhtmlPackage.COLGROUP_TYPE__WIDTH, oldWidth, width));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case XhtmlPackage.COLGROUP_TYPE__COL:
return ((InternalEList<?>)getCol()).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 XhtmlPackage.COLGROUP_TYPE__COL:
return getCol();
case XhtmlPackage.COLGROUP_TYPE__ALIGN:
return getAlign();
case XhtmlPackage.COLGROUP_TYPE__CHAR:
return getChar();
case XhtmlPackage.COLGROUP_TYPE__CHAROFF:
return getCharoff();
case XhtmlPackage.COLGROUP_TYPE__CLASS:
return getClass_();
case XhtmlPackage.COLGROUP_TYPE__DIR:
return getDir();
case XhtmlPackage.COLGROUP_TYPE__ID:
return getId();
case XhtmlPackage.COLGROUP_TYPE__LANG:
return getLang();
case XhtmlPackage.COLGROUP_TYPE__LANG1:
return getLang1();
case XhtmlPackage.COLGROUP_TYPE__ONCLICK:
return getOnclick();
case XhtmlPackage.COLGROUP_TYPE__ONDBLCLICK:
return getOndblclick();
case XhtmlPackage.COLGROUP_TYPE__ONKEYDOWN:
return getOnkeydown();
case XhtmlPackage.COLGROUP_TYPE__ONKEYPRESS:
return getOnkeypress();
case XhtmlPackage.COLGROUP_TYPE__ONKEYUP:
return getOnkeyup();
case XhtmlPackage.COLGROUP_TYPE__ONMOUSEDOWN:
return getOnmousedown();
case XhtmlPackage.COLGROUP_TYPE__ONMOUSEMOVE:
return getOnmousemove();
case XhtmlPackage.COLGROUP_TYPE__ONMOUSEOUT:
return getOnmouseout();
case XhtmlPackage.COLGROUP_TYPE__ONMOUSEOVER:
return getOnmouseover();
case XhtmlPackage.COLGROUP_TYPE__ONMOUSEUP:
return getOnmouseup();
case XhtmlPackage.COLGROUP_TYPE__SPAN:
return getSpan();
case XhtmlPackage.COLGROUP_TYPE__STYLE:
return getStyle();
case XhtmlPackage.COLGROUP_TYPE__TITLE:
return getTitle();
case XhtmlPackage.COLGROUP_TYPE__VALIGN:
return getValign();
case XhtmlPackage.COLGROUP_TYPE__WIDTH:
return getWidth();
}
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 XhtmlPackage.COLGROUP_TYPE__COL:
getCol().clear();
getCol().addAll((Collection<? extends ColType>)newValue);
return;
case XhtmlPackage.COLGROUP_TYPE__ALIGN:
setAlign((AlignType)newValue);
return;
case XhtmlPackage.COLGROUP_TYPE__CHAR:
setChar((String)newValue);
return;
case XhtmlPackage.COLGROUP_TYPE__CHAROFF:
setCharoff((String)newValue);
return;
case XhtmlPackage.COLGROUP_TYPE__CLASS:
setClass((List<String>)newValue);
return;
case XhtmlPackage.COLGROUP_TYPE__DIR:
setDir((DirType)newValue);
return;
case XhtmlPackage.COLGROUP_TYPE__ID:
setId((String)newValue);
return;
case XhtmlPackage.COLGROUP_TYPE__LANG:
setLang((String)newValue);
return;
case XhtmlPackage.COLGROUP_TYPE__LANG1:
setLang1((String)newValue);
return;
case XhtmlPackage.COLGROUP_TYPE__ONCLICK:
setOnclick((String)newValue);
return;
case XhtmlPackage.COLGROUP_TYPE__ONDBLCLICK:
setOndblclick((String)newValue);
return;
case XhtmlPackage.COLGROUP_TYPE__ONKEYDOWN:
setOnkeydown((String)newValue);
return;
case XhtmlPackage.COLGROUP_TYPE__ONKEYPRESS:
setOnkeypress((String)newValue);
return;
case XhtmlPackage.COLGROUP_TYPE__ONKEYUP:
setOnkeyup((String)newValue);
return;
case XhtmlPackage.COLGROUP_TYPE__ONMOUSEDOWN:
setOnmousedown((String)newValue);
return;
case XhtmlPackage.COLGROUP_TYPE__ONMOUSEMOVE:
setOnmousemove((String)newValue);
return;
case XhtmlPackage.COLGROUP_TYPE__ONMOUSEOUT:
setOnmouseout((String)newValue);
return;
case XhtmlPackage.COLGROUP_TYPE__ONMOUSEOVER:
setOnmouseover((String)newValue);
return;
case XhtmlPackage.COLGROUP_TYPE__ONMOUSEUP:
setOnmouseup((String)newValue);
return;
case XhtmlPackage.COLGROUP_TYPE__SPAN:
setSpan((BigInteger)newValue);
return;
case XhtmlPackage.COLGROUP_TYPE__STYLE:
setStyle((String)newValue);
return;
case XhtmlPackage.COLGROUP_TYPE__TITLE:
setTitle((String)newValue);
return;
case XhtmlPackage.COLGROUP_TYPE__VALIGN:
setValign((ValignType)newValue);
return;
case XhtmlPackage.COLGROUP_TYPE__WIDTH:
setWidth((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case XhtmlPackage.COLGROUP_TYPE__COL:
getCol().clear();
return;
case XhtmlPackage.COLGROUP_TYPE__ALIGN:
unsetAlign();
return;
case XhtmlPackage.COLGROUP_TYPE__CHAR:
setChar(CHAR_EDEFAULT);
return;
case XhtmlPackage.COLGROUP_TYPE__CHAROFF:
setCharoff(CHAROFF_EDEFAULT);
return;
case XhtmlPackage.COLGROUP_TYPE__CLASS:
setClass(CLASS_EDEFAULT);
return;
case XhtmlPackage.COLGROUP_TYPE__DIR:
unsetDir();
return;
case XhtmlPackage.COLGROUP_TYPE__ID:
setId(ID_EDEFAULT);
return;
case XhtmlPackage.COLGROUP_TYPE__LANG:
setLang(LANG_EDEFAULT);
return;
case XhtmlPackage.COLGROUP_TYPE__LANG1:
setLang1(LANG1_EDEFAULT);
return;
case XhtmlPackage.COLGROUP_TYPE__ONCLICK:
setOnclick(ONCLICK_EDEFAULT);
return;
case XhtmlPackage.COLGROUP_TYPE__ONDBLCLICK:
setOndblclick(ONDBLCLICK_EDEFAULT);
return;
case XhtmlPackage.COLGROUP_TYPE__ONKEYDOWN:
setOnkeydown(ONKEYDOWN_EDEFAULT);
return;
case XhtmlPackage.COLGROUP_TYPE__ONKEYPRESS:
setOnkeypress(ONKEYPRESS_EDEFAULT);
return;
case XhtmlPackage.COLGROUP_TYPE__ONKEYUP:
setOnkeyup(ONKEYUP_EDEFAULT);
return;
case XhtmlPackage.COLGROUP_TYPE__ONMOUSEDOWN:
setOnmousedown(ONMOUSEDOWN_EDEFAULT);
return;
case XhtmlPackage.COLGROUP_TYPE__ONMOUSEMOVE:
setOnmousemove(ONMOUSEMOVE_EDEFAULT);
return;
case XhtmlPackage.COLGROUP_TYPE__ONMOUSEOUT:
setOnmouseout(ONMOUSEOUT_EDEFAULT);
return;
case XhtmlPackage.COLGROUP_TYPE__ONMOUSEOVER:
setOnmouseover(ONMOUSEOVER_EDEFAULT);
return;
case XhtmlPackage.COLGROUP_TYPE__ONMOUSEUP:
setOnmouseup(ONMOUSEUP_EDEFAULT);
return;
case XhtmlPackage.COLGROUP_TYPE__SPAN:
unsetSpan();
return;
case XhtmlPackage.COLGROUP_TYPE__STYLE:
setStyle(STYLE_EDEFAULT);
return;
case XhtmlPackage.COLGROUP_TYPE__TITLE:
setTitle(TITLE_EDEFAULT);
return;
case XhtmlPackage.COLGROUP_TYPE__VALIGN:
unsetValign();
return;
case XhtmlPackage.COLGROUP_TYPE__WIDTH:
setWidth(WIDTH_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case XhtmlPackage.COLGROUP_TYPE__COL:
return col != null && !col.isEmpty();
case XhtmlPackage.COLGROUP_TYPE__ALIGN:
return isSetAlign();
case XhtmlPackage.COLGROUP_TYPE__CHAR:
return CHAR_EDEFAULT == null ? char_ != null : !CHAR_EDEFAULT.equals(char_);
case XhtmlPackage.COLGROUP_TYPE__CHAROFF:
return CHAROFF_EDEFAULT == null ? charoff != null : !CHAROFF_EDEFAULT.equals(charoff);
case XhtmlPackage.COLGROUP_TYPE__CLASS:
return CLASS_EDEFAULT == null ? class_ != null : !CLASS_EDEFAULT.equals(class_);
case XhtmlPackage.COLGROUP_TYPE__DIR:
return isSetDir();
case XhtmlPackage.COLGROUP_TYPE__ID:
return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
case XhtmlPackage.COLGROUP_TYPE__LANG:
return LANG_EDEFAULT == null ? lang != null : !LANG_EDEFAULT.equals(lang);
case XhtmlPackage.COLGROUP_TYPE__LANG1:
return LANG1_EDEFAULT == null ? lang1 != null : !LANG1_EDEFAULT.equals(lang1);
case XhtmlPackage.COLGROUP_TYPE__ONCLICK:
return ONCLICK_EDEFAULT == null ? onclick != null : !ONCLICK_EDEFAULT.equals(onclick);
case XhtmlPackage.COLGROUP_TYPE__ONDBLCLICK:
return ONDBLCLICK_EDEFAULT == null ? ondblclick != null : !ONDBLCLICK_EDEFAULT.equals(ondblclick);
case XhtmlPackage.COLGROUP_TYPE__ONKEYDOWN:
return ONKEYDOWN_EDEFAULT == null ? onkeydown != null : !ONKEYDOWN_EDEFAULT.equals(onkeydown);
case XhtmlPackage.COLGROUP_TYPE__ONKEYPRESS:
return ONKEYPRESS_EDEFAULT == null ? onkeypress != null : !ONKEYPRESS_EDEFAULT.equals(onkeypress);
case XhtmlPackage.COLGROUP_TYPE__ONKEYUP:
return ONKEYUP_EDEFAULT == null ? onkeyup != null : !ONKEYUP_EDEFAULT.equals(onkeyup);
case XhtmlPackage.COLGROUP_TYPE__ONMOUSEDOWN:
return ONMOUSEDOWN_EDEFAULT == null ? onmousedown != null : !ONMOUSEDOWN_EDEFAULT.equals(onmousedown);
case XhtmlPackage.COLGROUP_TYPE__ONMOUSEMOVE:
return ONMOUSEMOVE_EDEFAULT == null ? onmousemove != null : !ONMOUSEMOVE_EDEFAULT.equals(onmousemove);
case XhtmlPackage.COLGROUP_TYPE__ONMOUSEOUT:
return ONMOUSEOUT_EDEFAULT == null ? onmouseout != null : !ONMOUSEOUT_EDEFAULT.equals(onmouseout);
case XhtmlPackage.COLGROUP_TYPE__ONMOUSEOVER:
return ONMOUSEOVER_EDEFAULT == null ? onmouseover != null : !ONMOUSEOVER_EDEFAULT.equals(onmouseover);
case XhtmlPackage.COLGROUP_TYPE__ONMOUSEUP:
return ONMOUSEUP_EDEFAULT == null ? onmouseup != null : !ONMOUSEUP_EDEFAULT.equals(onmouseup);
case XhtmlPackage.COLGROUP_TYPE__SPAN:
return isSetSpan();
case XhtmlPackage.COLGROUP_TYPE__STYLE:
return STYLE_EDEFAULT == null ? style != null : !STYLE_EDEFAULT.equals(style);
case XhtmlPackage.COLGROUP_TYPE__TITLE:
return TITLE_EDEFAULT == null ? title != null : !TITLE_EDEFAULT.equals(title);
case XhtmlPackage.COLGROUP_TYPE__VALIGN:
return isSetValign();
case XhtmlPackage.COLGROUP_TYPE__WIDTH:
return WIDTH_EDEFAULT == null ? width != null : !WIDTH_EDEFAULT.equals(width);
}
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(" (align: ");
if (alignESet) result.append(align); else result.append("<unset>");
result.append(", char: ");
result.append(char_);
result.append(", charoff: ");
result.append(charoff);
result.append(", class: ");
result.append(class_);
result.append(", dir: ");
if (dirESet) result.append(dir); else result.append("<unset>");
result.append(", id: ");
result.append(id);
result.append(", lang: ");
result.append(lang);
result.append(", lang1: ");
result.append(lang1);
result.append(", onclick: ");
result.append(onclick);
result.append(", ondblclick: ");
result.append(ondblclick);
result.append(", onkeydown: ");
result.append(onkeydown);
result.append(", onkeypress: ");
result.append(onkeypress);
result.append(", onkeyup: ");
result.append(onkeyup);
result.append(", onmousedown: ");
result.append(onmousedown);
result.append(", onmousemove: ");
result.append(onmousemove);
result.append(", onmouseout: ");
result.append(onmouseout);
result.append(", onmouseover: ");
result.append(onmouseover);
result.append(", onmouseup: ");
result.append(onmouseup);
result.append(", span: ");
if (spanESet) result.append(span); else result.append("<unset>");
result.append(", style: ");
result.append(style);
result.append(", title: ");
result.append(title);
result.append(", valign: ");
if (valignESet) result.append(valign); else result.append("<unset>");
result.append(", width: ");
result.append(width);
result.append(')');
return result.toString();
}
} //ColgroupTypeImpl