Package rasj
Class RasType
- java.lang.Object
-
- rasj.RasType
-
- Direct Known Subclasses:
RasBaseType,RasCollectionType,RasMArrayType,RasMIntervalType,RasOIDType,RasPointType,RasSIntervalType
public class RasType extends java.lang.ObjectPURPOSE: This class the superclass for all types in the ODMG conformant representation of the RasDaMan type system.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RasTypegetAnyType(java.lang.String typeString)Builds the type schema from a string representation.java.lang.StringgetName()Retrieves the name of this type.intgetTypeID()Retrieves the id of this type.booleanisBaseType()Checks if this type is a base type (primitive type or structure type).booleanisStructType()Checks if this type is a primitive or structured type.java.lang.StringtoString()
-
-
-
Method Detail
-
getTypeID
public int getTypeID()
Retrieves the id of this type.- Returns:
- the type id
-
getName
public java.lang.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(java.lang.String typeString)
Builds the type schema from a string representation.- Parameters:
typeString- the string representation of the type
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- Returns:
- the string represntation of this type
-
-