org.pm4j.core.pm.impl
Class PmAttrImpl<T_VALUE>

java.lang.Object
  extended by org.pm4j.core.pm.impl.PmObjectBase
      extended by org.pm4j.core.pm.impl.PmAttrBase<T_VALUE,T_VALUE>
          extended by org.pm4j.core.pm.impl.PmAttrImpl<T_VALUE>
Type Parameters:
T_VALUE - The value type to support.
All Implemented Interfaces:
java.lang.Comparable<PmObject>, PmAttr<T_VALUE>, PmDataInput, PmObject

public class PmAttrImpl<T_VALUE>
extends PmAttrBase<T_VALUE,T_VALUE>

Base implementation for user type attributes.

Author:
olaf boede

Nested Class Summary
protected static class PmAttrImpl.MetaData
           
 
Nested classes/interfaces inherited from class org.pm4j.core.pm.impl.PmObjectBase
PmObjectBase.NameBuilder, PmObjectBase.NameBuilderAbsoluteName, PmObjectBase.NameBuilderShortName, PmObjectBase.NameBuilderTitle
 
Nested classes/interfaces inherited from interface org.pm4j.core.pm.PmAttr
PmAttr.Converter<T>
 
Field Summary
 
Fields inherited from class org.pm4j.core.pm.impl.PmObjectBase
pmCacheLog
 
Fields inherited from interface org.pm4j.core.pm.PmObject
STYLE_CLASS_DISABLED, STYLE_CLASS_ERROR, STYLE_CLASS_INFO, STYLE_CLASS_REQUIRED, STYLE_CLASS_WARN
 
Constructor Summary
PmAttrImpl(PmObject pmParent)
           
 
Method Summary
 boolean isSupportingAsStringValues()
          Defaults to true.
protected  PmObjectBase.MetaData makeMetaData()
          It's abstract because specific attribute types have to create their specific meta data.
 
Methods inherited from class org.pm4j.core.pm.impl.PmAttrBase
accept, clearCachedPmValues, clearPmInvalidValues, commitBufferedPmChanges, compareTo, convertBackingValueToPmValue, convertPmValueToBackingValue, equalValues, getBackingValue, getBackingValueImpl, getConverter, getDefaultValue, getDefaultValueImpl, getFormatDefaultResKey, getFormatString, getMaxLen, getMinLen, getNullOptionDefault, getOptionSet, getOptionSetImpl, getOptionValues, getPmParentElement, getPmStyleClassesImpl, getUncachedValidValue, getValue, getValueAsString, getValueImpl, getValueLocalized, initMetaData, initMetaDataBeanConstraint, isBufferedPmValueMode, isEmptyValue, isPmEnabledImpl, isPmReadonlyImpl, isPmValueChanged, isPmVisibleImpl, isRequired, isValidatingOnSetPmValue, makeOptionSetDef, pmValidate, resetPmValues, rollbackBufferedPmChanges, setBackingValue, setBackingValueImpl, setPmValueChanged, setValue, setValueAsString, setValueImpl, validate
 
Methods inherited from class org.pm4j.core.pm.impl.PmObjectBase
addToPmComposite, canSetPmTitle, ensurePmMetaDataInitialization, findAnnotationsInPmHierarchy, getPmConversation, getPmConversationImpl, getPmIconPath, getPmMetaData, getPmMetaDataWithoutPmInitCall, getPmName, getPmParent, getPmProperty, getPmRelativeName, getPmResKey, getPmResKeyBase, getPmResLoaderCtxtClasses, getPmShortTitle, getPmStyleClasses, getPmTitle, getPmTitleDef, getPmTitleImpl, getPmTooltip, getPmTooltipImpl, getVisiblePmCommands, getVisiblePmCommands, isMetaDataInitialized, isPmEnabled, isPmReadonly, isPmValid, isPmVisible, onPmChildStateChange, onPmInit, onPmValueChange, readCacheStrategy, removePmChild, setPmEnabled, setPmParent, setPmProperty, setPmTitle, setPmVisible, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.pm4j.core.pm.PmObject
canSetPmTitle, getPmConversation, getPmIconPath, getPmName, getPmParent, getPmProperty, getPmRelativeName, getPmShortTitle, getPmStyleClasses, getPmTitle, getPmTooltip, isPmEnabled, isPmReadonly, isPmValid, isPmVisible, setPmEnabled, setPmParent, setPmProperty, setPmTitle, setPmVisible
 

Constructor Detail

PmAttrImpl

public PmAttrImpl(PmObject pmParent)
Method Detail

isSupportingAsStringValues

public boolean isSupportingAsStringValues()
Description copied from class: PmAttrBase
Defaults to true.

Subclasses that don't implement the 'toString' methods should return false.

Overrides:
isSupportingAsStringValues in class PmAttrBase<T_VALUE,T_VALUE>
Returns:
true when the 'asString' operations are supported.

makeMetaData

protected PmObjectBase.MetaData makeMetaData()
Description copied from class: PmAttrBase
It's abstract because specific attribute types have to create their specific meta data.

Specified by:
makeMetaData in class PmAttrBase<T_VALUE,T_VALUE>
Returns:
A static data container for this presentation model.