|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jafer.registry.uddi.model.Contact
public class Contact
This class represent a contact for a business entity.This Class should never be directly instantiated.
Field Summary | |
---|---|
private java.lang.String |
description
Stores a reference to the contacts description |
private java.lang.String |
email
Stores a reference to the contacts email |
private static java.lang.String |
EMAIL_USETYPE
Stores a reference to the use type for email address when not already set |
private static int |
MAX_DESCRIPTION_LENGTH
Stores a reference to the maximumn number of characters for the description field |
private static int |
MAX_EMAIL_LENGTH
Stores a reference to the maximumn number of characters for the email field |
private static int |
MAX_NAME_LENGTH
Stores a reference to the maximumn number of characters for the name field |
private static int |
MAX_PHONE_LENGTH
Stores a reference to the maximumn number of characters for the phone field |
private java.lang.String |
name
Stores a reference to the contacts name |
private java.lang.String |
phone
Stores a reference to the contacts phone |
private static java.lang.String |
PHONE_USETYPE
Stores a reference to the use type for phone numbers when not already set |
private java.lang.String |
type
Stores a reference to the contact type. |
Constructor Summary | |
---|---|
Contact(org.uddi4j.datatype.business.Contact uddiContact)
Creates a Contact object by extracting the details from the UDDI contact object |
|
Contact(java.lang.String name)
Constructor for the UDDI contact object |
|
Contact(java.lang.String name,
java.lang.String desc,
java.lang.String phone,
java.lang.String email)
Constructor for the UDDI contact object |
Method Summary | |
---|---|
java.lang.String |
getDescription()
Gets the description of the contact in English |
java.lang.String |
getEmail()
Gets the email of the contact |
java.lang.String |
getName()
Gets the name of the contact |
java.lang.String |
getPhone()
Gets the first phone number of the contact only |
void |
setDescrition(java.lang.String description)
Sets the description of the contact in English |
void |
setEmail(java.lang.String email)
Sets the email of the contact |
void |
setName(java.lang.String name)
Sets the name of the contact |
void |
setPhone(java.lang.String phone)
Sets the phone of the contact |
void |
updateUDDIContact(org.uddi4j.datatype.business.Contact uddiContact)
Updates the supplied uddi contact object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final int MAX_PHONE_LENGTH
private static final int MAX_NAME_LENGTH
private static final int MAX_DESCRIPTION_LENGTH
private static final int MAX_EMAIL_LENGTH
private static final java.lang.String PHONE_USETYPE
private static final java.lang.String EMAIL_USETYPE
private java.lang.String type
private java.lang.String name
private java.lang.String description
private java.lang.String email
private java.lang.String phone
Constructor Detail |
---|
public Contact(java.lang.String name) throws InvalidNameException, InvalidLengthException
name
- The contacts name
InvalidNameException
InvalidLengthException
public Contact(java.lang.String name, java.lang.String desc, java.lang.String phone, java.lang.String email) throws InvalidNameException, InvalidLengthException
name
- The contacts namedesc
- The contacts descriptionphone
- The contacts phone numberemail
- The contacts email
InvalidNameException
InvalidLengthException
public Contact(org.uddi4j.datatype.business.Contact uddiContact)
uddiContact
- The uddi contact object to extract fromMethod Detail |
---|
public void updateUDDIContact(org.uddi4j.datatype.business.Contact uddiContact)
uddiContact
- The object to updatepublic java.lang.String getName()
getName
in interface Contact
public void setName(java.lang.String name) throws InvalidNameException, InvalidLengthException
setName
in interface Contact
name
- The name to set
InvalidNameException
InvalidLengthException
public java.lang.String getDescription()
getDescription
in interface Contact
public void setDescrition(java.lang.String description) throws InvalidLengthException
setDescrition
in interface Contact
description
- The description to set
InvalidLengthException
public java.lang.String getPhone()
getPhone
in interface Contact
public void setPhone(java.lang.String phone) throws InvalidLengthException
setPhone
in interface Contact
phone
- The phone to set
InvalidLengthException
public java.lang.String getEmail()
getEmail
in interface Contact
public void setEmail(java.lang.String email) throws InvalidLengthException
setEmail
in interface Contact
email
- The email to set
InvalidLengthException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |