org.objectweb.medor.type.lib

Class QTypeTuple


public class QTypeTuple
extends QType

This class defines the extension of PType for Tuples.

Field Summary

static short
TYPECODE_TUPLE
protected PType[]
attributeTypes

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 org.objectweb.medor.type.lib.QType

isa

Field Details

TYPECODE_TUPLE

public static final short TYPECODE_TUPLE

Field Value:
101


attributeTypes

protected PType[] attributeTypes

Constructor Details

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 Details

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 interface QType

Parameters:
pt - The other PType to be compared to.

Returns:
It return true if this PType conforms to the one passed as parameter.