public class MixedAccessAdapter extends Object implements AspectAccessAdapter
Constructor and Description |
---|
MixedAccessAdapter(Class pSourceClass,
String pAspectName)
Creates a new adapter for a mixed map/reflection-based source.
|
MixedAccessAdapter(Class pSourceClass,
String pAspectName,
String pGetterPrefix,
String pSetterPrefix)
Creates a new adapter for a mixed map/reflection-based source.
|
MixedAccessAdapter(String pAspectName)
Creates a new adapter for a mixed map/reflection-based source.
|
MixedAccessAdapter(String pAspectName,
String pGetterPrefix,
String pSetterPrefix)
Creates a new adapter for a mixed map/reflection-based source.
|
public MixedAccessAdapter(String pAspectName)
pAspectName
- the aspect name, may be separated by AspectAdapter.SEPARATORpublic MixedAccessAdapter(Class pSourceClass, String pAspectName)
pSourceClass
- the class expected in the source, may be nullpAspectName
- the aspect name, may be separated by AspectAdapter.SEPARATORpublic MixedAccessAdapter(String pAspectName, String pGetterPrefix, String pSetterPrefix)
pAspectName
- the aspect name, may be separated by AspectAdapter.SEPARATORpGetterPrefix
- the prefix we use for the "getter", must not be null nor emptypSetterPrefix
- the prefix we use for the "getter", must not be null nor empty nor the getter prefixpublic MixedAccessAdapter(Class pSourceClass, String pAspectName, String pGetterPrefix, String pSetterPrefix)
pSourceClass
- the class expected in the source, may be nullpAspectName
- the aspect name, may be separated by AspectAdapter.SEPARATORpGetterPrefix
- the prefix we use for the "getter", must not be null nor emptypSetterPrefix
- the prefix we use for the "getter", must not be null nor empty nor the getter prefixpublic boolean isEditable()
isEditable
in interface AspectAccessAdapter
public Object getValue(Object pSource)
getValue
in interface AspectAccessAdapter
pSource
- the source, may be nullpublic void setValue(Object pSource, Object pValue)
setValue
in interface AspectAccessAdapter
pSource
- the source, never nullpValue
- the new value, may be nullCopyright © 2017 Jürgen Zeller (privat). All rights reserved.