Package rasj

Class RasBaseType

java.lang.Object
rasj.RasType
rasj.RasBaseType
Direct Known Subclasses:
RasPrimitiveType, RasStructureType

public class RasBaseType extends RasType

 PURPOSE:
 This class represents the Base types and is the superclass of
 the types RasStructureType and RasPrimitiveType in the
 representation of the RasDaMan type system.
 

Note: if a new base type is created using this class, it is only known on client-side but not stored within the database.

  • Field Details

    • typeSize

      protected long typeSize
      Stores the size of type in bytes
  • Constructor Details

    • RasBaseType

      public RasBaseType()
      Default constructor.
    • RasBaseType

      public RasBaseType(String newTypeName, long newSize)
      Constructor getting name of basetype.
      Parameters:
      newTypeName - name of the new base type
      newSize - size of the new base type
  • Method Details

    • getTypeID

      public int getTypeID()
      Retrieves the id of the type.
      Overrides:
      getTypeID in class RasType
      Returns:
      the id of the type
    • isBaseType

      public boolean isBaseType()
      Checks if the current type is a base type (primitive type or structure type).
      Overrides:
      isBaseType in class RasType
      Returns:
      true if it is a base type, false otherwise.
    • getSize

      public long getSize()
      Retrieves the size of the type.
      Returns:
      the size of the base type.
    • toString

      public String toString()
      Returns a string representation of this object.
      Overrides:
      toString in class RasType
      Returns:
      a string description of this object.