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

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

public class ReferenceValueImpl
extends SCAInternalObjectImpl
implements ReferenceValue

An implementation of the model object 'Reference Value'.

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 eBasicRemoveFromContainer(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)
           
 org.eclipse.emf.ecore.util.FeatureMap getAnyAttribute()
           
 java.lang.String getName()
          Return the name of the underlying Reference.
 java.lang.String getNameGen()
           
 Component getOwningComponent()
          Return the Component which owns this ReferenceValue.
 Reference getReference()
          The following method could require the resolution of the ComponentType of the containing Component.
 ReferenceValuesSet getReferenceValueSet()
           
 WireTarget getTarget()
          The WireTarget can be one of either Service or ExternalService.
 java.lang.String getTargetURI()
          Returns the value of the 'Target URI' attribute.
 java.lang.String getTargetURIGen()
           
 void setName(java.lang.String newName)
          Sets the value of the 'Name' attribute.
 void setNameGen(java.lang.String newName)
           
 void setReference(Reference reference)
           
 void setReferenceValueSet(ReferenceValuesSet newReferenceValueSet)
           
 void setTarget(WireTarget wireTarget)
          Set the target URI using the given wireTarget.
 void setTargetURI(java.lang.String newTargetURI)
          Sets the value of the 'Target URI' attribute.
 void setTargetURIGen(java.lang.String newTargetURI)
           
 boolean targets(WireTarget wireTarget)
          Return true if this ReferenceValue targets the passed WireTarget;
 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, 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.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

getTargetURI

public java.lang.String getTargetURI()
Description copied from interface: ReferenceValue
Returns the value of the 'Target URI' attribute.

If the meaning of the 'Target URI' attribute isn't clear, there really should be more of a description here...

Specified by:
getTargetURI in interface ReferenceValue
Returns:
the value of the 'Target URI' attribute.
See Also:
ReferenceValue.setTargetURI(String), SCAPackage.getReferenceValue_TargetURI()

getTargetURIGen

public java.lang.String getTargetURIGen()


setTargetURI

public void setTargetURI(java.lang.String newTargetURI)
Description copied from interface: ReferenceValue
Sets the value of the 'Target URI' attribute.

Specified by:
setTargetURI in interface ReferenceValue
Parameters:
newTargetURI - the new value of the 'Target URI' attribute.
See Also:
ReferenceValue.getTargetURI()

setTargetURIGen

public void setTargetURIGen(java.lang.String newTargetURI)


getName

public java.lang.String getName()
Return the name of the underlying Reference.

Specified by:
getName in interface ReferenceValue
Specified by:
getName in interface SCAObject
Overrides:
getName in class SCAInternalObjectImpl
Returns:
String
See Also:
ReferenceValue.setName(String), SCAPackage.getReferenceValue_Name()

getNameGen

public java.lang.String getNameGen()


setNameGen

public void setNameGen(java.lang.String newName)


setName

public void setName(java.lang.String newName)
Description copied from interface: ReferenceValue
Sets the value of the 'Name' attribute.

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

getAnyAttribute

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

Specified by:
getAnyAttribute in interface ReferenceValue
Returns:
the value of the 'Any Attribute' attribute list.
See Also:
SCAPackage.getReferenceValue_AnyAttribute()

getReferenceValueSet

public ReferenceValuesSet getReferenceValueSet()

Specified by:
getReferenceValueSet in interface ReferenceValue
Returns:
the value of the 'Reference Value Set' container reference.
See Also:
ReferenceValue.setReferenceValueSet(ReferenceValuesSet), SCAPackage.getReferenceValue_ReferenceValueSet(), ReferenceValuesSet.getReferenceValues()

setReferenceValueSet

public void setReferenceValueSet(ReferenceValuesSet newReferenceValueSet)

Specified by:
setReferenceValueSet in interface ReferenceValue
Parameters:
newReferenceValueSet - the new value of the 'Reference Value Set' container reference.
See Also:
ReferenceValue.getReferenceValueSet()

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

eBasicRemoveFromContainer

public org.eclipse.emf.common.notify.NotificationChain eBasicRemoveFromContainer(org.eclipse.emf.common.notify.NotificationChain msgs)

Specified by:
eBasicRemoveFromContainer in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eBasicRemoveFromContainer 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

setTarget

public void setTarget(WireTarget wireTarget)
Description copied from interface: ReferenceValue
Set the target URI using the given wireTarget. The WireTarget will compute the correct target URI.

Specified by:
setTarget in interface ReferenceValue
Parameters:
wireTarget - The new target for this ReferenceValue.

getReference

public Reference getReference()
Description copied from interface: ReferenceValue
The following method could require the resolution of the ComponentType of the containing Component.

Specified by:
getReference in interface ReferenceValue
Returns:
The resolved Reference from the ComponentType

setReference

public void setReference(Reference reference)
Specified by:
setReference in interface ReferenceValue
Parameters:
reference - Set the resolved reference (which implicitly changes the name attribute)

getTarget

public WireTarget getTarget()
Description copied from interface: ReferenceValue
The WireTarget can be one of either Service or ExternalService.

Specified by:
getTarget in interface ReferenceValue
Returns:
The resolved WireTarget for the current targetURI

getOwningComponent

public Component getOwningComponent()
Description copied from interface: ReferenceValue
Return the Component which owns this ReferenceValue.

Specified by:
getOwningComponent in interface ReferenceValue
Returns:
Component

targets

public boolean targets(WireTarget wireTarget)
Description copied from interface: ReferenceValue
Return true if this ReferenceValue targets the passed WireTarget;

Specified by:
targets in interface ReferenceValue
Returns:
boolean