BrightSide Workbench Full Report + Source Code
org.turro.contacts.util.ContactId Class Reference
Inheritance diagram for org.turro.contacts.util.ContactId:
Collaboration diagram for org.turro.contacts.util.ContactId:

Public Member Functions

 ContactId (String object)
 
String getRealValue ()
 
void setRealValue (String value)
 
Object getObject ()
 
void setObject (Object object)
 
Object getValue ()
 
IContact getIContact ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Deprecated:
Use Contacts instead

Definition at line 30 of file ContactId.java.

Constructor & Destructor Documentation

◆ ContactId()

org.turro.contacts.util.ContactId.ContactId ( String  object)

Definition at line 36 of file ContactId.java.

36  {
37  this.object = object;
38  }

Member Function Documentation

◆ getIContact()

IContact org.turro.contacts.util.ContactId.getIContact ( )

Definition at line 67 of file ContactId.java.

67  {
68  Contact c = (Contact) getObject();
69  if(c != null) {
70  return new DefaultContact(c);
71  }
72  return null;
73  }
Here is the call graph for this function:

◆ getObject()

Object org.turro.contacts.util.ContactId.getObject ( )

Definition at line 48 of file ContactId.java.

48  {
49  if(object == null) return null;
50  return new ContactsPU().find(Contact.class, object);
51  }
Here is the caller graph for this function:

◆ getRealValue()

String org.turro.contacts.util.ContactId.getRealValue ( )

Definition at line 40 of file ContactId.java.

40  {
41  return object;
42  }

◆ getValue()

Object org.turro.contacts.util.ContactId.getValue ( )

Definition at line 59 of file ContactId.java.

59  {
60  Contact contact = (Contact) getObject();
61  if(contact != null) {
62  return contact.getName();
63  }
64  return null;
65  }
Here is the call graph for this function:

◆ setObject()

void org.turro.contacts.util.ContactId.setObject ( Object  object)

Definition at line 53 of file ContactId.java.

53  {
54  if(object instanceof Contact) {
55  this.object = ((Contact) object).getId();
56  }
57  }

◆ setRealValue()

void org.turro.contacts.util.ContactId.setRealValue ( String  value)

Definition at line 44 of file ContactId.java.

44  {
45  this.object = value;
46  }

The documentation for this class was generated from the following file: