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

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.EntryPointImpl
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, SCAInternalObject, AbstractReference, EntryPoint, SCAObject, WireSource

public class EntryPointImpl
extends SCAInternalObjectImpl
implements EntryPoint

An implementation of the model object 'Entry Point'.

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)
           
 void createWireToTarget(WireTarget wireTarget)
          This method is used as a convenience to create a wire to the WireTarget that is passed.
 boolean deleteWireToTarget(WireTarget wireTarget)
          This method is used as a convenience to delete a wire to the WireTarget that is passed.
 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 getMultiplicity()
           
 java.lang.String getName()
           
 java.util.List getReferenceTargets()
          Returns the value of the 'Reference Targets' attribute list.
 java.util.List getReferenceTargetsGen()
           
 java.util.List getWiredTargets()
          This is a convenience method to return an unmodifiable list of WireTarget elements which are actually wired to this WireSource.
 boolean hasWireToTarget(WireTarget wireTarget)
          Return true if this EntryPoint has a wire to the passed wireTarget.
 boolean isComponentOwned()
          Return true if this WireSource originates from a Component.
 boolean isResolved()
          Return true if this source was resolved to an element in the SCA model.
 boolean isSetMultiplicity()
           
 boolean matches(AbstractService service)
           
 boolean matches(WireTarget wireTarget)
          NOT IMPLEMENTED.
 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.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

getInterfaceGroup

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


getInterface

public Interface getInterface()

Specified by:
getInterface in interface AbstractReference
Specified by:
getInterface in interface EntryPoint
Specified by:
getInterface in interface WireSource
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 EntryPoint
Parameters:
newInterface - The Interface for this EntryPoint. 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 EntryPoint
Returns:
The list of bindings. Entries in this list should be of type Binding.

getBindingsGen

public java.util.List getBindingsGen()


getReferenceTargets

public java.util.List getReferenceTargets()
Description copied from interface: EntryPoint
Returns the value of the 'Reference Targets' attribute list. The list contents are of type String.

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

Specified by:
getReferenceTargets in interface EntryPoint
Returns:
the value of the 'Reference Targets' attribute list.
See Also:
SCAPackage.getEntryPoint_ReferenceTargets()

getReferenceTargetsGen

public java.util.List getReferenceTargetsGen()


getAny

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

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

getMultiplicity

public java.lang.String getMultiplicity()

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

setMultiplicity

public void setMultiplicity(java.lang.String newMultiplicity)

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

unsetMultiplicity

public void unsetMultiplicity()

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

isSetMultiplicity

public boolean isSetMultiplicity()

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

getName

public java.lang.String getName()

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

setName

public void setName(java.lang.String newName)

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

getAnyAttribute

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

Specified by:
getAnyAttribute in interface EntryPoint
Returns:
the value of the 'Any Attribute' attribute list.
See Also:
SCAPackage.getEntryPoint_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(WireTarget wireTarget)
Description copied from interface: WireSource
NOT IMPLEMENTED.

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

createWireToTarget

public void createWireToTarget(WireTarget wireTarget)
Description copied from interface: WireSource
This method is used as a convenience to create a wire to the WireTarget that is passed. This method will not perform any validation to ensure that the wire is valid.

Specified by:
createWireToTarget in interface WireSource

getWiredTargets

public java.util.List getWiredTargets()
Description copied from interface: WireSource
This is a convenience method to return an unmodifiable list of WireTarget elements which are actually wired to this WireSource.

Specified by:
getWiredTargets in interface WireSource
Returns:
List of WireTarget

isResolved

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

Specified by:
isResolved in interface WireSource
Returns:
boolean

deleteWireToTarget

public boolean deleteWireToTarget(WireTarget wireTarget)
Description copied from interface: WireSource
This method is used as a convenience to delete a wire to the WireTarget that is passed. This method will not perform any validation to ensure that the wire is valid.

Specified by:
deleteWireToTarget in interface WireSource
Parameters:
wireTarget - The wire target to delete from this wire source's inlined wires.
Returns:
True if the wire was deleted and false otherwise.

isComponentOwned

public boolean isComponentOwned()
Description copied from interface: WireSource
Return true if this WireSource originates from a Component.

Specified by:
isComponentOwned in interface WireSource
Returns:
boolean

hasWireToTarget

public boolean hasWireToTarget(WireTarget wireTarget)
Description copied from interface: EntryPoint
Return true if this EntryPoint has a wire to the passed wireTarget.

Specified by:
hasWireToTarget in interface EntryPoint
Returns:
boolean

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.