Interface Signature

All Superinterfaces:
org.eclipse.emf.cdo.CDOObject, org.eclipse.emf.cdo.common.id.CDOWithID, Entity, EObject, de.uka.ipd.sdq.identifier.Identifier, NamedElement, Notifier, PCMBaseClass, PCMClass
All Known Subinterfaces:
EventType, InfrastructureSignature, OperationSignature
All Known Implementing Classes:
EventTypeImpl, InfrastructureSignatureImpl, OperationSignatureImpl, SignatureImpl

public interface Signature extends Entity
A representation of the model object 'Signature'.

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:

See Also:
Generated class or method.
EMF model class or method.
abstract="true"
  • Field Details

  • Method Details

    • getExceptions__Signature

      EList<ExceptionType> getExceptions__Signature()
      Returns the value of the 'Exceptions Signature' containment reference list. The list contents are of type ExceptionType. This property represents the list of exceptions declared by this signature.
      Returns:
      the value of the 'Exceptions Signature' containment reference list.
      See Also:
      Generated class or method.
      EMF model class or method.
      containment="true" ordered="false"
    • getFailureType

      EList<FailureType> getFailureType()
      Returns the value of the 'Failure Type' reference list. The list contents are of type FailureType. Optional specification of failure types that can happen on execution of the specified service.
      Returns:
      the value of the 'Failure Type' reference list.
      See Also:
      Generated class or method.
      EMF model class or method.
      ordered="false"