org.oddjob.beancmpr.beans
Class SimpleResultBeanFactory

java.lang.Object
  extended by org.oddjob.beancmpr.beans.AbstractResultBeanFactory
      extended by org.oddjob.beancmpr.beans.SharedNameResultBeanFactory
          extended by org.oddjob.beancmpr.beans.SimpleResultBeanFactory
All Implemented Interfaces:
ResultBeanFactory

public class SimpleResultBeanFactory
extends SharedNameResultBeanFactory
implements ResultBeanFactory

Creates a very simple match result bean.

Author:
rob

Nested Class Summary
 
Nested classes/interfaces inherited from class org.oddjob.beancmpr.beans.SharedNameResultBeanFactory
SharedNameResultBeanFactory.AbstractResultBeanClassProvider
 
Nested classes/interfaces inherited from class org.oddjob.beancmpr.beans.AbstractResultBeanFactory
AbstractResultBeanFactory.ResultBeanClassProvider
 
Field Summary
 
Fields inherited from class org.oddjob.beancmpr.beans.SharedNameResultBeanFactory
COMPARISON_PROPERTY_SUFFIX, DEFAULT_X_PROPERTY_PREFIX, DEFAULT_Y_PROPERTY_PREFIX, MATCH_RESULT_TYPE_PROPERTY
 
Constructor Summary
SimpleResultBeanFactory(org.oddjob.arooa.reflect.PropertyAccessor accessor, String xPropertyPrefix, String yPropertyPrefix)
           
 
Method Summary
protected  AbstractResultBeanFactory.ResultBeanClassProvider getClassProvider()
           
protected  void populateComparison(Object resultBean, String property, Comparison<?> comparison)
           
protected  void populateKeyProperty(Object resultBean, String property, Object value)
           
protected  void populateMatchResultType(Object resultBean, MatchResultType matchResultType)
           
protected  void populateXProperty(Object resultBean, String property, Object value)
           
protected  void populateYProperty(Object resultBean, String property, Object value)
           
 
Methods inherited from class org.oddjob.beancmpr.beans.SharedNameResultBeanFactory
populateMatchResultType, xify, yify
 
Methods inherited from class org.oddjob.beancmpr.beans.AbstractResultBeanFactory
createComparisonResult, createXMissingResult, createYMissingResult, upperCaseFirstLetter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.oddjob.beancmpr.beans.ResultBeanFactory
createComparisonResult, createXMissingResult, createYMissingResult
 

Constructor Detail

SimpleResultBeanFactory

public SimpleResultBeanFactory(org.oddjob.arooa.reflect.PropertyAccessor accessor,
                               String xPropertyPrefix,
                               String yPropertyPrefix)
Method Detail

getClassProvider

protected AbstractResultBeanFactory.ResultBeanClassProvider getClassProvider()
Specified by:
getClassProvider in class AbstractResultBeanFactory

populateMatchResultType

protected void populateMatchResultType(Object resultBean,
                                       MatchResultType matchResultType)
Specified by:
populateMatchResultType in class SharedNameResultBeanFactory

populateKeyProperty

protected void populateKeyProperty(Object resultBean,
                                   String property,
                                   Object value)
Specified by:
populateKeyProperty in class AbstractResultBeanFactory

populateXProperty

protected void populateXProperty(Object resultBean,
                                 String property,
                                 Object value)
Specified by:
populateXProperty in class AbstractResultBeanFactory

populateYProperty

protected void populateYProperty(Object resultBean,
                                 String property,
                                 Object value)
Specified by:
populateYProperty in class AbstractResultBeanFactory

populateComparison

protected void populateComparison(Object resultBean,
                                  String property,
                                  Comparison<?> comparison)
Specified by:
populateComparison in class AbstractResultBeanFactory


Copyright © 2013. All Rights Reserved.