|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface modeling an organization based on the types and information defined by the vCard Mime directory profile standard.
For reference see RFC 2426:
3.5 Organizational Types
3.5.5 ORG Type Definition
3.5.3 LOGO Type Definition
Note that the ORG type from the specification
has been split into name and units (with their
respective accessor and mutator methods).
Also note that an URL field has been added to
the organization for convenience.
Units are used to specify a certain part of
an organization.
Image
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 |
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 |
setURL(java.lang.String url)
Sets the URL associated with this Organization. |
Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name as String.public java.lang.String[] listUnits()
public java.lang.String getUnit(int index) throws java.lang.IndexOutOfBoundsException
index
- 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) throws java.lang.IndexOutOfBoundsException
index
- the index as int.unit
- the unit to be set as String.
java.lang.IndexOutOfBoundsException
- if the index
is out of bounds.public void addUnit(java.lang.String unit)
unit
- the unit as String.public java.lang.String removeUnit(int index) throws java.lang.IndexOutOfBoundsException
index
- the index as int.
java.lang.IndexOutOfBoundsException
- if the index
is out of bounds.public int getUnitCount()
public java.lang.String getURL()
public void setURL(java.lang.String url)
url
- the URL as String.public Image getLogo()
public void setLogo(Image logo)
logo
- the logo as Image.public boolean hasLogo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |