org.pm4j.core.pm.impl.options
Class OptionSetDefNoOption

java.lang.Object
  extended by org.pm4j.core.pm.impl.options.OptionSetDefNoOption
All Implemented Interfaces:
PmOptionSetDef<PmAttr<?>>

public class OptionSetDefNoOption
extends java.lang.Object
implements PmOptionSetDef<PmAttr<?>>

Default option set definition. Provides no options.

Author:
olaf boede

Field Summary
static PmOptionSetDef<PmAttr<?>> INSTANCE
          An instance that may be used as singleton.
 
Constructor Summary
OptionSetDefNoOption()
           
 
Method Summary
 java.lang.String getNullOptionTitle(PmAttr<?> forAttr)
           
 PmOptionSet makeOptions(PmAttr<?> forAttr)
          Generates the options for the attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final PmOptionSetDef<PmAttr<?>> INSTANCE
An instance that may be used as singleton.

Constructor Detail

OptionSetDefNoOption

public OptionSetDefNoOption()
Method Detail

makeOptions

public PmOptionSet makeOptions(PmAttr<?> forAttr)
Description copied from interface: PmOptionSetDef
Generates the options for the attribute.

Specified by:
makeOptions in interface PmOptionSetDef<PmAttr<?>>
Parameters:
forAttr - The attribute to generate the options for.
Returns:
The options or null when the attribute does not support options at all.

getNullOptionTitle

public java.lang.String getNullOptionTitle(PmAttr<?> forAttr)
Specified by:
getNullOptionTitle in interface PmOptionSetDef<PmAttr<?>>
Parameters:
forAttr - The attribute to generate the null-option title for.
Returns:
The title to display for the option that represents the null selection.