|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.wimpi.pim.contact.basicimpl.OrganizationImpl
A basic and simple implementation of an
Organization.
| Field Summary | |
protected java.lang.String |
m_Name
|
protected java.util.List |
m_Units
|
protected java.lang.String |
m_Url
|
| Constructor Summary | |
OrganizationImpl()
|
|
| Method Summary | |
void |
addUnit(java.lang.String unit)
Adds a given unit to this Organization. |
Image |
getLogo()
Returns the logo associated with this Organization. |
java.lang.String |
getName()
Returns the name of this Organization. |
java.lang.String |
getUnit(int index)
Returns the unit at the given index. |
int |
getUnitCount()
Returns the number of set units. |
java.lang.String |
getUnitsList()
|
java.lang.String |
getURL()
Returns the URL associated with this Organization. |
boolean |
hasLogo()
Tests if this Organization has a logo associated. |
java.lang.String[] |
listUnits()
Returns all units of this Organization. |
java.lang.String |
removeUnit(int index)
Removes the unit at the given index. |
void |
setLogo(Image logo)
Sets the logo associated with this Organization. |
void |
setName(java.lang.String name)
Sets the name of this Organization. |
java.lang.String |
setUnit(int index,
java.lang.String unit)
Sets the unit at the given index, returning the replaced one. |
void |
setUnitsList(java.lang.String list)
|
void |
setURL(java.lang.String url)
Sets the URL associated with this Organization. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String m_Name
protected java.lang.String m_Url
protected java.util.List m_Units
| Constructor Detail |
public OrganizationImpl()
| Method Detail |
public java.lang.String getName()
Organization
getName in interface Organizationpublic void setName(java.lang.String name)
Organization
setName in interface Organizationname - the name as String.public java.lang.String getURL()
Organization
getURL in interface Organizationpublic void setURL(java.lang.String url)
Organization
setURL in interface Organizationurl - the URL as String.public java.lang.String getUnitsList()
public void setUnitsList(java.lang.String list)
public java.lang.String getUnit(int index)
throws java.lang.IndexOutOfBoundsException
Organization
getUnit in interface Organizationindex - the index as int.
java.lang.IndexOutOfBoundsException - if the index
is out of bounds.
public java.lang.String setUnit(int index,
java.lang.String unit)
Organization
setUnit in interface Organizationindex - the index as int.unit - the unit to be set as String.
public java.lang.String[] listUnits()
Organization
listUnits in interface Organizationpublic void addUnit(java.lang.String unit)
Organization
addUnit in interface Organizationunit - the unit as String.
public java.lang.String removeUnit(int index)
throws java.lang.IndexOutOfBoundsException
Organization
removeUnit in interface Organizationindex - the index as int.
java.lang.IndexOutOfBoundsException - if the index
is out of bounds.public int getUnitCount()
Organization
getUnitCount in interface Organizationpublic Image getLogo()
Organization
getLogo in interface Organizationpublic void setLogo(Image logo)
Organization
setLogo in interface Organizationlogo - the logo as Image.public boolean hasLogo()
Organization
hasLogo in interface Organization
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||