org.dozer.propertydescriptor
Class SelfPropertyDescriptor

java.lang.Object
  extended by org.dozer.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.

Author:
garsombke.franz

Constructor Summary
SelfPropertyDescriptor(Class<?> self)
           
 
Method Summary
 Class<?> genericType()
          Determines generic parameter type
 Class<?> getPropertyType()
           
 Object getPropertyValue(Object bean)
           
 void setPropertyValue(Object bean, Object value, FieldMap fieldMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelfPropertyDescriptor

public SelfPropertyDescriptor(Class<?> self)
Method Detail

getPropertyType

public Class<?> getPropertyType()
                         throws MappingException
Specified by:
getPropertyType in interface DozerPropertyDescriptor
Throws:
MappingException

setPropertyValue

public void setPropertyValue(Object bean,
                             Object value,
                             FieldMap fieldMap)
                      throws MappingException
Specified by:
setPropertyValue in interface DozerPropertyDescriptor
Throws:
MappingException

genericType

public Class<?> genericType()
Description copied from interface: DozerPropertyDescriptor
Determines generic parameter type

Specified by:
genericType in interface DozerPropertyDescriptor
Returns:
For Type returns Parameter class.

getPropertyValue

public Object getPropertyValue(Object bean)
                        throws MappingException
Specified by:
getPropertyValue in interface DozerPropertyDescriptor
Throws:
MappingException


Copyright © 2005-2011 dozer. All Rights Reserved.