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

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.ComponentImpl
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, SCAInternalObject, Component, SCAObject
Direct Known Subclasses:
ImplementationComponentImpl, ModuleComponentImpl

public abstract class ComponentImpl
extends SCAInternalObjectImpl
implements Component

An implementation of the model object 'Component'.

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.stp.core.sca.Component
STATE_ABSTRACT, STATE_IMPLEMENTED, STATE_TYPED, TYPE_ABSTRACT
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Method Summary
 org.eclipse.emf.common.notify.NotificationChain basicSetPropertyValuesSet(PropertyValuesSet newPropertyValuesSet, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 org.eclipse.emf.common.notify.NotificationChain basicSetReferenceValuesSet(ReferenceValuesSet newReferenceValuesSet, 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 eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, java.lang.Class baseClass, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 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)
           
 Composite getComposite()
           
 java.lang.String getName()
           
 PropertyValuesSet getPropertyValuesSet()
           
 java.util.List getReferenceValues()
           
 java.util.List getReferenceValues(Reference reference)
           
 java.util.List getReferenceValues(java.lang.String referenceName)
           
 ReferenceValuesSet getReferenceValuesSet()
           
 WireSource getSingleWireSource()
           
 WireTarget getSingleWireTarget()
           
 WireSource getWireSource(Reference reference)
           
 WireSource getWireSource(java.lang.String referenceName)
           
 java.util.Collection getWireSourcesWiredToTarget(WireTarget wireTarget)
          Return a collection of WireSource elements that have a wire to the passed wireTarget.
 WireTarget getWireTarget(Service service)
           
 WireTarget getWireTarget(java.lang.String serviceName)
           
 boolean hasValidAbstractType()
          Invocations of this method may result in the resolution of the ComponentType.
 void setName(java.lang.String newName)
           
 void setPropertyValuesSet(PropertyValuesSet newPropertyValuesSet)
           
 void setReferenceValue(Reference reference, WireTarget target)
          Create a new ReferenceValue that uses the reference as the source and the passed target to configure the target value.
 void setReferenceValuesSet(ReferenceValuesSet newReferenceValuesSet)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.stp.core.internal.sca.SCAInternalObjectImpl
getEObject, getFlags
 
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, 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.stp.core.sca.Component
getImplementation, getState, getType, resolveComponentType, setAbstractImplementation, setSpecializedImplementation
 
Methods inherited from interface org.eclipse.stp.core.sca.SCAObject
addStatus, clearStatus, getEObject, getFlags, getStatus
 
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

getPropertyValuesSet

public PropertyValuesSet getPropertyValuesSet()

Specified by:
getPropertyValuesSet in interface Component
Returns:
the value of the 'Property Values Set' containment reference.
See Also:
Component.setPropertyValuesSet(PropertyValuesSet), SCAPackage.getComponent_PropertyValuesSet()

basicSetPropertyValuesSet

public org.eclipse.emf.common.notify.NotificationChain basicSetPropertyValuesSet(PropertyValuesSet newPropertyValuesSet,
                                                                                 org.eclipse.emf.common.notify.NotificationChain msgs)


setPropertyValuesSet

public void setPropertyValuesSet(PropertyValuesSet newPropertyValuesSet)

Specified by:
setPropertyValuesSet in interface Component
Parameters:
newPropertyValuesSet - the new value of the 'Property Values Set' containment reference.
See Also:
Component.getPropertyValuesSet()

getReferenceValuesSet

public ReferenceValuesSet getReferenceValuesSet()


basicSetReferenceValuesSet

public org.eclipse.emf.common.notify.NotificationChain basicSetReferenceValuesSet(ReferenceValuesSet newReferenceValuesSet,
                                                                                  org.eclipse.emf.common.notify.NotificationChain msgs)


setReferenceValuesSet

public void setReferenceValuesSet(ReferenceValuesSet newReferenceValuesSet)


getName

public java.lang.String getName()

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

setName

public void setName(java.lang.String newName)

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

eInverseAdd

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

Specified by:
eInverseAdd in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eInverseAdd in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

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

getComposite

public Composite getComposite()
Specified by:
getComposite in interface Component
Returns:
the Composite which owns this Component.

setReferenceValue

public void setReferenceValue(Reference reference,
                              WireTarget target)
Description copied from interface: Component
Create a new ReferenceValue that uses the reference as the source and the passed target to configure the target value.

Specified by:
setReferenceValue in interface Component
Parameters:
reference - The reference from this Configurable's type representation.
target - The endpoint that the reference should resolve to
See Also:
ReferenceValue, WireSource.createWireToTarget(WireTarget)

getReferenceValues

public java.util.List getReferenceValues()
Specified by:
getReferenceValues in interface Component
Returns:
The list of ReferenceValue objects for this component.

getReferenceValues

public java.util.List getReferenceValues(java.lang.String referenceName)
Specified by:
getReferenceValues in interface Component
Returns:
An unmodifiable list of ReferenceValue elements for the passed referenceName. The list will contain at most one entry if the multiplicity of the passed reference is one.

getReferenceValues

public java.util.List getReferenceValues(Reference reference)
Specified by:
getReferenceValues in interface Component
Returns:
An unmodifiable list of ReferenceValue elements for the passed reference. The list will contain at most one entry if the multiplicity of the passed reference is one.

getWireTarget

public WireTarget getWireTarget(java.lang.String serviceName)
Specified by:
getWireTarget in interface Component
Parameters:
serviceName - The name of the service on this Configurable's abstract type
Returns:
A WireTarget for the passed serviceName. The serviceName must match the name of a service defined on the ComponentType otherwise null will be returned.

getWireSource

public WireSource getWireSource(java.lang.String referenceName)
Specified by:
getWireSource in interface Component
Returns:
A WireSource for the passed referenceName. The referenceName must match the name of a reference defined on the ComponentType otherwise null will be returned.

getWireSource

public WireSource getWireSource(Reference reference)
Specified by:
getWireSource in interface Component
Returns:
A WireSource for the passed reference. The reference must be a matching reference defined on the ComponentType otherwise null will be returned.

getSingleWireSource

public WireSource getSingleWireSource()
Specified by:
getSingleWireSource in interface Component
Returns:
A WireSource only if there is one reference available on this Component.

getWireSourcesWiredToTarget

public java.util.Collection getWireSourcesWiredToTarget(WireTarget wireTarget)
Description copied from interface: Component
Return a collection of WireSource elements that have a wire to the passed wireTarget.

Specified by:
getWireSourcesWiredToTarget in interface Component
Returns:
Collection

getWireTarget

public WireTarget getWireTarget(Service service)
Specified by:
getWireTarget in interface Component
Parameters:
service - The Service on this Configurable's abstract type
Returns:
A WireTarget for the passed service. The service must be a matching service defined on the ComponentType otherwise null will be returned.

getSingleWireTarget

public WireTarget getSingleWireTarget()
Specified by:
getSingleWireTarget in interface Component
Returns:
A WireTarget only if there is one service available on this Component.

hasValidAbstractType

public boolean hasValidAbstractType()
Invocations of this method may result in the resolution of the ComponentType.

Returns:
True if and only if the Component has a valid abstract type available. An AbstractType is the ComponentType contract or some contract adapted to a ComponentType. Returning true indicates that resolveComponentType() returns a valid value.