Package rasj

Class 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 Summary

      Fields 
      Modifier and Type Field Description
      protected long typeSize
      Stores the size of type in bytes
    • Constructor Summary

      Constructors 
      Constructor Description
      RasBaseType()
      Default constructor.
      RasBaseType​(java.lang.String newTypeName, long newSize)
      Constructor getting name of basetype.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getSize()
      Retrieves the size of the type.
      int getTypeID()
      Retrieves the id of the type.
      boolean isBaseType()
      Checks if the current type is a base type (primitive type or structure type).
      java.lang.String toString()
      Returns a string representation of this object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • typeSize

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

      • RasBaseType

        public RasBaseType()
        Default constructor.
      • RasBaseType

        public RasBaseType​(java.lang.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 Detail

      • 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 java.lang.String toString()
        Returns a string representation of this object.
        Overrides:
        toString in class RasType
        Returns:
        a string description of this object.