org.pm4j.core.pm.impl.options
Interface PmOptionSetDef<T_ATTR extends PmAttr<?>>

All Known Implementing Classes:
EnumOptionSetDef, EnumOptionSetDefWithOptionCfg, GenericOptionSetDef, OptionSetDefBase, OptionSetDefNoOption

public interface PmOptionSetDef<T_ATTR extends PmAttr<?>>

Interface for algorithms that provide attribute value options.

TODO olaf: document the implicit specification protocol: - default ctor - public static instance() method or INSTANCE field

Author:
olaf boede

Method Summary
 java.lang.String getNullOptionTitle(T_ATTR forAttr)
           
 PmOptionSet makeOptions(T_ATTR forAttr)
          Generates the options for the attribute.
 

Method Detail

makeOptions

PmOptionSet makeOptions(T_ATTR forAttr)
Generates the options for the attribute.

Parameters:
forAttr - The attribute to generate the options for.
Returns:
The options or null when the attribute does not support options at all.

getNullOptionTitle

java.lang.String getNullOptionTitle(T_ATTR forAttr)
Parameters:
forAttr - The attribute to generate the null-option title for.
Returns:
The title to display for the option that represents the null selection.