org.pm4j.core.pm
Interface PmOptionSet

All Known Implementing Classes:
PmOptionSetImpl, PmOptionSetImpl.WithIdMap

public interface PmOptionSet

Interface for options sets.

Author:
olaf boede

Field Summary
static java.lang.String NULL_OPTION_ID
           
 
Method Summary
 PmOption findOptionForId(java.io.Serializable id)
          TODOC:
 PmOption findOptionForIdString(java.lang.String idString)
           
 PmOption findOptionForTitle(java.lang.String title)
           
 PmOption getFirstOption()
           
 java.lang.Object getFirstOptionValue()
           
 PmOption getLastOption()
           
 java.lang.Object getLastOptionValue()
           
 PmOption getOptionForId(java.io.Serializable id)
           
 PmOption getOptionForIdString(java.lang.String idString)
           
 PmOption getOptionForTitle(java.lang.String title)
           
 java.util.List<PmOption> getOptions()
           
 java.lang.Integer getSize()
           
 boolean isMultiselection()
           
 

Field Detail

NULL_OPTION_ID

static final java.lang.String NULL_OPTION_ID
See Also:
Constant Field Values
Method Detail

isMultiselection

boolean isMultiselection()
Returns:
true when more than one option may be selected.

getOptions

java.util.List<PmOption> getOptions()
Returns:
The set of options. Returns an empty list when there are no options.

getSize

java.lang.Integer getSize()
Returns:
the number of options

getFirstOption

PmOption getFirstOption()
Returns:
The first option of the set. null if there is no option.

getFirstOptionValue

java.lang.Object getFirstOptionValue()
Returns:
The value of the first option. null if there is no option.

getLastOption

PmOption getLastOption()
Returns:
The last option of the set. null if there is no option.

getLastOptionValue

java.lang.Object getLastOptionValue()
Returns:
The value of the last option. null if there is no option.

findOptionForId

PmOption findOptionForId(java.io.Serializable id)
TODOC:

Parameters:
id -
Returns:

getOptionForId

PmOption getOptionForId(java.io.Serializable id)

findOptionForIdString

PmOption findOptionForIdString(java.lang.String idString)

getOptionForIdString

PmOption getOptionForIdString(java.lang.String idString)

findOptionForTitle

PmOption findOptionForTitle(java.lang.String title)

getOptionForTitle

PmOption getOptionForTitle(java.lang.String title)