|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--superwaba.ext.ce.io.builtin.IObject
superclass of all the classes that represent data structures on the PocketPC device
| Constructor Summary | |
protected |
IObject(int capacity,
StringExt nativeString)
creates a new IObject |
| Method Summary | |
abstract void |
delete()
deletes this IObject on the PPC device this method has to be implemented according to the native library call that matches his datatype |
abstract java.lang.String |
field(int position)
this method must return the field name (from the corresponding i*Field Vectors of class Constant) of the given position |
abstract int |
fields()
this method must return the size of the corresponding i*Field Vector of the class Constant |
protected IDate |
getIDate(java.lang.String fieldName)
returns the value of a given field name as a String, ClassCast Exceptions are catched |
IRecipients |
getIRecipients(java.lang.String fieldName)
returns the value of a given field name as a String, ClassCast Exceptions are catched |
IRecurrencePattern |
getIRecurrencePattern(java.lang.String fieldName)
returns the value of a given field name as a String, ClassCast Exceptions are catched |
protected java.lang.String |
getString(java.lang.String fieldName)
returns the value of a given field name as a String, ClassCast Exceptions are catched |
java.lang.String |
getValue(java.lang.String fieldName)
returns the value which is stored under field name from the internal Hashtable fields as a String, no matter which datatype the value has. |
protected void |
parseNativeString(StringExt nativeString)
this method reads out the nativeString until it reaches the next dataset Separator (defined in Constant); please note that the part that has been read out is deleted from the nativeString (thus, by calling this method the nativeString gets shorter and shorter every time) |
abstract void |
refresh()
refreshes the data fields of the IObject from the PPC device this method has to be implemented according to the native library call that matches his datatype |
void |
reset()
resets all the fields of the IObject except for the id |
abstract void |
save()
saves the data fields of the IObject to the PPC device this method has to be implemented according to the native library call that matches his datatype |
void |
setValue(java.lang.String key,
java.lang.String value)
sets a field with name key to the value value; Objects according to their given data type # (within the key) will be created when necessary |
java.lang.String |
toString()
provides a simple String representation of this IObject mainly for debugging purposes |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
protected IObject(int capacity,
StringExt nativeString)
capacity - of the Hashtable where the fields are storednativeString - the String which has been obtained from the native lib call| Method Detail |
protected void parseNativeString(StringExt nativeString)
nativeString - the StringExt to parsepublic void reset()
public java.lang.String getValue(java.lang.String fieldName)
fieldName - the field nameprotected java.lang.String getString(java.lang.String fieldName)
fieldName - the field nameprotected IDate getIDate(java.lang.String fieldName)
fieldName - the field namepublic IRecipients getIRecipients(java.lang.String fieldName)
fieldName - the field namepublic IRecurrencePattern getIRecurrencePattern(java.lang.String fieldName)
fieldName - the field name
public void setValue(java.lang.String key,
java.lang.String value)
key - the field namevalue - the value as String representationpublic abstract void refresh()
public abstract void save()
public abstract void delete()
public abstract java.lang.String field(int position)
position - of the fieldnamepublic abstract int fields()
public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||