Class SelfPropertyDescriptor
- java.lang.Object
-
- com.github.dozermapper.core.propertydescriptor.SelfPropertyDescriptor
-
- All Implemented Interfaces:
DozerPropertyDescriptor
public class SelfPropertyDescriptor extends Object implements DozerPropertyDescriptor
Internal class used for copy by reference mappings. Only intended for internal use.
-
-
Constructor Summary
Constructors Constructor Description SelfPropertyDescriptor(Class<?> self)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>genericType()Determines generic parameter typeClass<?>getPropertyType()ObjectgetPropertyValue(Object bean)voidsetPropertyValue(Object bean, Object value, FieldMap fieldMap)
-
-
-
Constructor Detail
-
SelfPropertyDescriptor
public SelfPropertyDescriptor(Class<?> self)
-
-
Method Detail
-
getPropertyType
public Class<?> getPropertyType() throws MappingException
- Specified by:
getPropertyTypein interfaceDozerPropertyDescriptor- Throws:
MappingException
-
setPropertyValue
public void setPropertyValue(Object bean, Object value, FieldMap fieldMap) throws MappingException
- Specified by:
setPropertyValuein interfaceDozerPropertyDescriptor- Throws:
MappingException
-
genericType
public Class<?> genericType()
Description copied from interface:DozerPropertyDescriptorDetermines generic parameter type- Specified by:
genericTypein interfaceDozerPropertyDescriptor- Returns:
- For Type returns Parameter class, should return null if can't determine type
-
getPropertyValue
public Object getPropertyValue(Object bean) throws MappingException
- Specified by:
getPropertyValuein interfaceDozerPropertyDescriptor- Throws:
MappingException
-
-