Package rasj
Class RasBaseType
java.lang.Object
rasj.RasType
rasj.RasBaseType
- Direct Known Subclasses:
RasPrimitiveType,RasStructureType
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 -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.RasBaseType(String newTypeName, long newSize) Constructor getting name of basetype. -
Method Summary
Methods inherited from class rasj.RasType
getAnyType, getName, isStructType
-
Field Details
-
typeSize
protected long typeSizeStores the size of type in bytes
-
-
Constructor Details
-
RasBaseType
public RasBaseType()Default constructor. -
RasBaseType
Constructor getting name of basetype.- Parameters:
newTypeName- name of the new base typenewSize- size of the new base type
-
-
Method Details
-
getTypeID
public int getTypeID()Retrieves the id of the type. -
isBaseType
public boolean isBaseType()Checks if the current type is a base type (primitive type or structure type).- Overrides:
isBaseTypein classRasType- 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
Returns a string representation of this object.
-