Package rasj

Class RasType

java.lang.Object
rasj.RasType
Direct Known Subclasses:
RasBaseType, RasCollectionType, RasMArrayType, RasMIntervalType, RasOIDType, RasPointType, RasSIntervalType

public class RasType extends Object

 PURPOSE:
 This class the superclass for all types in the ODMG conformant
 representation of the RasDaMan type system.
  • Field Details

    • typeName

      protected String typeName
    • typeID

      protected int typeID
  • Constructor Details

    • RasType

      public RasType()
      Default constructor.
    • RasType

      public RasType(String newTypeName)
      Constructor getting the name of the new type.
      Parameters:
      newTypeName - the name of the new type
  • Method Details

    • getTypeID

      public int getTypeID()
      Retrieves the id of this type.
      Returns:
      the type id
    • getName

      public String getName()
      Retrieves the name of this type.
      Returns:
      the type name
    • isStructType

      public boolean isStructType()
      Checks if this type is a primitive or structured type.
      Returns:
      true if this is a structured type, otherwise false
    • isBaseType

      public boolean isBaseType()
      Checks if this type is a base type (primitive type or structure type).
      Returns:
      true for a primitive or structured type, otherwise false
    • getAnyType

      public static RasType getAnyType(String typeString)
      Builds the type schema from a string representation.
      Parameters:
      typeString - the string representation of the type
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      the string represntation of this type