superwaba.ext.xplat.io.pimal.addressbook
Interface AddressRecord

All Known Implementing Classes:
PalmAddressRecord, PocketPCAddressRecord

public interface AddressRecord
extends VCardRecord

An interface describing the functionality an implementation of an AddressRecord (e.g. one person's/company's contact information) must provide


Method Summary
 Vector getFields()
          Reads AddressFields from the device, maps them and stores them in AddressFields and returns them.
 java.lang.String rawReadNote()
          Reads this AddressRecord's note directly.
 void rawWriteNote(java.lang.String note)
          Writes this AddressRecord's note directly
 void registerNotSupportedhandler(AddressNotSupportedHandler nsh)
          Registeres a NotSupportedHandler that handle's AddressFields this device cannot store
 void setFields(Vector fields)
          Reads information from the passed fields, maps them and writes them to the device.
 

Method Detail

getFields

public Vector getFields()
Reads AddressFields from the device, maps them and stores them in AddressFields and returns them.
Returns:
a Vector containing the contact information of this record in AddressFields

setFields

public void setFields(Vector fields)
Reads information from the passed fields, maps them and writes them to the device. Passes not supported fields to a NotSupportedHandler
Parameters:
fields - the fields to write to the device

rawReadNote

public java.lang.String rawReadNote()
Reads this AddressRecord's note directly.
Returns:
the note's text

rawWriteNote

public void rawWriteNote(java.lang.String note)
Writes this AddressRecord's note directly
Parameters:
note - the text to write to the note

registerNotSupportedhandler

public void registerNotSupportedhandler(AddressNotSupportedHandler nsh)
Registeres a NotSupportedHandler that handle's AddressFields this device cannot store
Parameters:
nsh - the NotSupportedHandler to register