|
||||||||||
| 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
Class implementing a generic Extension.
This class can be derived to simplify implementation of extensions for the developer, as it is not required write an ItemHandler for this type of extensions.
| Field Summary | |
protected java.lang.String |
m_Identifier
|
protected java.util.Map |
m_Parameters
|
protected java.lang.String |
m_Value
|
| Constructor Summary | |
GenericExtension(java.lang.String identifier)
Creates a new GenericExtension instance. |
|
| Method Summary | |
abstract GenericExtension |
createExtension()
Returns a new GenericExtension. |
java.lang.String |
getIdentifier()
Returns the identifier for this Extension. |
java.util.Map |
getParameters()
Returns the parameters of this GenericExtension. |
java.lang.String[] |
getParameterValues(java.lang.String name)
Returns the parameter values of the parameter with the given name. |
java.lang.String |
getValue()
Returns the value of this GenericExtension. |
java.lang.String[] |
listParameters()
Returns a list of all parameter names. |
void |
setParameters(java.util.Map parameters)
Sets the parameters of this GenericExtension. |
void |
setValue(java.lang.String value)
Sets the value of this GenericExtension. |
| 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_Identifier
protected java.lang.String m_Value
protected java.util.Map m_Parameters
| Constructor Detail |
public GenericExtension(java.lang.String identifier)
identifier - the identifier for the extension.| Method Detail |
public java.lang.String getIdentifier()
Extension
getIdentifier in interface Extensionpublic java.lang.String getValue()
public void setValue(java.lang.String value)
value - a value as String.public java.util.Map getParameters()
public void setParameters(java.util.Map parameters)
parameters - the parameters as Map.public java.lang.String[] getParameterValues(java.lang.String name)
name - a parameter name.
public java.lang.String[] listParameters()
public abstract GenericExtension createExtension()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||