superwaba.ext.ce.io.builtin.pimal
Class PocketPCAddressRecord

java.lang.Object
  |
  +--superwaba.ext.ce.io.builtin.pimal.PocketPCRecord
        |
        +--superwaba.ext.ce.io.builtin.pimal.PocketPCAddressRecord

public class PocketPCAddressRecord
extends PocketPCRecord
implements AddressRecord

Implements the pimal.addressbook.AddressRecord interface for PocketPC devices


Fields inherited from class superwaba.ext.ce.io.builtin.pimal.PocketPCRecord
fields, source
 
Constructor Summary
PocketPCAddressRecord(IContact source)
          creates a new PocketPCAddressRecord from the given source; the only field needed from the source is the id!
 
Method Summary
 void addExceptionalFields(Vector alreadyFoundFields)
          adds the exceptional fields to the given Vector; exceptional fields can mean that they have been read out of the note e.g.
 java.lang.String field(int position)
          return the field_name_ of a *FieldTemplate at a given position
 Vector getAddressFields()
           
 Vector getTemplates()
          returns a cloned copy of the corresponding *FieldTemplates Vector of class Constant
 void handleExceptionalFields(Vector exceptionalFields)
          handles the fields that could not be stored on the device (writes them in the note e.g.)
 void registerNotSupportedhandler(AddressNotSupportedHandler nsh)
          Registeres a NotSupportedHandler that handle's AddressFields this device cannot store
 void setAddressFields(Vector fields)
           
 VersitField template(int position)
          returns the template at the given position from the corresponding template Vector from class Constant
 int templates()
          returns the size of the corresponding *FieldTemplates Vector of class Constant
 
Methods inherited from class superwaba.ext.ce.io.builtin.pimal.PocketPCRecord
delete, getFields, getId, map, rawReadNote, rawWriteNote, setFields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PocketPCAddressRecord

public PocketPCAddressRecord(IContact source)
creates a new PocketPCAddressRecord from the given source; the only field needed from the source is the id!
Parameters:
source - the source from which this instance shall be created
Method Detail

getAddressFields

public Vector getAddressFields()

setAddressFields

public void setAddressFields(Vector fields)

registerNotSupportedhandler

public void registerNotSupportedhandler(AddressNotSupportedHandler nsh)
Description copied from interface: AddressRecord
Registeres a NotSupportedHandler that handle's AddressFields this device cannot store
Specified by:
registerNotSupportedhandler in interface AddressRecord
Tags copied from interface: AddressRecord
Parameters:
nsh - the NotSupportedHandler to register

handleExceptionalFields

public void handleExceptionalFields(Vector exceptionalFields)
Description copied from class: PocketPCRecord
handles the fields that could not be stored on the device (writes them in the note e.g.)
Overrides:
handleExceptionalFields in class PocketPCRecord
Tags copied from class: PocketPCRecord
Parameters:
exceptionalFields - a Vector of the fields that could not be mapped to the device

addExceptionalFields

public void addExceptionalFields(Vector alreadyFoundFields)
Description copied from class: PocketPCRecord
adds the exceptional fields to the given Vector; exceptional fields can mean that they have been read out of the note e.g.
Overrides:
addExceptionalFields in class PocketPCRecord
Tags copied from class: PocketPCRecord
Parameters:
alreadyFoundFields - the Vector of the "regular" fields where the exceptional fields can be added

templates

public int templates()
Description copied from class: PocketPCRecord
returns the size of the corresponding *FieldTemplates Vector of class Constant
Overrides:
templates in class PocketPCRecord
Tags copied from class: PocketPCRecord
Returns:
the number of templates for the object

template

public VersitField template(int position)
Description copied from class: PocketPCRecord
returns the template at the given position from the corresponding template Vector from class Constant
Overrides:
template in class PocketPCRecord
Tags copied from class: PocketPCRecord
Parameters:
position - the index of the template
Returns:
the template at the given index

getTemplates

public Vector getTemplates()
Description copied from class: PocketPCRecord
returns a cloned copy of the corresponding *FieldTemplates Vector of class Constant
Overrides:
getTemplates in class PocketPCRecord
Tags copied from class: PocketPCRecord
Returns:
all the corresponding templates in a Vector

field

public java.lang.String field(int position)
Description copied from class: PocketPCRecord
return the field_name_ of a *FieldTemplate at a given position
Overrides:
field in class PocketPCRecord
Tags copied from class: PocketPCRecord
Parameters:
position - the index of the fieldname to return
Returns:
the fieldname at given index