ikrs.typesystem
Interface BasicType

All Known Implementing Classes:
BasicArrayType, BasicBooleanType, BasicCharType, BasicNumberType, BasicStringType, BasicTypeAdapter, BasicUUIDType

public interface BasicType


Field Summary
static int TYPE_ARRAY
           
static int TYPE_BOOLEAN
           
static int TYPE_BYTE
           
static int TYPE_CHAR
           
static int TYPE_DOUBLE
           
static int TYPE_FLOAT
           
static int TYPE_INT
           
static int TYPE_LONG
           
static int TYPE_SHORT
           
static int TYPE_STRING
           
static int TYPE_UUID
           
 
Method Summary
 boolean equals(BasicArrayType a)
           
 boolean equals(BasicType t)
           
 boolean equals(boolean b)
           
 boolean equals(byte b)
           
 boolean equals(char c)
           
 boolean equals(double d)
           
 boolean equals(float f)
           
 boolean equals(int i)
           
 boolean equals(long l)
           
 boolean equals(short s)
           
 boolean equals(java.lang.String s)
           
 boolean equals(java.util.UUID id)
           
 BasicArrayType getArray()
          The method is more or less for implicit type casting.
 BasicArrayType getArray(BasicArrayType defaultValue)
          The method is more or less for implicit type casting.
 BasicType getArrayElementAt(int index)
           
 int getArraySize()
           
 boolean getBoolean()
           
 boolean getBoolean(boolean defaultValue)
           
 byte getByte()
           
 byte getByte(byte defaultValue)
           
 char getChar()
           
 char getChar(char defaultValue)
           
 double getDouble()
           
 double getDouble(double defaultValue)
           
 float getFloat()
           
 float getFloat(float defaultValue)
           
 int getInt()
           
 int getInt(int defaultValue)
           
 long getLong()
           
 long getLong(long defaultValue)
           
 short getShort()
           
 short getShort(short defaultValue)
           
 java.lang.String getString()
           
 java.lang.String getString(java.lang.String defaultValue)
           
 int getType()
           
 java.util.UUID getUUID()
           
 java.util.UUID getUUID(java.util.UUID defaultValue)
           
 

Field Detail

TYPE_BOOLEAN

static final int TYPE_BOOLEAN
See Also:
Constant Field Values

TYPE_BYTE

static final int TYPE_BYTE
See Also:
Constant Field Values

TYPE_SHORT

static final int TYPE_SHORT
See Also:
Constant Field Values

TYPE_INT

static final int TYPE_INT
See Also:
Constant Field Values

TYPE_LONG

static final int TYPE_LONG
See Also:
Constant Field Values

TYPE_FLOAT

static final int TYPE_FLOAT
See Also:
Constant Field Values

TYPE_DOUBLE

static final int TYPE_DOUBLE
See Also:
Constant Field Values

TYPE_CHAR

static final int TYPE_CHAR
See Also:
Constant Field Values

TYPE_STRING

static final int TYPE_STRING
See Also:
Constant Field Values

TYPE_UUID

static final int TYPE_UUID
See Also:
Constant Field Values

TYPE_ARRAY

static final int TYPE_ARRAY
See Also:
Constant Field Values
Method Detail

getType

int getType()

getBoolean

boolean getBoolean()
                   throws BasicTypeException
Throws:
BasicTypeException

getBoolean

boolean getBoolean(boolean defaultValue)

getByte

byte getByte()
             throws BasicTypeException
Throws:
BasicTypeException

getByte

byte getByte(byte defaultValue)

getShort

short getShort()
               throws BasicTypeException
Throws:
BasicTypeException

getShort

short getShort(short defaultValue)

getInt

int getInt()
           throws BasicTypeException
Throws:
BasicTypeException

getInt

int getInt(int defaultValue)

getLong

long getLong()
             throws BasicTypeException
Throws:
BasicTypeException

getLong

long getLong(long defaultValue)

getFloat

float getFloat()
               throws BasicTypeException
Throws:
BasicTypeException

getFloat

float getFloat(float defaultValue)

getDouble

double getDouble()
                 throws BasicTypeException
Throws:
BasicTypeException

getDouble

double getDouble(double defaultValue)

getChar

char getChar()
             throws BasicTypeException
Throws:
BasicTypeException

getChar

char getChar(char defaultValue)

getString

java.lang.String getString()
                           throws BasicTypeException
Throws:
BasicTypeException

getString

java.lang.String getString(java.lang.String defaultValue)

getUUID

java.util.UUID getUUID()
                       throws BasicTypeException
Throws:
BasicTypeException

getUUID

java.util.UUID getUUID(java.util.UUID defaultValue)

getArray

BasicArrayType getArray()
                        throws BasicTypeException
The method is more or less for implicit type casting. It must return this object itself with the dynamic type 'BasicArrayType'. If this object is NOT a BasicArrayType, it MUST throw a BasicTypeException.

Throws:
BasicTypeException

getArray

BasicArrayType getArray(BasicArrayType defaultValue)
The method is more or less for implicit type casting. It must return this object itself with the dynamic type 'BasicArrayType'. If this object is NOT a BasicArrayType, it MUST return the passed defaultValue.


getArraySize

int getArraySize()
                 throws BasicTypeException
Throws:
BasicTypeException

getArrayElementAt

BasicType getArrayElementAt(int index)
                            throws BasicTypeException,
                                   java.lang.ArrayIndexOutOfBoundsException
Throws:
BasicTypeException
java.lang.ArrayIndexOutOfBoundsException

equals

boolean equals(BasicType t)

equals

boolean equals(boolean b)

equals

boolean equals(byte b)

equals

boolean equals(short s)

equals

boolean equals(int i)

equals

boolean equals(long l)

equals

boolean equals(float f)

equals

boolean equals(double d)

equals

boolean equals(char c)

equals

boolean equals(java.lang.String s)

equals

boolean equals(java.util.UUID id)

equals

boolean equals(BasicArrayType a)