org.pm4j.core.pm.impl
Class PmAttrNumBase.MetaData

java.lang.Object
  extended by org.pm4j.core.pm.impl.PmObjectBase.MetaData
      extended by org.pm4j.core.pm.impl.PmAttrBase.MetaData
          extended by org.pm4j.core.pm.impl.PmAttrNumBase.MetaData
Direct Known Subclasses:
PmAttrBigDecimalImpl.MetaData, PmAttrDoubleImpl.MetaData, PmAttrIntegerImpl.MetaData, PmAttrLongImpl.MetaData, PmAttrShortImpl.MetaData
Enclosing class:
PmAttrNumBase<T extends java.lang.Number>

protected abstract static class PmAttrNumBase.MetaData
extends PmAttrBase.MetaData


Field Summary
 
Fields inherited from class org.pm4j.core.pm.impl.PmObjectBase.MetaData
NAME_PATH_DELIMITER, validationChangeEventMask
 
Constructor Summary
protected PmAttrNumBase.MetaData()
           
 
Method Summary
protected  int getMaxLenDefault()
          The default implementation calculates the number of digits required for the maximal value as provided by getMaxValue().
protected abstract  double getMaxValue()
           
 
Methods inherited from class org.pm4j.core.pm.impl.PmAttrBase.MetaData
getCacheStrategyForOptions, getCacheStrategyForValue, getConverter, getFormatResKey, getItemConverter, getMaxLen, getMinLen, getNullOption, getOptionSetDef, isRequired, setConverter, setConverterDefault, setFormatResKey, setItemConverter, setRequired
 
Methods inherited from class org.pm4j.core.pm.impl.PmObjectBase.MetaData
getName, getPmElementFactory, getPmTitleProvider, init, isReadOnly, setPmElementFactory, setPmTitleProvider, setReadOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PmAttrNumBase.MetaData

protected PmAttrNumBase.MetaData()
Method Detail

getMaxValue

protected abstract double getMaxValue()
Returns:
The configured maximum value limit.

getMaxLenDefault

protected int getMaxLenDefault()
The default implementation calculates the number of digits required for the maximal value as provided by getMaxValue().

Specified by:
getMaxLenDefault in class PmAttrBase.MetaData
Returns:
The maximal number of characters default.