Package rasj
Class RasType
java.lang.Object
rasj.RasType
- Direct Known Subclasses:
RasBaseType,RasCollectionType,RasMArrayType,RasMIntervalType,RasOIDType,RasPointType,RasSIntervalType
PURPOSE: This class the superclass for all types in the ODMG conformant representation of the RasDaMan type system.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RasTypegetAnyType(String typeString) Builds the type schema from a string representation.getName()Retrieves the name of this type.intRetrieves the id of this type.booleanChecks if this type is a base type (primitive type or structure type).booleanChecks if this type is a primitive or structured type.toString()
-
Field Details
-
typeName
-
typeID
protected int typeID
-
-
Constructor Details
-
RasType
public RasType()Default constructor. -
RasType
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
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
Builds the type schema from a string representation.- Parameters:
typeString- the string representation of the type
-
toString
-