org.eclipse.xtext.ui.codetemplates.templates.impl
Class CodetemplateImpl

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.MinimalEObjectImpl
              extended by org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
                  extended by org.eclipse.xtext.ui.codetemplates.templates.impl.CodetemplateImpl
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder, org.eclipse.emf.ecore.InternalEObject, Codetemplate

public class CodetemplateImpl
extends org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
implements Codetemplate

An implementation of the model object 'Codetemplate'.

The following features are implemented:

EMF generated code

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container.Dynamic
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
 
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.EPropertiesHolderBaseImpl, 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<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
protected  TemplateBody body
          The cached value of the 'Body' containment reference
protected  AbstractRule context
          The cached value of the 'Context' reference
protected  java.lang.String description
          The cached value of the 'Description' attribute
protected static java.lang.String DESCRIPTION_EDEFAULT
          The default value of the 'Description' attribute
protected  java.lang.String id
          The cached value of the 'Id' attribute
protected static java.lang.String ID_EDEFAULT
          The default value of the 'Id' attribute
protected static java.lang.String KEYWORD_CONTEXT_EDEFAULT
          The default value of the 'Keyword Context' attribute
protected  java.lang.String keywordContext
          The cached value of the 'Keyword Context' attribute
protected  java.lang.String name
          The cached value of the 'Name' attribute
protected static java.lang.String NAME_EDEFAULT
          The default value of the 'Name' attribute
 
Fields inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
eContainer
 
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
 
Fields inherited from interface org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder
NIL
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected CodetemplateImpl()
           
 
Method Summary
 AbstractRule basicGetContext()
           
 org.eclipse.emf.common.notify.NotificationChain basicSetBody(TemplateBody newBody, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
protected  org.eclipse.emf.ecore.EClass eStaticClass()
           
 void eUnset(int featureID)
           
 TemplateBody getBody()
           
 AbstractRule getContext()
           
 java.lang.String getDescription()
           
 java.lang.String getId()
           
 java.lang.String getKeywordContext()
           
 java.lang.String getName()
           
 void setBody(TemplateBody newBody)
           
 void setContext(AbstractRule newContext)
           
 void setDescription(java.lang.String newDescription)
           
 void setId(java.lang.String newId)
           
 void setKeywordContext(java.lang.String newKeywordContext)
           
 void setName(java.lang.String newName)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
eBasicSetContainer, eInternalContainer
 
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
dynamicGet, dynamicSet, dynamicUnset, eAdapters, eBasicAdapterArray, eBasicAdapters, eBasicHasAdapters, eBasicProperties, eBasicSetAdapterArray, eBasicSetContainer, eBasicSetContainerFeatureID, eBasicSetSettings, eBasicSettings, eClass, eContainerFeatureID, eContents, eCrossReferences, eDeliver, eDirectResource, eDynamicClass, eHasSettings, eIsProxy, eProperties, eProxyURI, eSetClass, eSetDeliver, eSetDirectResource, eSetProxyURI, eSettings
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDynamicBasicRemoveFromContainer, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eSettingDelegate, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
 
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.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
 
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

NAME_EDEFAULT

protected static final java.lang.String NAME_EDEFAULT
The default value of the 'Name' attribute.

See Also:
getName()
EMF generated code
EMF ordered

name

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

See Also:
getName()
EMF generated code
EMF ordered

ID_EDEFAULT

protected static final java.lang.String ID_EDEFAULT
The default value of the 'Id' attribute.

See Also:
getId()
EMF generated code
EMF ordered

id

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

See Also:
getId()
EMF generated code
EMF ordered

DESCRIPTION_EDEFAULT

protected static final java.lang.String DESCRIPTION_EDEFAULT
The default value of the 'Description' attribute.

See Also:
getDescription()
EMF generated code
EMF ordered

description

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

See Also:
getDescription()
EMF generated code
EMF ordered

context

protected AbstractRule context
The cached value of the 'Context' reference.

See Also:
getContext()
EMF generated code
EMF ordered

KEYWORD_CONTEXT_EDEFAULT

protected static final java.lang.String KEYWORD_CONTEXT_EDEFAULT
The default value of the 'Keyword Context' attribute.

See Also:
getKeywordContext()
EMF generated code
EMF ordered

keywordContext

protected java.lang.String keywordContext
The cached value of the 'Keyword Context' attribute.

See Also:
getKeywordContext()
EMF generated code
EMF ordered

body

protected TemplateBody body
The cached value of the 'Body' containment reference.

See Also:
getBody()
EMF generated code
EMF ordered
Constructor Detail

CodetemplateImpl

protected CodetemplateImpl()

EMF generated code
Method Detail

eStaticClass

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

Overrides:
eStaticClass in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EMF generated code

getName

public java.lang.String getName()

Specified by:
getName in interface Codetemplate
Returns:
the value of the 'Name' attribute.
See Also:
Codetemplate.setName(String), TemplatesPackage.getCodetemplate_Name()
EMF generated code

setName

public void setName(java.lang.String newName)

Specified by:
setName in interface Codetemplate
Parameters:
newName - the new value of the 'Name' attribute.
See Also:
Codetemplate.getName()
EMF generated code

getId

public java.lang.String getId()

Specified by:
getId in interface Codetemplate
Returns:
the value of the 'Id' attribute.
See Also:
Codetemplate.setId(String), TemplatesPackage.getCodetemplate_Id()
EMF generated code

setId

public void setId(java.lang.String newId)

Specified by:
setId in interface Codetemplate
Parameters:
newId - the new value of the 'Id' attribute.
See Also:
Codetemplate.getId()
EMF generated code

getDescription

public java.lang.String getDescription()

Specified by:
getDescription in interface Codetemplate
Returns:
the value of the 'Description' attribute.
See Also:
Codetemplate.setDescription(String), TemplatesPackage.getCodetemplate_Description()
EMF generated code

setDescription

public void setDescription(java.lang.String newDescription)

Specified by:
setDescription in interface Codetemplate
Parameters:
newDescription - the new value of the 'Description' attribute.
See Also:
Codetemplate.getDescription()
EMF generated code

getContext

public AbstractRule getContext()

Specified by:
getContext in interface Codetemplate
Returns:
the value of the 'Context' reference.
See Also:
Codetemplate.setContext(AbstractRule), TemplatesPackage.getCodetemplate_Context()
EMF generated code

basicGetContext

public AbstractRule basicGetContext()

EMF generated code

setContext

public void setContext(AbstractRule newContext)

Specified by:
setContext in interface Codetemplate
Parameters:
newContext - the new value of the 'Context' reference.
See Also:
Codetemplate.getContext()
EMF generated code

getKeywordContext

public java.lang.String getKeywordContext()

Specified by:
getKeywordContext in interface Codetemplate
Returns:
the value of the 'Keyword Context' attribute.
See Also:
Codetemplate.setKeywordContext(String), TemplatesPackage.getCodetemplate_KeywordContext()
EMF generated code

setKeywordContext

public void setKeywordContext(java.lang.String newKeywordContext)

Specified by:
setKeywordContext in interface Codetemplate
Parameters:
newKeywordContext - the new value of the 'Keyword Context' attribute.
See Also:
Codetemplate.getKeywordContext()
EMF generated code

getBody

public TemplateBody getBody()

Specified by:
getBody in interface Codetemplate
Returns:
the value of the 'Body' containment reference.
See Also:
Codetemplate.setBody(TemplateBody), TemplatesPackage.getCodetemplate_Body()
EMF generated code

basicSetBody

public org.eclipse.emf.common.notify.NotificationChain basicSetBody(TemplateBody newBody,
                                                                    org.eclipse.emf.common.notify.NotificationChain msgs)

EMF generated code

setBody

public void setBody(TemplateBody newBody)

Specified by:
setBody in interface Codetemplate
Parameters:
newBody - the new value of the 'Body' containment reference.
See Also:
Codetemplate.getBody()
EMF generated code

eInverseRemove

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

Overrides:
eInverseRemove in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EMF generated code

eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)

Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eGet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EMF generated code

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EMF generated code

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eUnset in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EMF generated code

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eIsSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EMF generated code

toString

public java.lang.String toString()

Overrides:
toString in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EMF generated code