org.eclipse.stp.core.sca.impl
Class ReferenceImpl

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.eclipse.stp.core.sca.impl.SCAObjectImpl
                  extended by org.eclipse.stp.core.internal.sca.SCAInternalObjectImpl
                      extended by org.eclipse.stp.core.sca.impl.ReferenceImpl
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, SCAInternalObject, AbstractReference, Reference, SCAObject
Direct Known Subclasses:
ModuleReferenceImpl

public class ReferenceImpl
extends SCAInternalObjectImpl
implements Reference

An implementation of the model object 'Reference'.

The following features are implemented:


Nested Class Summary
 
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
static java.lang.String copyright
           
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
ELAST_EOBJECT_FLAG
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Method Summary
 org.eclipse.emf.common.notify.NotificationChain basicSetInterface(Interface newInterface, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 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)
           
 void eUnset(org.eclipse.emf.ecore.EStructuralFeature eFeature)
           
 org.eclipse.emf.ecore.util.FeatureMap getAny()
           
 org.eclipse.emf.ecore.util.FeatureMap getAnyAttribute()
           
 int getFlags()
          Return an int for the flags associated with this SOAObject.
 Interface getInterface()
           
 Interface getInterfaceGen()
           
 org.eclipse.emf.ecore.util.FeatureMap getInterfaceGroup()
           
 java.lang.String getMultiplicity()
           
 java.lang.String getName()
           
 boolean isSetMultiplicity()
           
 boolean matches(AbstractService service)
           
 void setInterface(Interface newInterface)
           
 void setInterfaceGen(Interface newInterface)
           
 void setMultiplicity(java.lang.String newMultiplicity)
           
 void setName(java.lang.String newName)
           
 java.lang.String toString()
           
 void unsetMultiplicity()
           
 
Methods inherited from class org.eclipse.stp.core.internal.sca.SCAInternalObjectImpl
getEObject
 
Methods inherited from class org.eclipse.stp.core.sca.impl.SCAObjectImpl
addStatus, clearStatus, getStatus
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eResource
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eNotify
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values
Method Detail

getInterfaceGroup

public org.eclipse.emf.ecore.util.FeatureMap getInterfaceGroup()


getInterface

public Interface getInterface()

Specified by:
getInterface in interface AbstractReference
Specified by:
getInterface in interface Reference
Returns:
Interface

getInterfaceGen

public Interface getInterfaceGen()


basicSetInterface

public org.eclipse.emf.common.notify.NotificationChain basicSetInterface(Interface newInterface,
                                                                         org.eclipse.emf.common.notify.NotificationChain msgs)


setInterface

public void setInterface(Interface newInterface)

Specified by:
setInterface in interface Reference
Parameters:
newInterface - The interface associated with this Reference

setInterfaceGen

public void setInterfaceGen(Interface newInterface)


getAny

public org.eclipse.emf.ecore.util.FeatureMap getAny()

Specified by:
getAny in interface Reference
Returns:
the value of the 'Any' attribute list.
See Also:
SCAPackage.getReference_Any()

getMultiplicity

public java.lang.String getMultiplicity()

Specified by:
getMultiplicity in interface Reference
Returns:
the value of the 'Multiplicity' attribute.
See Also:
Reference.isSetMultiplicity(), Reference.unsetMultiplicity(), Reference.setMultiplicity(String), SCAPackage.getReference_Multiplicity()

setMultiplicity

public void setMultiplicity(java.lang.String newMultiplicity)

Specified by:
setMultiplicity in interface Reference
Parameters:
newMultiplicity - the new value of the 'Multiplicity' attribute.
See Also:
Reference.isSetMultiplicity(), Reference.unsetMultiplicity(), Reference.getMultiplicity()

unsetMultiplicity

public void unsetMultiplicity()

Specified by:
unsetMultiplicity in interface Reference
See Also:
Reference.isSetMultiplicity(), Reference.getMultiplicity(), Reference.setMultiplicity(String)

isSetMultiplicity

public boolean isSetMultiplicity()

Specified by:
isSetMultiplicity in interface Reference
Returns:
whether the value of the 'Multiplicity' attribute is set.
See Also:
Reference.unsetMultiplicity(), Reference.getMultiplicity(), Reference.setMultiplicity(String)

getName

public java.lang.String getName()

Specified by:
getName in interface Reference
Specified by:
getName in interface SCAObject
Overrides:
getName in class SCAInternalObjectImpl
Returns:
The name of this SCAObject
See Also:
Reference.setName(String), SCAPackage.getReference_Name()

setName

public void setName(java.lang.String newName)

Specified by:
setName in interface Reference
Specified by:
setName in interface SCAObject
Overrides:
setName in class SCAInternalObjectImpl
Parameters:
newName - The name of this SCAObject
See Also:
Reference.getName()

getAnyAttribute

public org.eclipse.emf.ecore.util.FeatureMap getAnyAttribute()

Specified by:
getAnyAttribute in interface Reference
Returns:
the value of the 'Any Attribute' attribute list.
See Also:
SCAPackage.getReference_AnyAttribute()

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 org.eclipse.emf.ecore.impl.BasicEObjectImpl

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 org.eclipse.emf.ecore.impl.BasicEObjectImpl

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 org.eclipse.emf.ecore.impl.BasicEObjectImpl

eUnset

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

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

eIsSet

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

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

toString

public java.lang.String toString()

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

getFlags

public int getFlags()
Description copied from interface: SCAObject
Return an int for the flags associated with this SOAObject. Use Flags to test the flags returned as well as constants for the flags.

Specified by:
getFlags in interface SCAObject
Overrides:
getFlags in class SCAInternalObjectImpl
Returns:
int
See Also:
Flags

matches

public boolean matches(AbstractService service)
Specified by:
matches in interface AbstractReference
Parameters:
service - The AbstractService to test for compatibility.
Returns:
boolean True if and only if the Interface of the given service is compatible with this reference.