net.wimpi.pim
Class Pim

java.lang.Object
  |
  +--net.wimpi.pim.Pim

public class Pim
extends java.lang.Object

Utility class. Provides factories and package wide settings/defaults.

Version:
0.1 (22/07/2003)
Author:
Dieter Wimberger

Field Summary
static java.lang.String PRODUCT_ID
          Defines the product identifier that announces jpim.
 
Method Summary
static ContactDBFactory getContactDBFactory()
          Returns a reference to the ContactDBFactory for applications.
static ContactIOFactory getContactIOFactory()
          Returns a reference to the ContactIOFactory for applications.
static ContactModelFactory getContactModelFactory()
          Returns a reference to the ContactModelFactory for applications.
static boolean isAnnounced()
          Tests if the product should be announced when marshalling.
static void setAnnounced(boolean b)
          Sets if the product should be announced when marshalling.
static void setContactIOFactory(ContactDBFactory factory)
          Sets the ContactDBFactory instance to be used by applications.
static void setContactIOFactory(ContactIOFactory factory)
          Sets the ContactIOFactory instance to be used by applications.
static void setContactModelFactory(ContactModelFactory factory)
          Sets the ContactModelFactory instance to be used by applications.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRODUCT_ID

public static final java.lang.String PRODUCT_ID
Defines the product identifier that announces jpim.

See Also:
Constant Field Values
Method Detail

getContactModelFactory

public static ContactModelFactory getContactModelFactory()
Returns a reference to the ContactModelFactory for applications.

Returns:
a ContactModelFactory instance.

setContactModelFactory

public static void setContactModelFactory(ContactModelFactory factory)
Sets the ContactModelFactory instance to be used by applications.

Parameters:
factory - a ContactModelFactory instance.

getContactIOFactory

public static ContactIOFactory getContactIOFactory()
Returns a reference to the ContactIOFactory for applications.

Returns:
a ContactIOFactory instance.

setContactIOFactory

public static void setContactIOFactory(ContactIOFactory factory)
Sets the ContactIOFactory instance to be used by applications.

Parameters:
factory - a ContactIOFactory instance.

getContactDBFactory

public static ContactDBFactory getContactDBFactory()
Returns a reference to the ContactDBFactory for applications.

Returns:
a ContactDBFactory instance.

setContactIOFactory

public static void setContactIOFactory(ContactDBFactory factory)
Sets the ContactDBFactory instance to be used by applications.

Parameters:
factory - a ContactDBFactory instance.

isAnnounced

public static boolean isAnnounced()
Tests if the product should be announced when marshalling.
The vCardMarshaller will append the PRODID field to the card for example.
The default is false.

Returns:
true if announced, false otherwise.

setAnnounced

public static void setAnnounced(boolean b)
Sets if the product should be announced when marshalling.
The vCardMarshaller will append the PRODID field to the card for example.
The default is false.

Parameters:
b - true if announce, false otherwise.


Copyright © 2001-2003 jpim team.