org.sintef.mofscript.MOFScriptModel.impl
Class LiteralImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by org.sintef.mofscript.MOFScriptModel.impl.MOFScriptObjectImpl
                  extended by org.sintef.mofscript.MOFScriptModel.impl.ExpressionImpl
                      extended by org.sintef.mofscript.MOFScriptModel.impl.ValueExpressionImpl
                          extended by org.sintef.mofscript.MOFScriptModel.impl.SimpleExpressionImpl
                              extended by org.sintef.mofscript.MOFScriptModel.impl.LiteralImpl
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, Expression, Literal, MOFScriptObject, SimpleExpression, ValueExpression

public class LiteralImpl
extends SimpleExpressionImpl
implements Literal

An implementation of the model object 'Literal'.

The following features are implemented:


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
protected  LiteralType type
          The cached value of the 'Type' attribute
protected static LiteralType TYPE_EDEFAULT
          The default value of the 'Type' attribute
protected  java.lang.String value
          The cached value of the 'Value' attribute
protected static java.lang.String VALUE_EDEFAULT
          The default value of the 'Value' attribute
 
Fields inherited from class org.sintef.mofscript.MOFScriptModel.impl.SimpleExpressionImpl
additionalExpressionPart
 
Fields inherited from class org.sintef.mofscript.MOFScriptModel.impl.ValueExpressionImpl
specification, SPECIFICATION_EDEFAULT
 
Fields inherited from class org.sintef.mofscript.MOFScriptModel.impl.MOFScriptObjectImpl
column, COLUMN_EDEFAULT, comment, line, LINE_EDEFAULT
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected LiteralImpl()
           
 
Method Summary
 java.lang.Object eGet(org.eclipse.emf.ecore.EStructuralFeature eFeature, boolean resolve)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, java.lang.Class baseClass, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature eFeature)
           
 void eSet(org.eclipse.emf.ecore.EStructuralFeature eFeature, java.lang.Object newValue)
           
protected  org.eclipse.emf.ecore.EClass eStaticClass()
           
 void eUnset(org.eclipse.emf.ecore.EStructuralFeature eFeature)
           
 LiteralType getType()
           
 java.lang.String getValue()
           
 void setType(LiteralType newType)
           
 void setValue(java.lang.String newValue)
           
 java.lang.String toString()
           
 
Methods inherited from class org.sintef.mofscript.MOFScriptModel.impl.SimpleExpressionImpl
getAdditionalExpressionPart
 
Methods inherited from class org.sintef.mofscript.MOFScriptModel.impl.ValueExpressionImpl
getSpecification, setSpecification
 
Methods inherited from class org.sintef.mofscript.MOFScriptModel.impl.MOFScriptObjectImpl
getColumn, getComment, getLine, setColumn, setLine
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eHasSettings, eInternalResource, eInverseAdd, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eStaticFeatureCount, eStore, eURIFragmentSegment
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.sintef.mofscript.MOFScriptModel.SimpleExpression
getAdditionalExpressionPart
 
Methods inherited from interface org.sintef.mofscript.MOFScriptModel.ValueExpression
getSpecification, setSpecification
 
Methods inherited from interface org.sintef.mofscript.MOFScriptModel.MOFScriptObject
getColumn, getComment, getLine, setColumn, setLine
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eIsProxy, eResource
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

TYPE_EDEFAULT

protected static final LiteralType TYPE_EDEFAULT
The default value of the 'Type' attribute.

See Also:
getType()

type

protected LiteralType type
The cached value of the 'Type' attribute.

See Also:
getType()

VALUE_EDEFAULT

protected static final java.lang.String VALUE_EDEFAULT
The default value of the 'Value' attribute.

See Also:
getValue()

value

protected java.lang.String value
The cached value of the 'Value' attribute.

See Also:
getValue()
Constructor Detail

LiteralImpl

protected LiteralImpl()

Method Detail

eStaticClass

protected org.eclipse.emf.ecore.EClass eStaticClass()

Overrides:
eStaticClass in class SimpleExpressionImpl

getType

public LiteralType getType()

Specified by:
getType in interface Literal
Returns:
the value of the 'Type' attribute.
See Also:
LiteralType, Literal.setType(LiteralType), MOFScriptModelPackage.getLiteral_Type()

setType

public void setType(LiteralType newType)

Specified by:
setType in interface Literal
Parameters:
newType - the new value of the 'Type' attribute.
See Also:
LiteralType, Literal.getType()

getValue

public java.lang.String getValue()

Specified by:
getValue in interface Literal
Returns:
the value of the 'Value' attribute.
See Also:
Literal.setValue(String), MOFScriptModelPackage.getLiteral_Value()

setValue

public void setValue(java.lang.String newValue)

Specified by:
setValue in interface Literal
Parameters:
newValue - the new value of the 'Value' attribute.
See Also:
Literal.getValue()

eInverseRemove

public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                      int featureID,
                                                                      java.lang.Class baseClass,
                                                                      org.eclipse.emf.common.notify.NotificationChain msgs)

Specified by:
eInverseRemove in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eInverseRemove in class SimpleExpressionImpl

eGet

public java.lang.Object eGet(org.eclipse.emf.ecore.EStructuralFeature eFeature,
                             boolean resolve)

Specified by:
eGet in interface org.eclipse.emf.ecore.EObject
Overrides:
eGet in class SimpleExpressionImpl

eSet

public void eSet(org.eclipse.emf.ecore.EStructuralFeature eFeature,
                 java.lang.Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.EObject
Overrides:
eSet in class SimpleExpressionImpl

eUnset

public void eUnset(org.eclipse.emf.ecore.EStructuralFeature eFeature)

Specified by:
eUnset in interface org.eclipse.emf.ecore.EObject
Overrides:
eUnset in class SimpleExpressionImpl

eIsSet

public boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature eFeature)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.EObject
Overrides:
eIsSet in class SimpleExpressionImpl

toString

public java.lang.String toString()

Overrides:
toString in class ValueExpressionImpl