|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.wimpi.pim.contact.basicimpl.GenericExtension | +--net.wimpi.pim.contact.basicimpl.SimpleExtension
Class implementing a simple Extension
.
This class can be used to handle simple
extensions of the type:
X-KIDS: Mary;Joe;Tom
Field Summary | |
protected java.util.List |
m_Values
|
Fields inherited from class net.wimpi.pim.contact.basicimpl.GenericExtension |
m_Identifier, m_Parameters, m_Value |
Constructor Summary | |
SimpleExtension(java.lang.String identifier)
|
Method Summary | |
void |
addValue(java.lang.String value)
Adds a value to this SimpleExtension. |
GenericExtension |
createExtension()
Returns a new SimpleExtension with the same identifier as this SimpleExtension instance. |
java.lang.String |
getValue()
Returns the value of this GenericExtension. |
java.lang.String |
getValue(int index)
Returns the Value at the given index. |
int |
getValueCount()
Returns the number of values associated with this SimpleExtension. |
java.lang.String[] |
listValues()
Returns all values of this this SimpleExtension. |
java.lang.String |
removeValue(int index)
Removes and returns the value at the given index. |
java.lang.String |
setValue(int index,
java.lang.String value)
Sets the value at the given index, returning the replaced one. |
void |
setValue(java.lang.String value)
Sets the value of this GenericExtension. |
Methods inherited from class net.wimpi.pim.contact.basicimpl.GenericExtension |
getIdentifier, getParameters, getParameterValues, listParameters, setParameters |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.List m_Values
Constructor Detail |
public SimpleExtension(java.lang.String identifier)
Method Detail |
public void setValue(java.lang.String value)
GenericExtension
setValue
in class GenericExtension
value
- a value as String.public java.lang.String getValue()
GenericExtension
getValue
in class GenericExtension
public java.lang.String[] listValues()
public java.lang.String getValue(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 setValue(int index, java.lang.String value) throws java.lang.IndexOutOfBoundsException
index
- the index as int.value
- the value as String.
java.lang.IndexOutOfBoundsException
- if the index is
out of bounds.public void addValue(java.lang.String value)
value
- the value as String.public java.lang.String removeValue(int index) throws java.lang.IndexOutOfBoundsException
index
- the index as int.
java.lang.IndexOutOfBoundsException
- if the index is
out of bounds.public int getValueCount()
public GenericExtension createExtension()
createExtension
in class GenericExtension
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |