org.objectweb.fractal.julia.type
Class BasicComponentType

java.lang.Object
  extended by org.objectweb.fractal.julia.type.BasicComponentType
All Implemented Interfaces:
Serializable, Type, ComponentType

public class BasicComponentType
extends Object
implements ComponentType, Serializable

Provides a basic implementation of the ComponentType interface.

See Also:
Serialized Form

Constructor Summary
BasicComponentType(InterfaceType[] itfTypes)
          Constructs a BasicComponentType object.
 
Method Summary
 InterfaceType getFcInterfaceType(String name)
           
 InterfaceType[] getFcInterfaceTypes()
           
 boolean isFcSubTypeOf(Type type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicComponentType

public BasicComponentType(InterfaceType[] itfTypes)
                   throws InstantiationException
Constructs a BasicComponentType object.

Parameters:
itfTypes - the types of the interfaces of components of this type.
Throws:
InstantiationException - if two interface types have the same name, or if the name of an interface type is a prefix of the name of a collection interface type.
Method Detail

getFcInterfaceTypes

public InterfaceType[] getFcInterfaceTypes()
Specified by:
getFcInterfaceTypes in interface ComponentType

getFcInterfaceType

public InterfaceType getFcInterfaceType(String name)
                                 throws NoSuchInterfaceException
Specified by:
getFcInterfaceType in interface ComponentType
Throws:
NoSuchInterfaceException

isFcSubTypeOf

public boolean isFcSubTypeOf(Type type)
Specified by:
isFcSubTypeOf in interface Type