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

java.lang.Object
  extended by org.pm4j.core.pm.impl.options.OptionSetDefBase<PmAttrBase<?,?>>
      extended by org.pm4j.core.pm.impl.options.GenericOptionSetDef
All Implemented Interfaces:
PmOptionSetDef<PmAttrBase<?,?>>

public class GenericOptionSetDef
extends OptionSetDefBase<PmAttrBase<?,?>>

An algorithms that provides options for attribute values based on the annotation PmOptionCfg.

Author:
olaf boede

Field Summary
 
Fields inherited from class org.pm4j.core.pm.impl.options.OptionSetDefBase
getOptionValuesMethod, idPath, nullOption, nullOptionTitleResKey, optionsPath, sortComparatorFactory, titlePath
 
Constructor Summary
GenericOptionSetDef(PmOptionCfg cfg, java.lang.reflect.Method getOptionValuesMethod)
           
 
Method Summary
protected  PmOption makeOption(PmAttrBase<?,?> forAttr, java.lang.Object o)
           
 
Methods inherited from class org.pm4j.core.pm.impl.options.OptionSetDefBase
getNullOptionTitle, getOptionValues, makeOptions, shouldMakeNullOption
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericOptionSetDef

public GenericOptionSetDef(PmOptionCfg cfg,
                           java.lang.reflect.Method getOptionValuesMethod)
Method Detail

makeOption

protected PmOption makeOption(PmAttrBase<?,?> forAttr,
                              java.lang.Object o)
Specified by:
makeOption in class OptionSetDefBase<PmAttrBase<?,?>>