org.objectweb.fractal.api.type
Interface ComponentType

All Superinterfaces:
Type

public interface ComponentType
extends Type

A component type. A component type is just a collection of component interface types, which describes the interfaces that components of this type must or may have at runtime.


Method Summary
 InterfaceType getFcInterfaceType(String name)
          Returns an interface type of this component type from its name.
 InterfaceType[] getFcInterfaceTypes()
          Returns the types of the interfaces of components of this type.
 
Methods inherited from interface org.objectweb.fractal.api.Type
isFcSubTypeOf
 

Method Detail

getFcInterfaceTypes

public InterfaceType[] getFcInterfaceTypes()
Returns the types of the interfaces of components of this type.

Returns:
the types of the interfaces that components of this type must or may have at runtime.

getFcInterfaceType

public InterfaceType getFcInterfaceType(String name)
                                 throws NoSuchInterfaceException
Returns an interface type of this component type from its name. This method is not strictly necessary, as it can be implemented by using the getFcInterfaceTypes method. But it is convenient and can be implemented more efficiently than with the previous method. This is why it is specified here.

Parameters:
name - the name of one of the interface types returned by getFcInterfaceTypes (see getFcItfName).
Returns:
the interface type of this component type whose name is equal to the given name (see getFcItfName).
Throws:
NoSuchInterfaceException - if there is no such interface type.