|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Stakeholder represents a personal or business contact. It is a holder for any type of information that might be used to communicate with that entity. Specifically, it provides a a collection of Postal Addresses, Phone Numbers, Emails, and Urls. It includes special functions for handling addresses as described in the getPrimaryAddress and getNamedAddress methods..
Primary Key = theory.smart.axiom.contact.StakeholderPk
identifier
[Stakeholder] <*>------> [String
] (Primary Key)
description
[Stakeholder] <*>------> [String
]
email (Map)
[Stakeholder] <*>------> [theory.smart.axiom.contact.Email
]
0..*
phone (Map)
[Stakeholder] <*>------> [theory.smart.axiom.contact.PhoneNumber
]
0..*
fax (List)
[Stakeholder] <*>------> [theory.smart.axiom.contact.PhoneNumber
]
0..*
url (Map)
[Stakeholder] <*>------> [theory.smart.axiom.contact.Url
]
0..*
address (Map)
[Stakeholder] <*>------> [theory.smart.axiom.contact.Address
]
0..*
StakeholderPk
,
StakeholderHome
,
StakeholderImpl
,
StakeholderValue
Method Summary | |
void |
addFax(int index,
PhoneNumber fax)
Inserts the specified fax at the specified position in the fax list. |
boolean |
addFax(PhoneNumber fax)
Appends the specified fax to the end of the fax list. |
boolean |
addFaxes(int index,
com.sun.java.util.collections.LinkedList faxes)
Inserts all of the faxes in the specified collection into this list, starting at the specified position. |
boolean |
addFaxes(com.sun.java.util.collections.LinkedList faxes)
Appends all of the faxes in the specified collection to the end of the fax list, in the order that they are returned by the specified collection's iterator. |
void |
addFirstFax(PhoneNumber fax)
Inserts the given fax at the beginning of the fax list. |
void |
addLastFax(PhoneNumber fax)
Appends the given fax to the end of the fax list. |
boolean |
containsAddressKey(java.lang.String key)
Returns true if the address map contains a address for the specified key. |
boolean |
containsAddressValue(Address address)
Returns true if the address map maps one or more keys to the specified address. |
boolean |
containsEmailKey(java.lang.String key)
Returns true if the email map contains a email for the specified key. |
boolean |
containsEmailValue(Email email)
Returns true if the email map maps one or more keys to the specified email. |
boolean |
containsFax(PhoneNumber fax)
Returns true if the fax list contains the specified element. |
boolean |
containsPhoneKey(java.lang.String key)
Returns true if the phone map contains a phone for the specified key. |
boolean |
containsPhoneValue(PhoneNumber phone)
Returns true if the phone map maps one or more keys to the specified phone. |
boolean |
containsUrlKey(java.lang.String key)
Returns true if the url map contains a url for the specified key. |
boolean |
containsUrlValue(Url url)
Returns true if the url map maps one or more keys to the specified url. |
Address |
getAddressByKey(java.lang.String key)
Returns the address to which the address map maps the specified key. |
com.sun.java.util.collections.TreeMap |
getAddresses()
Returns a copy all of the addresses from the specified map to the address map. |
java.lang.String |
getDescription()
Get the value of description |
Email |
getEmailByKey(java.lang.String key)
Returns the email to which the email map maps the specified key. |
com.sun.java.util.collections.TreeMap |
getEmails()
Returns a copy all of the emails from the specified map to the email map. |
PhoneNumber |
getFax(int index)
Returns the fax at the specified position in the fax list. |
com.sun.java.util.collections.LinkedList |
getFaxes()
Returns all of the faxes in the fax list. |
com.sun.java.util.collections.LinkedList |
getFaxes(int fromIndex,
int toIndex)
Returns a view of the portion of the fax list between fromIndex, inclusive, and toIndex, exclusive. |
PhoneNumber |
getFirstFax()
Returns the first fax in the fax list. |
java.lang.String |
getIdentifier()
|
PhoneNumber |
getLastFax()
Returns the last fax in the fax list. |
Address |
getNamedAddress(java.lang.String name)
Returns the address specified by the name. |
int |
getNumberOfAddresses()
Returns the number of key-value mappings in the address map. |
int |
getNumberOfEmails()
Returns the number of key-value mappings in the email map. |
int |
getNumberOfFaxes()
Returns the number of faxes in the fax list. |
int |
getNumberOfPhones()
Returns the number of key-value mappings in the phone map. |
int |
getNumberOfUrls()
Returns the number of key-value mappings in the url map. |
PhoneNumber |
getPhoneByKey(java.lang.String key)
Returns the phone to which the phone map maps the specified key. |
com.sun.java.util.collections.TreeMap |
getPhones()
Returns a copy all of the phones from the specified map to the phone map. |
Address |
getPrimaryAddress()
Get address that is tagged as the primary address. |
StakeholderValue |
getStakeholderByValue()
Get all of Stakeholder's attributes. |
Url |
getUrlByKey(java.lang.String key)
Returns the url to which the url map maps the specified key. |
com.sun.java.util.collections.TreeMap |
getUrls()
Returns a copy all of the urls from the specified map to the url map. |
int |
indexOfFax(PhoneNumber fax)
Returns the index in the fax list of the first occurrence of the specified element, or -1 if the fax list does not contain this element. |
boolean |
isAddressesEmpty()
Returns true if the address map contains no key-value mappings. |
boolean |
isEmailsEmpty()
Returns true if the email map contains no key-value mappings. |
boolean |
isFaxesEmtpy()
Returns true if the fax list contains no faxes. |
boolean |
isPhonesEmpty()
Returns true if the phone map contains no key-value mappings. |
boolean |
isUrlsEmpty()
Returns true if the url map contains no key-value mappings. |
int |
lastIndexOfFax(PhoneNumber fax)
Returns the index in the fax list of the last occurrence of the specified element, or -1 if the fax list does not contain this element. |
void |
putAddress(java.lang.String key,
Address address)
Associates the specified address with the specified key in the address map. |
void |
putAddresses(com.sun.java.util.collections.TreeMap addresses)
Copies all of the addresses from the specified address map to this address map. |
void |
putEmail(java.lang.String key,
Email email)
Associates the specified email with the specified key in the email map. |
void |
putEmails(com.sun.java.util.collections.TreeMap emails)
Copies all of the emails from the specified email map to this email map. |
void |
putPhone(java.lang.String key,
PhoneNumber phone)
Associates the specified phone with the specified key in the phone map. |
void |
putPhones(com.sun.java.util.collections.TreeMap phones)
Copies all of the phones from the specified phone map to this phone map. |
void |
putUrl(java.lang.String key,
Url url)
Associates the specified url with the specified key in the url map. |
void |
putUrls(com.sun.java.util.collections.TreeMap urls)
Copies all of the urls from the specified url map to this url map. |
Address |
removeAddressByKey(java.lang.String key)
Removes the address for this key from this address map if present. |
void |
removeAllAddresses()
Removes all addresses from this address map. |
void |
removeAllEmails()
Removes all emails from this email map. |
void |
removeAllFaxes()
Removes all of the faxes from the fax list. |
void |
removeAllPhones()
Removes all phones from this phone map. |
void |
removeAllUrls()
Removes all urls from this url map. |
Email |
removeEmailByKey(java.lang.String key)
Removes the email for this key from this email map if present. |
PhoneNumber |
removeFax(int index)
Removes the fax at the specified position in the fax list. |
boolean |
removeFax(PhoneNumber fax)
Removes the first occurrence of the specified fax in the fax list. |
PhoneNumber |
removeFirstFax()
Removes and returns the first fax from the fax list. |
PhoneNumber |
removeLastFax()
Removes and returns the last fax from the fax list. |
PhoneNumber |
removePhoneByKey(java.lang.String key)
Removes the phone for this key from this phone map if present. |
Url |
removeUrlByKey(java.lang.String key)
Removes the url for this key from this url map if present. |
void |
setDescription(java.lang.String description)
Set the value of description |
PhoneNumber |
setFax(int index,
PhoneNumber fax)
Replaces the fax at the specified position in the fax list with the specified element. |
void |
setPrimaryAddress(Address addr,
java.lang.String name)
This method is used to set a special address that will be the value returned by getPrimaryAddress. |
void |
setStakeholderByValue(StakeholderValue value)
Set all of Stakeholder's attributes to the passed in value. |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome,
getHandle,
getPrimaryKey,
isIdentical,
remove |
Method Detail |
public StakeholderValue getStakeholderByValue() throws java.rmi.RemoteException
public void setStakeholderByValue(StakeholderValue value) throws java.rmi.RemoteException
StakeholderValue
- the Stakeholder value objectpublic java.lang.String getIdentifier() throws java.rmi.RemoteException
public java.lang.String getDescription() throws java.rmi.RemoteException
public void setDescription(java.lang.String description) throws java.rmi.RemoteException
descriptions
- description to be addedpublic boolean containsEmailKey(java.lang.String key) throws java.rmi.RemoteException
key
- key whose presence in the email map is to be tested.public boolean containsEmailValue(Email email) throws java.rmi.RemoteException
email
- value of email whose presence in the email map is to be tested.public Email getEmailByKey(java.lang.String key) throws java.rmi.RemoteException
key
- key whose associated email is to be returned.#containsKey(Object)
public com.sun.java.util.collections.TreeMap getEmails() throws java.rmi.RemoteException
emails
- a copy of the emails.public int getNumberOfEmails() throws java.rmi.RemoteException
public boolean isEmailsEmpty() throws java.rmi.RemoteException
public void putEmail(java.lang.String key, Email email) throws java.rmi.RemoteException
key
- key with which the specified email is to be associated.email
- email to be associated with the specified key.public void putEmails(com.sun.java.util.collections.TreeMap emails) throws java.rmi.RemoteException
email
- Emails to be stored in the email map.public void removeAllEmails() throws java.rmi.RemoteException
public Email removeEmailByKey(java.lang.String key) throws java.rmi.RemoteException
key
- key with which the specified email is associated.public boolean containsPhoneKey(java.lang.String key) throws java.rmi.RemoteException
key
- key whose presence in the phone map is to be tested.public boolean containsPhoneValue(PhoneNumber phone) throws java.rmi.RemoteException
phone
- value of phone whose presence in the phone map is to be tested.public PhoneNumber getPhoneByKey(java.lang.String key) throws java.rmi.RemoteException
key
- key whose associated phone is to be returned.#containsKey(Object)
public com.sun.java.util.collections.TreeMap getPhones() throws java.rmi.RemoteException
phones
- a copy of the phones.public int getNumberOfPhones() throws java.rmi.RemoteException
public boolean isPhonesEmpty() throws java.rmi.RemoteException
public void putPhone(java.lang.String key, PhoneNumber phone) throws java.rmi.RemoteException
key
- key with which the specified phone is to be associated.phone
- phone to be associated with the specified key.public void putPhones(com.sun.java.util.collections.TreeMap phones) throws java.rmi.RemoteException
phone
- Phones to be stored in the phone map.public void removeAllPhones() throws java.rmi.RemoteException
public PhoneNumber removePhoneByKey(java.lang.String key) throws java.rmi.RemoteException
key
- key with which the specified phone is associated.public void addFax(int index, PhoneNumber fax) throws java.rmi.RemoteException
index
- index at which the specified fax is to be inserted.fax
- fax to be inserted.public boolean addFax(PhoneNumber fax) throws java.rmi.RemoteException
fax
- fax to be appended to the fax list.public boolean addFaxes(int index, com.sun.java.util.collections.LinkedList faxes) throws java.rmi.RemoteException
index
- index at which to insert first element
from the specified collection.faxes
- faxes to be inserted into the fax list.public boolean addFaxes(com.sun.java.util.collections.LinkedList faxes) throws java.rmi.RemoteException
faxes
- faxes to be inserted into the fax list.public void addFirstFax(PhoneNumber fax) throws java.rmi.RemoteException
public void addLastFax(PhoneNumber fax) throws java.rmi.RemoteException
public boolean containsFax(PhoneNumber fax) throws java.rmi.RemoteException
fax
- fax whose presence in the fax list is to be tested.public PhoneNumber getFax(int index) throws java.rmi.RemoteException
index
- index of fax to return.public com.sun.java.util.collections.LinkedList getFaxes(int fromIndex, int toIndex) throws java.rmi.RemoteException
fromIndex
- low endpoint (inclusive) of the subList.toKey
- high endpoint (exclusive) of the subList.public com.sun.java.util.collections.LinkedList getFaxes() throws java.rmi.RemoteException
public PhoneNumber getFirstFax() throws java.rmi.RemoteException
public PhoneNumber getLastFax() throws java.rmi.RemoteException
public int getNumberOfFaxes() throws java.rmi.RemoteException
public int indexOfFax(PhoneNumber fax) throws java.rmi.RemoteException
fax
- fax to search for.public boolean isFaxesEmtpy() throws java.rmi.RemoteException
public int lastIndexOfFax(PhoneNumber fax) throws java.rmi.RemoteException
fax
- fax to search for.public void removeAllFaxes() throws java.rmi.RemoteException
public PhoneNumber removeFax(int index) throws java.rmi.RemoteException
index
- the index of the fax to removed.public boolean removeFax(PhoneNumber fax) throws java.rmi.RemoteException
fax
- fax to be removed from the fax list, if present.public PhoneNumber removeFirstFax() throws java.rmi.RemoteException
public PhoneNumber removeLastFax() throws java.rmi.RemoteException
public PhoneNumber setFax(int index, PhoneNumber fax) throws java.rmi.RemoteException
index
- index of fax to replace.fax
- fax to be stored at the specified position.public boolean containsUrlKey(java.lang.String key) throws java.rmi.RemoteException
key
- key whose presence in the url map is to be tested.public boolean containsUrlValue(Url url) throws java.rmi.RemoteException
url
- value of url whose presence in the url map is to be tested.public Url getUrlByKey(java.lang.String key) throws java.rmi.RemoteException
key
- key whose associated url is to be returned.#containsKey(Object)
public com.sun.java.util.collections.TreeMap getUrls() throws java.rmi.RemoteException
urls
- a copy of the urls.public int getNumberOfUrls() throws java.rmi.RemoteException
public boolean isUrlsEmpty() throws java.rmi.RemoteException
public void putUrl(java.lang.String key, Url url) throws java.rmi.RemoteException
key
- key with which the specified url is to be associated.url
- url to be associated with the specified key.public void putUrls(com.sun.java.util.collections.TreeMap urls) throws java.rmi.RemoteException
url
- Urls to be stored in the url map.public void removeAllUrls() throws java.rmi.RemoteException
public Url removeUrlByKey(java.lang.String key) throws java.rmi.RemoteException
key
- key with which the specified url is associated.public boolean containsAddressKey(java.lang.String key) throws java.rmi.RemoteException
key
- key whose presence in the address map is to be tested.public boolean containsAddressValue(Address address) throws java.rmi.RemoteException
address
- value of address whose presence in the address map is to be tested.public Address getAddressByKey(java.lang.String key) throws java.rmi.RemoteException
key
- key whose associated address is to be returned.#containsKey(Object)
public com.sun.java.util.collections.TreeMap getAddresses() throws java.rmi.RemoteException
addresses
- a copy of the addresses.public int getNumberOfAddresses() throws java.rmi.RemoteException
public boolean isAddressesEmpty() throws java.rmi.RemoteException
public void putAddress(java.lang.String key, Address address) throws java.rmi.RemoteException
key
- key with which the specified address is to be associated.address
- address to be associated with the specified key.public void putAddresses(com.sun.java.util.collections.TreeMap addresses) throws java.rmi.RemoteException
address
- Addresses to be stored in the address map.public void removeAllAddresses() throws java.rmi.RemoteException
public Address removeAddressByKey(java.lang.String key) throws java.rmi.RemoteException
key
- key with which the specified address is associated.public void setPrimaryAddress(Address addr, java.lang.String name) throws java.rmi.RemoteException
public Address getPrimaryAddress() throws java.rmi.RemoteException
public Address getNamedAddress(java.lang.String name) throws java.rmi.RemoteException
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |