ikrs.typesystem
Class BasicStringType
java.lang.Object
ikrs.typesystem.BasicTypeAdapter
ikrs.typesystem.BasicStringType
- All Implemented Interfaces:
- BasicType
public class BasicStringType
- extends BasicTypeAdapter
- implements BasicType
Fields inherited from interface ikrs.typesystem.BasicType |
TYPE_ARRAY, TYPE_BOOLEAN, TYPE_BYTE, TYPE_CHAR, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INT, TYPE_LONG, TYPE_SHORT, TYPE_STRING, TYPE_UUID |
Methods inherited from class ikrs.typesystem.BasicTypeAdapter |
equals, equals, equals, equals, equals, equals, equals, equals, equals, equals, equals, equals, getArray, getArray, getArrayElementAt, getArraySize, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getShort, getString, getType, getUUID |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ikrs.typesystem.BasicType |
equals, equals, equals, equals, equals, equals, equals, equals, equals, equals, equals, equals, getArray, getArray, getArrayElementAt, getArraySize, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getShort, getString, getType, getUUID |
BasicStringType
public BasicStringType(java.lang.String str)
getBoolean
public boolean getBoolean()
throws BasicTypeException
- Specified by:
getBoolean
in interface BasicType
- Overrides:
getBoolean
in class BasicTypeAdapter
- Throws:
BasicTypeException
getByte
public byte getByte()
throws BasicTypeException
- Specified by:
getByte
in interface BasicType
- Overrides:
getByte
in class BasicTypeAdapter
- Throws:
BasicTypeException
getShort
public short getShort()
throws BasicTypeException
- Specified by:
getShort
in interface BasicType
- Overrides:
getShort
in class BasicTypeAdapter
- Throws:
BasicTypeException
getInt
public int getInt()
throws BasicTypeException
- Specified by:
getInt
in interface BasicType
- Overrides:
getInt
in class BasicTypeAdapter
- Throws:
BasicTypeException
getLong
public long getLong()
throws BasicTypeException
- Specified by:
getLong
in interface BasicType
- Overrides:
getLong
in class BasicTypeAdapter
- Throws:
BasicTypeException
getFloat
public float getFloat()
throws BasicTypeException
- Specified by:
getFloat
in interface BasicType
- Overrides:
getFloat
in class BasicTypeAdapter
- Throws:
BasicTypeException
getDouble
public double getDouble()
throws BasicTypeException
- Specified by:
getDouble
in interface BasicType
- Overrides:
getDouble
in class BasicTypeAdapter
- Throws:
BasicTypeException
getChar
public char getChar()
throws BasicTypeException
- Specified by:
getChar
in interface BasicType
- Overrides:
getChar
in class BasicTypeAdapter
- Throws:
BasicTypeException
getString
public java.lang.String getString()
throws BasicTypeException
- Specified by:
getString
in interface BasicType
- Overrides:
getString
in class BasicTypeAdapter
- Throws:
BasicTypeException
getUUID
public java.util.UUID getUUID()
throws BasicTypeException
- Specified by:
getUUID
in interface BasicType
- Overrides:
getUUID
in class BasicTypeAdapter
- Throws:
BasicTypeException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
buildArray
public static BasicStringType[] buildArray(java.lang.String[] params)
- This static method can be used to convert an array of strings into
an array of BasicStringType.
buildArray
public static BasicStringType[] buildArray(java.lang.String[] params,
int start,
int end)
- This static method can be used to convert an array of strings into
an array of BasicStringType.
Additionally it accepts some bounds for the array:
- Parameters:
start
- The left bounds (inclusive).end
- The right bound (exclusive).