public class Contact extends java.lang.Object implements RegistryObject
Constructor and Description |
---|
Contact()
Construct a new initialized Contact instance.
|
Contact(java.lang.String name)
Construct a new contact with a given name.
|
Contact(java.lang.String name,
java.lang.String type)
Construct a new contact with a given UseType and Name.
|
Modifier and Type | Method and Description |
---|---|
void |
addAddress(Address address)
Add an address to this person.
|
void |
addDescription(Description description)
Add an description to this contact.
|
void |
addEmail(Email email)
Add an emailaddress to this person.
|
void |
addPhone(Phone phone)
Add a phone to this person.
|
java.util.Vector |
getAddressVector()
Returns the addresses of this person.
|
java.util.Vector |
getDescriptionVector()
Returns the descriptions of this contact.
|
java.util.Vector |
getEmailVector()
Returns the email addresses of this person.
|
PersonName |
getPersonName()
Returns the name of this person.
|
java.lang.String |
getPersonNameValue()
Returns the name of this person.
|
java.util.Vector |
getPhoneVector()
Returns the phones of this person.
|
java.lang.String |
getUseType()
Returns the usetype of this contact.
|
void |
setAddressVector(java.util.Vector adds)
Set the addresses of this person replacing the old
|
void |
setDescriptionVector(java.util.Vector descriptions)
Set the descriptions of this contact replacing the old
|
void |
setEmailVector(java.util.Vector emailAddresses)
Sets a collection of email-addresses to this person
replacing the old one
|
void |
setPersonName(PersonName personName)
Sets the name of this person to the given name.
|
void |
setPersonNameValue(java.lang.String name)
Sets the name of this person to the given name.
|
void |
setPhoneVector(java.util.Vector phones)
Set a collection of phone numbers to this person
replacing the old.
|
void |
setUseType(java.lang.String type)
Sets the usetype of this contact to the given usetype.
|
public Contact()
public Contact(java.lang.String name)
name
- The name of the contact.public Contact(java.lang.String name, java.lang.String type)
name
- The UseType of the contact.type
- The Name of the contact.public void addDescription(Description description)
description
- The description to add to this contact.public void setDescriptionVector(java.util.Vector descriptions)
descriptions
- public java.util.Vector getDescriptionVector()
public void setUseType(java.lang.String type)
type
- The usetype of this contact.public java.lang.String getUseType()
public java.lang.String getPersonNameValue()
public PersonName getPersonName()
public void setPersonNameValue(java.lang.String name)
name
- The new name of this person.public void setPersonName(PersonName personName)
personName
- The new name of this person.public void addAddress(Address address)
address
- The address to add to this person.public void setAddressVector(java.util.Vector adds)
adds
- public java.util.Vector getAddressVector()
public void addPhone(Phone phone)
phone
- The phone to add to this person.public void setPhoneVector(java.util.Vector phones)
phones
- The vector of new Phone instances to
this person.public java.util.Vector getPhoneVector()
public void addEmail(Email email)
email
- The email address to add to this person.public void setEmailVector(java.util.Vector emailAddresses)
emailAddresses
- public java.util.Vector getEmailVector()
Copyright ? 2003 Apache Software Foundation. All rights reserved.