be.SIRAPRISE.client
Class NonScalarTypeDeclaration

java.lang.Object
  extended by be.SIRAPRISE.client.NonScalarTypeDeclaration
All Implemented Interfaces:
TypeDeclaration

public class NonScalarTypeDeclaration
extends java.lang.Object
implements TypeDeclaration

A NonScalarTypeDeclaration is a TypeDeclaration that accompanies the name of an attribute in a Heading if that attribute is relation-typed or tuple-typed.

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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHeading

public Heading getHeading()
Description copied from interface: TypeDeclaration
Gets the Heading (i.e. the relation or tuple type) of a nonscalar type declaration

Specified by:
getHeading in interface TypeDeclaration
Returns:
the Heading (i.e. the relation or tuple type) of a nonscalar type declaration

getTypeName

public java.lang.String getTypeName()
Description copied from interface: TypeDeclaration
Gets the name of the type

Specified by:
getTypeName in interface TypeDeclaration
Returns:
Returns the typeName.

isScalar

public boolean isScalar()
Description copied from interface: TypeDeclaration
Checks whether the declared type is scalar

Specified by:
isScalar in interface TypeDeclaration
Returns:
true if the declared type is scalar