org.nasdanika.html.model.bootstrap.impl.TextImpl Maven / Gradle / Ivy
/**
*/
package org.nasdanika.html.model.bootstrap.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.nasdanika.html.bootstrap.Color;
import org.nasdanika.html.bootstrap.Text.Alignment;
import org.nasdanika.html.bootstrap.Text.Transform;
import org.nasdanika.html.bootstrap.Text.Weight;
import org.nasdanika.html.model.bootstrap.BootstrapPackage;
import org.nasdanika.html.model.bootstrap.Text;
/**
*
* An implementation of the model object 'Text'.
*
*
* The following features are implemented:
*
*
* - {@link org.nasdanika.html.model.bootstrap.impl.TextImpl#getAlignment Alignment}
* - {@link org.nasdanika.html.model.bootstrap.impl.TextImpl#getColor Color}
* - {@link org.nasdanika.html.model.bootstrap.impl.TextImpl#getTransform Transform}
* - {@link org.nasdanika.html.model.bootstrap.impl.TextImpl#getWeight Weight}
* - {@link org.nasdanika.html.model.bootstrap.impl.TextImpl#isMonospace Monospace}
* - {@link org.nasdanika.html.model.bootstrap.impl.TextImpl#isItalic Italic}
* - {@link org.nasdanika.html.model.bootstrap.impl.TextImpl#isNowrap Nowrap}
* - {@link org.nasdanika.html.model.bootstrap.impl.TextImpl#isTruncate Truncate}
*
*
* @generated
*/
public class TextImpl extends MinimalEObjectImpl.Container implements Text {
/**
* The default value of the '{@link #getAlignment() Alignment}' attribute.
*
*
* @see #getAlignment()
* @generated
* @ordered
*/
protected static final Alignment ALIGNMENT_EDEFAULT = null;
/**
* The default value of the '{@link #getColor() Color}' attribute.
*
*
* @see #getColor()
* @generated
* @ordered
*/
protected static final Color COLOR_EDEFAULT = null;
/**
* The default value of the '{@link #getTransform() Transform}' attribute.
*
*
* @see #getTransform()
* @generated
* @ordered
*/
protected static final Transform TRANSFORM_EDEFAULT = null;
/**
* The default value of the '{@link #getWeight() Weight}' attribute.
*
*
* @see #getWeight()
* @generated
* @ordered
*/
protected static final Weight WEIGHT_EDEFAULT = null;
/**
* The default value of the '{@link #isMonospace() Monospace}' attribute.
*
*
* @see #isMonospace()
* @generated
* @ordered
*/
protected static final boolean MONOSPACE_EDEFAULT = false;
/**
* The default value of the '{@link #isItalic() Italic}' attribute.
*
*
* @see #isItalic()
* @generated
* @ordered
*/
protected static final boolean ITALIC_EDEFAULT = false;
/**
* The default value of the '{@link #isNowrap() Nowrap}' attribute.
*
*
* @see #isNowrap()
* @generated
* @ordered
*/
protected static final boolean NOWRAP_EDEFAULT = false;
/**
* The default value of the '{@link #isTruncate() Truncate}' attribute.
*
*
* @see #isTruncate()
* @generated
* @ordered
*/
protected static final boolean TRUNCATE_EDEFAULT = false;
/**
*
*
* @generated
*/
protected TextImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return BootstrapPackage.Literals.TEXT;
}
/**
*
*
* @generated
*/
@Override
protected int eStaticFeatureCount() {
return 0;
}
/**
*
*
* @generated
*/
@Override
public Alignment getAlignment() {
return (Alignment)eDynamicGet(BootstrapPackage.TEXT__ALIGNMENT, BootstrapPackage.Literals.TEXT__ALIGNMENT, true, true);
}
/**
*
*
* @generated
*/
@Override
public void setAlignment(Alignment newAlignment) {
eDynamicSet(BootstrapPackage.TEXT__ALIGNMENT, BootstrapPackage.Literals.TEXT__ALIGNMENT, newAlignment);
}
/**
*
*
* @generated
*/
@Override
public Color getColor() {
return (Color)eDynamicGet(BootstrapPackage.TEXT__COLOR, BootstrapPackage.Literals.TEXT__COLOR, true, true);
}
/**
*
*
* @generated
*/
@Override
public void setColor(Color newColor) {
eDynamicSet(BootstrapPackage.TEXT__COLOR, BootstrapPackage.Literals.TEXT__COLOR, newColor);
}
/**
*
*
* @generated
*/
@Override
public Transform getTransform() {
return (Transform)eDynamicGet(BootstrapPackage.TEXT__TRANSFORM, BootstrapPackage.Literals.TEXT__TRANSFORM, true, true);
}
/**
*
*
* @generated
*/
@Override
public void setTransform(Transform newTransform) {
eDynamicSet(BootstrapPackage.TEXT__TRANSFORM, BootstrapPackage.Literals.TEXT__TRANSFORM, newTransform);
}
/**
*
*
* @generated
*/
@Override
public Weight getWeight() {
return (Weight)eDynamicGet(BootstrapPackage.TEXT__WEIGHT, BootstrapPackage.Literals.TEXT__WEIGHT, true, true);
}
/**
*
*
* @generated
*/
@Override
public void setWeight(Weight newWeight) {
eDynamicSet(BootstrapPackage.TEXT__WEIGHT, BootstrapPackage.Literals.TEXT__WEIGHT, newWeight);
}
/**
*
*
* @generated
*/
@Override
public boolean isMonospace() {
return (Boolean)eDynamicGet(BootstrapPackage.TEXT__MONOSPACE, BootstrapPackage.Literals.TEXT__MONOSPACE, true, true);
}
/**
*
*
* @generated
*/
@Override
public void setMonospace(boolean newMonospace) {
eDynamicSet(BootstrapPackage.TEXT__MONOSPACE, BootstrapPackage.Literals.TEXT__MONOSPACE, newMonospace);
}
/**
*
*
* @generated
*/
@Override
public boolean isItalic() {
return (Boolean)eDynamicGet(BootstrapPackage.TEXT__ITALIC, BootstrapPackage.Literals.TEXT__ITALIC, true, true);
}
/**
*
*
* @generated
*/
@Override
public void setItalic(boolean newItalic) {
eDynamicSet(BootstrapPackage.TEXT__ITALIC, BootstrapPackage.Literals.TEXT__ITALIC, newItalic);
}
/**
*
*
* @generated
*/
@Override
public boolean isNowrap() {
return (Boolean)eDynamicGet(BootstrapPackage.TEXT__NOWRAP, BootstrapPackage.Literals.TEXT__NOWRAP, true, true);
}
/**
*
*
* @generated
*/
@Override
public void setNowrap(boolean newNowrap) {
eDynamicSet(BootstrapPackage.TEXT__NOWRAP, BootstrapPackage.Literals.TEXT__NOWRAP, newNowrap);
}
/**
*
*
* @generated
*/
@Override
public boolean isTruncate() {
return (Boolean)eDynamicGet(BootstrapPackage.TEXT__TRUNCATE, BootstrapPackage.Literals.TEXT__TRUNCATE, true, true);
}
/**
*
*
* @generated
*/
@Override
public void setTruncate(boolean newTruncate) {
eDynamicSet(BootstrapPackage.TEXT__TRUNCATE, BootstrapPackage.Literals.TEXT__TRUNCATE, newTruncate);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case BootstrapPackage.TEXT__ALIGNMENT:
return getAlignment();
case BootstrapPackage.TEXT__COLOR:
return getColor();
case BootstrapPackage.TEXT__TRANSFORM:
return getTransform();
case BootstrapPackage.TEXT__WEIGHT:
return getWeight();
case BootstrapPackage.TEXT__MONOSPACE:
return isMonospace();
case BootstrapPackage.TEXT__ITALIC:
return isItalic();
case BootstrapPackage.TEXT__NOWRAP:
return isNowrap();
case BootstrapPackage.TEXT__TRUNCATE:
return isTruncate();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case BootstrapPackage.TEXT__ALIGNMENT:
setAlignment((Alignment)newValue);
return;
case BootstrapPackage.TEXT__COLOR:
setColor((Color)newValue);
return;
case BootstrapPackage.TEXT__TRANSFORM:
setTransform((Transform)newValue);
return;
case BootstrapPackage.TEXT__WEIGHT:
setWeight((Weight)newValue);
return;
case BootstrapPackage.TEXT__MONOSPACE:
setMonospace((Boolean)newValue);
return;
case BootstrapPackage.TEXT__ITALIC:
setItalic((Boolean)newValue);
return;
case BootstrapPackage.TEXT__NOWRAP:
setNowrap((Boolean)newValue);
return;
case BootstrapPackage.TEXT__TRUNCATE:
setTruncate((Boolean)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case BootstrapPackage.TEXT__ALIGNMENT:
setAlignment(ALIGNMENT_EDEFAULT);
return;
case BootstrapPackage.TEXT__COLOR:
setColor(COLOR_EDEFAULT);
return;
case BootstrapPackage.TEXT__TRANSFORM:
setTransform(TRANSFORM_EDEFAULT);
return;
case BootstrapPackage.TEXT__WEIGHT:
setWeight(WEIGHT_EDEFAULT);
return;
case BootstrapPackage.TEXT__MONOSPACE:
setMonospace(MONOSPACE_EDEFAULT);
return;
case BootstrapPackage.TEXT__ITALIC:
setItalic(ITALIC_EDEFAULT);
return;
case BootstrapPackage.TEXT__NOWRAP:
setNowrap(NOWRAP_EDEFAULT);
return;
case BootstrapPackage.TEXT__TRUNCATE:
setTruncate(TRUNCATE_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case BootstrapPackage.TEXT__ALIGNMENT:
return ALIGNMENT_EDEFAULT == null ? getAlignment() != null : !ALIGNMENT_EDEFAULT.equals(getAlignment());
case BootstrapPackage.TEXT__COLOR:
return COLOR_EDEFAULT == null ? getColor() != null : !COLOR_EDEFAULT.equals(getColor());
case BootstrapPackage.TEXT__TRANSFORM:
return TRANSFORM_EDEFAULT == null ? getTransform() != null : !TRANSFORM_EDEFAULT.equals(getTransform());
case BootstrapPackage.TEXT__WEIGHT:
return WEIGHT_EDEFAULT == null ? getWeight() != null : !WEIGHT_EDEFAULT.equals(getWeight());
case BootstrapPackage.TEXT__MONOSPACE:
return isMonospace() != MONOSPACE_EDEFAULT;
case BootstrapPackage.TEXT__ITALIC:
return isItalic() != ITALIC_EDEFAULT;
case BootstrapPackage.TEXT__NOWRAP:
return isNowrap() != NOWRAP_EDEFAULT;
case BootstrapPackage.TEXT__TRUNCATE:
return isTruncate() != TRUNCATE_EDEFAULT;
}
return super.eIsSet(featureID);
}
} //TextImpl
© 2015 - 2025 Weber Informatics LLC | Privacy Policy