tamago.ext.tamagocc
Interface TamagoCCType


public interface TamagoCCType

Author:
Hakim Belhaouari and Frederic Peschanski

Field Summary
static int TYPE_ASSEMBLY
           
static int TYPE_COMPONENT
           
static int TYPE_COMPOSITE
           
static int TYPE_SERVICE
           
 
Method Summary
 TamagoCCPercolator[] getAvailablePercolator()
           
 java.util.Iterator<?> getExtends()
           
 java.lang.Class<?> getImplementation()
          get the implementation of the service Note: this is not the implementation of a provider for the service.
 java.lang.String getModule()
           
 java.lang.String getName()
          get the name of the service (a service name is unique)
 int getTamagoCCType()
           
 boolean isSameType(TamagoCCType type2)
          tell if the service is identical to the argument
 boolean isStrictSubType(TamagoCCType supertype)
          tell if the service is a strict subtype of the argument
 boolean isStrictSuperType(TamagoCCType subtype)
          tell if the service is a strict supertype of the argument
 boolean isSubType(TamagoCCType supertype)
          tell if the service is a subtype of the argument
 boolean isSuperType(TamagoCCType subtype)
          tell if the service is a supertype of the argument
 

Field Detail

TYPE_SERVICE

static final int TYPE_SERVICE
See Also:
Constant Field Values

TYPE_COMPONENT

static final int TYPE_COMPONENT
See Also:
Constant Field Values

TYPE_COMPOSITE

static final int TYPE_COMPOSITE
See Also:
Constant Field Values

TYPE_ASSEMBLY

static final int TYPE_ASSEMBLY
See Also:
Constant Field Values
Method Detail

getName

java.lang.String getName()
get the name of the service (a service name is unique)

Returns:
the name of the service

getModule

java.lang.String getModule()

getImplementation

java.lang.Class<?> getImplementation()
get the implementation of the service Note: this is not the implementation of a provider for the service.

Returns:
the class implementing the service description

isSuperType

boolean isSuperType(TamagoCCType subtype)
tell if the service is a supertype of the argument

Parameters:
subtype - the subtype candidate
Returns:
true if the service type is a supertype of the candidate, or false in the other case.

isStrictSuperType

boolean isStrictSuperType(TamagoCCType subtype)
tell if the service is a strict supertype of the argument

Parameters:
subtype - the subtype candidate
Returns:
true if the service type is a strict supertype of the candidate, or false in the other case.

isSubType

boolean isSubType(TamagoCCType supertype)
tell if the service is a subtype of the argument

Parameters:
supertype - the supertype candidate
Returns:
true if the service type is a subtype of the candidate, or false in the other case.

isStrictSubType

boolean isStrictSubType(TamagoCCType supertype)
tell if the service is a strict subtype of the argument

Parameters:
supertype - the supertype candidate
Returns:
true if the service type is a strict subtype of the candidate, or false in the other case.

isSameType

boolean isSameType(TamagoCCType type2)
tell if the service is identical to the argument

Parameters:
type2 - the identical type candidate
Returns:
true if the service type is identical to the candidate, or false if both types are different.

getExtends

java.util.Iterator<?> getExtends()

getTamagoCCType

int getTamagoCCType()

getAvailablePercolator

TamagoCCPercolator[] getAvailablePercolator()