|
Clearspace API (1.7.0) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.ProfileFieldValue
public class ProfileFieldValue
This class represents a possible value for a ProfileField. A ProfileField can contain
either a single value, in the case of a radio button or text field, or a list of values, in the case of
checkboxes or multiselect fields. If the ProfileField can contain multiple values, they will be stored
as a LongList of option IDs where each option ID represents the corresponding ProfileFieldOption.
Otherwise the value will be stored as a String.
ProfileField,
ProfileFieldOption,
UserProfile| Constructor Summary | |
|---|---|
ProfileFieldValue(long fieldID)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
int |
getCachedSize()
Returns the estimated cache size for this object. |
long |
getFieldID()
Returns the ID of the ProfileField for this value. |
com.jivesoftware.util.LongList |
getOptionIDs()
Gets a list of the selected options. |
java.lang.String |
getStringValue()
Gets the value for this ProfileField. |
int |
hashCode()
|
void |
readExternal(java.io.DataInput in)
|
void |
setOptionIDs(com.jivesoftware.util.LongList optionIDs)
Sets a list of selected optionIDs. |
void |
setStringValue(java.lang.String value)
Sets the value for this field. |
void |
writeExternal(java.io.DataOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProfileFieldValue(long fieldID)
| Method Detail |
|---|
public long getFieldID()
ProfileField for this value.
ProfileField for this value.public com.jivesoftware.util.LongList getOptionIDs()
ProfileField does not have a List of
ProfileFieldOptions defined, then the value will be stored as a String and this method
will return null.
public void setOptionIDs(com.jivesoftware.util.LongList optionIDs)
ProfileField does not have a List of
ProfileFieldOptions defined, then the value should be stored as a String and this method
should be set to null.
optionIDs - the list of selected options.public java.lang.String getStringValue()
ProfileField. If the ProfileField has a set of
ProfileFieldOptions, the value(s) will be stored as a List of optionIDs and
this method will return null.
public void setStringValue(java.lang.String value)
ProfileField has a set of ProfileFieldOptions, the value(s)
should be stored as a List of optionIDs and this method should be set to null.
value - the value for this field.public int getCachedSize()
public void readExternal(java.io.DataInput in)
throws java.io.IOException
java.io.IOException
public void writeExternal(java.io.DataOutput out)
throws java.io.IOException
java.io.IOExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||