public interface Signature extends Entity
This entity represents the signature of a method, i.e., its parameters, exception declarations, return type, etc.
Every service of an interface has a unique signature, like void doSomething(int a). A PCM signature is comparable to a method signature in programming languages like C#, Java or the OMG IDL.
It contains:
* A type of the return value or void (no return value),
* an identifier naming the service,
* an ordered set of parameters (0..*).Each parameter is a tuple of a datatype and an identifier (which is unique across the parameters). Additionally, the modifiers in, out, and inout (with its OMG
IDL semantics) can be used for parameters, and
* an unordered set of exceptions.
A signature has to be unique for an interface through the tupel (identifier, order of parameters). An interface has a list of 1..* signatures (interfaces associate 1..* signatures, not the other way around). A
signature is assigned to exactly one interface. However, different interfaces can define equally named signatures. If, for example, void doIt() is defined for interface A and B, void doIt() is not identical in both interfaces.
Failure that may occur inside external services must be specified at the service signatures. This way components that use this services may implement failure handling without knowing the internal behaviour of the connected component.
The following features are supported:
RepositoryPackage.getSignature()| Modifier and Type | Method and Description |
|---|---|
EList<ExceptionType> |
getExceptions__Signature()
Returns the value of the 'Exceptions Signature' containment reference list.
|
EList<FailureType> |
getFailureType()
Returns the value of the 'Failure Type' reference list.
|
getEntityName, setEntityNamecdoConflict, cdoDirectResource, cdoHistory, cdoID, cdoInvalid, cdoLockState, cdoPermission, cdoPrefetch, cdoReadLock, cdoReload, cdoResource, cdoRevision, cdoRevision, cdoState, cdoView, cdoWriteLock, cdoWriteOptioneAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnseteAdapters, eDeliver, eNotify, eSetDeliverstatic final String copyright
EList<ExceptionType> getExceptions__Signature()
ExceptionType.
This property
represents the list of exceptions declared by this signature. RepositoryPackage.getSignature_Exceptions__Signature()EList<FailureType> getFailureType()
FailureType.
Optional specification of failure types that can happen&
nbsp;on execution of the specified service. RepositoryPackage.getSignature_FailureType()