java.lang.Object
eu.etaxonomy.cdm.model.common.CdmBase
eu.etaxonomy.cdm.model.common.VersionableEntity
eu.etaxonomy.cdm.model.common.AnnotatableEntity
eu.etaxonomy.cdm.model.common.IdentifiableEntity<S>
eu.etaxonomy.cdm.model.media.IdentifiableMediaEntity<S>
eu.etaxonomy.cdm.model.agent.AgentBase<S>
- All Implemented Interfaces:
- IAnnotatableEntity, ICdmBase, IIdentifiableEntity, ISourceable<IdentifiableSource>, IVersionableEntity, IMediaDocumented, IMediaEntity, IMatchable, IMergable, Serializable, Cloneable
- Direct Known Subclasses:
- Institution, TeamOrPersonBase
@Entity
public abstract class AgentBase<S extends IIdentifiableEntityCacheStrategy>
- extends IdentifiableMediaEntity<S>
- implements IMergable, IMatchable, Cloneable
The upmost (abstract) class for agents such as persons, teams or institutions.
An agent is a conscious entity which can make decisions, act and create
according to its own knowledge and goals and which may be approached.
Agents can be authors for nomenclatural or bibliographical references as well
as creators of pictures or field collectors or administrators of collections.
- Version:
- 1.0
- Author:
- m.doering
- See Also:
- Serialized Form
| Fields inherited from class eu.etaxonomy.cdm.model.common.CdmBase |
uuid |
| Methods inherited from class eu.etaxonomy.cdm.model.common.IdentifiableEntity |
addCredit, addCredit, addExtension, addExtension, addRights, addSource, addSource, compareTo, generateTitle, getCacheStrategy, getCredits, getCredits, getData, getExtensions, getExtensions, getExtensions, getLsid, getRights, getSources, getTitleCache, getTruncatedCache, initListener, isProtectedTitleCache, regenerateTitleCache, removeCredit, removeCredit, removeExtension, removeRights, removeSource, setCacheStrategy, setLsid, setProtectedTitleCache, setTitleCache, setTitleCache, toString |
| Methods inherited from class eu.etaxonomy.cdm.model.common.CdmBase |
addPropertyChangeListener, addPropertyChangeListener, clone, deproxy, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreated, getCreatedBy, getId, getUuid, hashCode, hasListeners, instanceToString, invokeSetMethod, invokeSetMethodWithNull, isInstanceOf, removePropertyChangeListener, removePropertyChangeListener, setCreated, setCreatedBy, setId, setUuid |
AgentBase
public AgentBase()
getContact
public Contact getContact()
- Returns the
contact of this person.
The contact contains several ways to approach this person.
- See Also:
Contact
setContact
public void setContact(Contact contact)
- See Also:
getContact()
addAddress
public void addAddress(String street,
String postcode,
String locality,
WaterbodyOrCountry country,
String pobox,
String region,
Point location)
- Adds a new address to this agent
- Parameters:
street - postcode - locality - country - pobox - region - location - - See Also:
Contact.addAddress(java.lang.String, java.lang.String, java.lang.String, eu.etaxonomy.cdm.model.location.WaterbodyOrCountry, java.lang.String, java.lang.String, eu.etaxonomy.cdm.model.location.Point)
addAddress
public void addAddress(Address address)
- Parameters:
address - - See Also:
Contact.addAddress(eu.etaxonomy.cdm.model.agent.Address)
addEmailAddress
public void addEmailAddress(String emailAddress)
- Parameters:
emailAddress - - See Also:
Contact.addEmailAddress(java.lang.String)
addFaxNumber
public void addFaxNumber(String faxNumber)
- Parameters:
faxNumber - - See Also:
Contact.addFaxNumber(java.lang.String)
addPhoneNumber
public void addPhoneNumber(String phoneNumber)
- Parameters:
phoneNumber - - See Also:
Contact.addPhoneNumber(java.lang.String)
addUrl
public void addUrl(String url)
- Parameters:
url - - See Also:
Contact.addUrl(java.lang.String)
getAddresses
public Set<Address> getAddresses()
- Returns:
- See Also:
Contact.getAddresses()
getEmailAddresses
public List<String> getEmailAddresses()
- Returns:
- See Also:
Contact.getEmailAddresses()
getFaxNumbers
public List<String> getFaxNumbers()
- Returns:
- See Also:
Contact.getFaxNumbers()
getPhoneNumbers
public List<String> getPhoneNumbers()
- Returns:
- See Also:
Contact.getPhoneNumbers()
getUrls
public List<String> getUrls()
- Returns:
- See Also:
Contact.getUrls()
removeAddress
public void removeAddress(Address address)
- Parameters:
address - - See Also:
Contact.removeAddress(eu.etaxonomy.cdm.model.agent.Address)
removeEmailAddress
public void removeEmailAddress(String emailAddress)
- Parameters:
emailAddress - - See Also:
Contact.removeEmailAddress(java.lang.String)
removeFaxNumber
public void removeFaxNumber(String faxNumber)
- Parameters:
faxNumber - - See Also:
Contact.removeFaxNumber(java.lang.String)
removePhoneNumber
public void removePhoneNumber(String phoneNumber)
- Parameters:
phoneNumber - - See Also:
Contact.removePhoneNumber(java.lang.String)
removeUrl
public void removeUrl(String url)
- Parameters:
url - - See Also:
Contact.removeUrl(java.lang.String)
Copyright © 2007-2013 EDIT. All Rights Reserved.