org.objectweb.medor.type.lib
Class QTypeTuple

java.lang.Object
  extended byPType
      extended byorg.objectweb.medor.type.lib.QType
          extended byorg.objectweb.medor.type.lib.QTypeTuple

public class QTypeTuple
extends QType

This class defines the extension of PType for Tuples.

See Also:
Serialized Form

Field Summary
protected  PType[] attributeTypes
           
static short TYPECODE_TUPLE
           
 
Fields inherited from class org.objectweb.medor.type.lib.QType
TYPECODE_COLLECTION, TYPECODE_NAMING_CONTEXT, TYPECODE_OBJECT, TYPECODE_PNAME, TYPECODE_TUPLE_COLLECTION
 
Constructor Summary
QTypeTuple(PType[] types, PTypeSpace typespace)
          It constructs the types that represent tuples.
 
Method Summary
 boolean isa(PType pt)
          Checks whether the current QTypeTuple is a subtype of another PType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPECODE_TUPLE

public static final short TYPECODE_TUPLE
See Also:
Constant Field Values

attributeTypes

protected PType[] attributeTypes
Constructor Detail

QTypeTuple

public QTypeTuple(PType[] types,
                  PTypeSpace typespace)
It constructs the types that represent tuples.

Parameters:
types - The array of PTypes for the tuple attributes.
typespace - The type space to which the constructed PType belongs.
Method Detail

isa

public boolean isa(PType pt)
Checks whether the current QTypeTuple is a subtype of another PType. The other PType must be a QTypeTuple.

Overrides:
isa in class QType
Parameters:
pt - The other PType to be compared to.
Returns:
It return true if this PType conforms to the one passed as parameter.