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

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.sca.impl.SimplifiedExternalWireTargetImpl
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, SCAObject, WireTarget

public class SimplifiedExternalWireTargetImpl
extends SCAObjectImpl
implements WireTarget

This wire target represents a target that is just a simple URI to an external service such as a web service.

Since:
1.0

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
 
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.ecore.EObject getEObject()
          Return an EObject for this SOAObject.
 int getFlags()
          Return an int for the flags associated with this SOAObject.
 Interface getInterface()
          Return an Interface that is assigned to this target of a wire.
 java.lang.String getName()
           
 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 matches(WireSource wireSource)
          NOT IMPLEMENTED.
 void setName(java.lang.String name)
           
 java.lang.String toString()
           
 
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, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eIsSet, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, 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, getStatus
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eNotify
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Method Detail

getInterface

public Interface getInterface()
Description copied from interface: WireTarget
Return an Interface that is assigned to this target of a wire.

Specified by:
getInterface in interface WireTarget
Returns:
Interface

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.

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
Returns:
int
See Also:
Flags

getEObject

public org.eclipse.emf.ecore.EObject getEObject()
Description copied from interface: SCAObject
Return an EObject for this SOAObject.

Specified by:
getEObject in interface SCAObject
Returns:
EObject

setName

public void setName(java.lang.String name)
Specified by:
setName in interface SCAObject
Parameters:
name - The name of this SCAObject

getName

public java.lang.String getName()
Specified by:
getName in interface SCAObject
Returns:
The name of this SCAObject

toString

public java.lang.String toString()
Overrides:
toString in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

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