be.SIRAPRISE.client
Interface TypeDeclaration

All Known Implementing Classes:
NonScalarTypeDeclaration

public interface TypeDeclaration

A TypeDeclaration corresponds to an attributeName in a Heading, and defines the type that the named attribute is of

Author:
Erwin Smout

Method Summary
 Heading getHeading()
          Gets the Heading (i.e. the relation or tuple type) of a nonscalar type declaration
 java.lang.String getTypeName()
          Gets the name of the type
 boolean isScalar()
          Checks whether the declared type is scalar
 

Method Detail

getTypeName

java.lang.String getTypeName()
Gets the name of the type

Returns:
Returns the typeName.

isScalar

boolean isScalar()
Checks whether the declared type is scalar

Returns:
true if the declared type is scalar

getHeading

Heading getHeading()
                   throws TypeIsScalarException
Gets the Heading (i.e. the relation or tuple type) of a nonscalar type declaration

Returns:
the Heading (i.e. the relation or tuple type) of a nonscalar type declaration
Throws:
TypeIsScalarException - if the type is scalar