de.danielbechler.diff.accessor
Class PropertyAccessor

java.lang.Object
  extended by de.danielbechler.diff.accessor.AbstractAccessor
      extended by de.danielbechler.diff.accessor.PropertyAccessor
All Implemented Interfaces:
Accessor, PropertyDescriptor, TypeAwareAccessor

public final class PropertyAccessor
extends AbstractAccessor
implements TypeAwareAccessor

Author:
Daniel Bechler

Constructor Summary
PropertyAccessor(String propertyName, Method readMethod, Method writeMethod)
           
 
Method Summary
 Object get(Object target)
           
 Element getPathElement()
           
 String getPropertyName()
           
 Class<?> getType()
           
 void set(Object target, Object value)
           
 String toString()
           
 void unset(Object target)
           
 
Methods inherited from class de.danielbechler.diff.accessor.AbstractAccessor
getCategories, isEqualsOnly, isIgnored, setCategories, setEqualsOnly, setIgnored
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.danielbechler.diff.accessor.PropertyDescriptor
getCategories, isEqualsOnly, isIgnored
 

Constructor Detail

PropertyAccessor

public PropertyAccessor(String propertyName,
                        Method readMethod,
                        Method writeMethod)
Method Detail

set

public void set(Object target,
                Object value)
Specified by:
set in interface Accessor

get

public Object get(Object target)
Specified by:
get in interface Accessor

unset

public void unset(Object target)
Specified by:
unset in interface Accessor

getType

public Class<?> getType()
Specified by:
getType in interface TypeAwareAccessor

getPropertyName

public String getPropertyName()

getPathElement

public Element getPathElement()
Specified by:
getPathElement in interface PropertyDescriptor

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.