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

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.ExternalServiceImpl
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, SCAInternalObject, AbstractService, ExternalService, SCAObject, WireTarget

public class ExternalServiceImpl
extends SCAInternalObjectImpl
implements ExternalService

An implementation of the model object 'External Service'.

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()
           
 org.eclipse.emf.ecore.util.FeatureMap getBindingGroup()
           
 java.util.List getBindings()
           
 java.util.List getBindingsGen()
           
 int getFlags()
          Return an int for the flags associated with this SOAObject.
 Interface getInterface()
           
 org.eclipse.emf.ecore.util.FeatureMap getInterfaceGroup()
           
 java.lang.String getName()
           
 OverrideOptions getOverridable()
           
 java.lang.String getTargetURI()
           
 boolean isComponentOwned()
          Return true if this WireTarget originates from a Component.
 boolean isResolved()
          Return true if this target was resolved to an element in the SCA model.
 boolean isSetOverridable()
           
 boolean matches(AbstractReference reference)
           
 boolean matches(WireSource wireSource)
          NOT IMPLEMENTED.
 void setInterface(Interface newInterface)
           
 void setInterfaceGen(Interface newInterface)
           
 void setName(java.lang.String newName)
           
 void setOverridable(OverrideOptions newOverridable)
           
 java.lang.String toString()
           
 void unsetOverridable()
           
 
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.stp.core.sca.SCAObject
addStatus, clearStatus, getEObject, getStatus
 
Methods inherited from interface org.eclipse.stp.core.sca.SCAObject
addStatus, clearStatus, getEObject, getStatus
 
Methods inherited from interface org.eclipse.stp.core.sca.SCAObject
addStatus, clearStatus, getEObject, 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

getInterface

public Interface getInterface()

Specified by:
getInterface in interface AbstractService
Specified by:
getInterface in interface ExternalService
Specified by:
getInterface in interface WireTarget
Returns:
Interface
See Also:
FeatureAdapter, FeatureAdapter.getFeature(SCAObject)

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 ExternalService
Parameters:
newInterface - The Interface for this ExternalService. Clients are required to set the correct feature before calling this method.
See Also:
FeatureAdapter, FeatureAdapter.setFeature(SCAObject, EStructuralFeature)

setInterfaceGen

public void setInterfaceGen(Interface newInterface)


getBindingGroup

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


getBindings

public java.util.List getBindings()

Specified by:
getBindings in interface ExternalService
Returns:
The list of bindings. Entries in this list should be of type Binding.

getBindingsGen

public java.util.List getBindingsGen()


getInterfaceGroup

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


getAny

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

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

getName

public java.lang.String getName()

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

setName

public void setName(java.lang.String newName)

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

getOverridable

public OverrideOptions getOverridable()

Specified by:
getOverridable in interface ExternalService
Returns:
the value of the 'Overridable' attribute.
See Also:
OverrideOptions, ExternalService.isSetOverridable(), ExternalService.unsetOverridable(), ExternalService.setOverridable(OverrideOptions), SCAPackage.getExternalService_Overridable()

setOverridable

public void setOverridable(OverrideOptions newOverridable)

Specified by:
setOverridable in interface ExternalService
Parameters:
newOverridable - the new value of the 'Overridable' attribute.
See Also:
OverrideOptions, ExternalService.isSetOverridable(), ExternalService.unsetOverridable(), ExternalService.getOverridable()

unsetOverridable

public void unsetOverridable()

Specified by:
unsetOverridable in interface ExternalService
See Also:
ExternalService.isSetOverridable(), ExternalService.getOverridable(), ExternalService.setOverridable(OverrideOptions)

isSetOverridable

public boolean isSetOverridable()

Specified by:
isSetOverridable in interface ExternalService
Returns:
whether the value of the 'Overridable' attribute is set.
See Also:
ExternalService.unsetOverridable(), ExternalService.getOverridable(), ExternalService.setOverridable(OverrideOptions)

getAnyAttribute

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

Specified by:
getAnyAttribute in interface ExternalService
Returns:
the value of the 'Any Attribute' attribute list.
See Also:
SCAPackage.getExternalService_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

getTargetURI

public java.lang.String getTargetURI()

matches

public boolean matches(WireSource wireSource)
Description copied from interface: WireTarget
NOT IMPLEMENTED.

Specified by:
matches in interface WireTarget
Parameters:
wireSource - The wireSource to test for compatibility.
Returns:
True if and only if the Interface of the given wireSource is compatible with this WireTarget.

isResolved

public boolean isResolved()
Description copied from interface: WireTarget
Return true if this target was resolved to an element in the SCA model. If false is returned you can use the SCAObject.getName() method to get the original target URI.

Specified by:
isResolved in interface WireTarget
Returns:
boolean

isComponentOwned

public boolean isComponentOwned()
Description copied from interface: WireTarget
Return true if this WireTarget originates from a Component. If this returns true you may cast down to

Specified by:
isComponentOwned in interface WireTarget
Returns:
boolean

matches

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