com.jivesoftware.community
Class DocumentFieldValue
java.lang.Object
com.jivesoftware.community.DocumentFieldValue
- All Implemented Interfaces:
- com.tangosol.io.ExternalizableLite, Serializable
public class DocumentFieldValue
- extends Object
- implements com.tangosol.io.ExternalizableLite
Bean holder for document field values. This class is used to set and retrieve document field
values. The choice of whether to use the #setOptionIDs(com.jivesoftware.util.LongList) or
setStringValue(String) is determined by the data type of the document field. For example,
to set the chosen selection list value for a field with a data type of
DocumentFieldType.DataType.LIST_SINGLE one would pass in a LongList with a single optionID
into the #setOptionIDs(com.jivesoftware.util.LongList) and not set any string value.
- See Also:
- Serialized Form
DocumentFieldValue
public DocumentFieldValue(long fieldID)
getFieldID
public long getFieldID()
getOptionIDs
public LongList getOptionIDs()
setOptionIDs
public void setOptionIDs(LongList optionIDs)
getStringValue
public String getStringValue()
setStringValue
public void setStringValue(String value)
getCachedSize
public int getCachedSize()
readExternal
public void readExternal(DataInput in)
throws IOException
- Specified by:
readExternal in interface com.tangosol.io.ExternalizableLite
- Throws:
IOException
writeExternal
public void writeExternal(DataOutput out)
throws IOException
- Specified by:
writeExternal in interface com.tangosol.io.ExternalizableLite
- Throws:
IOException
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 1999-2007 Jive Software.