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

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.CompositeImpl
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, SCAInternalObject, Composite, SCAObject
Direct Known Subclasses:
ModuleFragmentImpl, SubsystemImpl

public class CompositeImpl
extends SCAInternalObjectImpl
implements Composite

An implementation of the model object 'Composite'.

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
 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)
           
 java.util.List getAllMatchingSources(WireTarget wireTarget)
           
 java.util.List getAllMatchingTargets(WireSource wireSource)
           
 java.util.Collection getAllWiredSources(WireTarget wireTarget)
          Return a list of all WireSource elements within this Composite which are wired to the passed wireTarget.
 Component getComponent(java.lang.String componentName)
           
 java.util.List getComponents()
          Returns the value of the 'Components' containment reference list.
 java.util.List getComponentsGen()
           
 org.eclipse.emf.ecore.util.FeatureMap getComponentsGroup()
           
 EntryPoint getEntryPoint(java.lang.String name)
          Return an EntryPoint with a matching name.
 java.util.List getEntryPoints()
           
 ExternalService getExternalService(java.lang.String name)
          Return an ExternalService with a matching name.
 java.util.List getExternalServices()
           
 java.lang.String getName()
           
 WireSource resolveWireSource(java.lang.String sourceURI)
          Use this API to resolve soure URIs to a WireSource within the composite.
 WireTarget resolveWireTarget(java.lang.String targetURI)
          Use this API to resolve target URIs to a WireTarget within the composite.
 void setName(java.lang.String newName)
           
 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, 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.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

getEntryPoints

public java.util.List getEntryPoints()

Specified by:
getEntryPoints in interface Composite
Returns:
the value of the 'Entry Points' containment reference list.
See Also:
SCAPackage.getComposite_EntryPoints()

getComponentsGroup

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


getExternalServices

public java.util.List getExternalServices()

Specified by:
getExternalServices in interface Composite
Returns:
the value of the 'External Services' containment reference list.
See Also:
SCAPackage.getComposite_ExternalServices()

getComponentsGen

public java.util.List getComponentsGen()


getName

public java.lang.String getName()

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

setName

public void setName(java.lang.String newName)

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

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

getComponent

public Component getComponent(java.lang.String componentName)
Specified by:
getComponent in interface Composite
Parameters:
componentName - The name of configurable to search for
Returns:
The specific Component of the given name, if available or null otherwise.

getAllMatchingTargets

public java.util.List getAllMatchingTargets(WireSource wireSource)
Specified by:
getAllMatchingTargets in interface Composite
Parameters:
wireSource - A non-null WireSource (generally one of 'EntryPoint' or 'ReferenceValue'
Returns:
The current set of possible targets for the given wireSource

getAllMatchingSources

public java.util.List getAllMatchingSources(WireTarget wireTarget)
Specified by:
getAllMatchingSources in interface Composite
Parameters:
wireTarget - a non-null WireTarget (generally one of 'ExternalService' or 'Service')
Returns:
The current set of possible sources for the given wireTarget

getExternalService

public ExternalService getExternalService(java.lang.String name)
Description copied from interface: Composite
Return an ExternalService with a matching name.

Specified by:
getExternalService in interface Composite
Returns:
ExternalService

resolveWireTarget

public WireTarget resolveWireTarget(java.lang.String targetURI)
Description copied from interface: Composite
Use this API to resolve target URIs to a WireTarget within the composite. The targetURI in the form "[Component name]/[opt service name]" when pointing to a service on a Component. The service name is optional if there is only one service on the Component. It is an error condition if the service name is not provided and there is more than one service on the component. In this situation the targetInterface is optional. The targetURI for an ExternalService will be in the form "[ExternalService name]". No service name is required for an ExternalService since it is by definition a single service. In this situation the targetInterface is optional.

Specified by:
resolveWireTarget in interface Composite
Returns:
WireTarget

resolveWireSource

public WireSource resolveWireSource(java.lang.String sourceURI)
Description copied from interface: Composite
Use this API to resolve soure URIs to a WireSource within the composite. The sourceURI in the form "[Component name]/[reference name]" when pointing to a reference on a Component. The sourceURI for an EntryPoint will be in the form "[EntryPoint name]".

Specified by:
resolveWireSource in interface Composite
Returns:
WireSource

getEntryPoint

public EntryPoint getEntryPoint(java.lang.String name)
Description copied from interface: Composite
Return an EntryPoint with a matching name.

Specified by:
getEntryPoint in interface Composite
Returns:
EntryPoint

getAllWiredSources

public java.util.Collection getAllWiredSources(WireTarget wireTarget)
Description copied from interface: Composite
Return a list of all WireSource elements within this Composite which are wired to the passed wireTarget.

Specified by:
getAllWiredSources in interface Composite
Returns:
Collection
See Also:
WireSource

getComponents

public java.util.List getComponents()
Description copied from interface: Composite
Returns the value of the 'Components' containment reference list. The list contents are of type Component.

If the meaning of the 'Components' containment reference list isn't clear, there really should be more of a description here...

Specified by:
getComponents in interface Composite
Returns:
the value of the 'Components' containment reference list.
See Also:
SCAPackage.getComposite_Components()