org.oddjob.beancmpr
Class SimpleMatchDefinition

java.lang.Object
  extended by org.oddjob.beancmpr.SimpleMatchDefinition
All Implemented Interfaces:
MatchDefinition

public class SimpleMatchDefinition
extends Object
implements MatchDefinition

Simple definition of an MatchDefinition.

Author:
rob

Constructor Summary
SimpleMatchDefinition(String[] keys, String[] values, String[] others)
          Constructor.
 
Method Summary
 Iterable<String> getKeyProperties()
          The key property names.
 Iterable<String> getOtherProperties()
          Other properties that wont be used in the match, but which might be required for information on results.
 Iterable<String> getValueProperties()
          The names of the properties of the values that will be compared.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMatchDefinition

public SimpleMatchDefinition(String[] keys,
                             String[] values,
                             String[] others)
Constructor.

Parameters:
keys - Array of key property names. May be null.
values - Array of value property names. May be null.
others - Array of other property names. May be null.
Method Detail

getKeyProperties

public Iterable<String> getKeyProperties()
Description copied from interface: MatchDefinition
The key property names. These properties decide if two things can be compared.

Specified by:
getKeyProperties in interface MatchDefinition
Returns:
The names of the key properties.

getValueProperties

public Iterable<String> getValueProperties()
Description copied from interface: MatchDefinition
The names of the properties of the values that will be compared.

Specified by:
getValueProperties in interface MatchDefinition
Returns:
The names of the properties for comparison.

getOtherProperties

public Iterable<String> getOtherProperties()
Description copied from interface: MatchDefinition
Other properties that wont be used in the match, but which might be required for information on results. Inserted time, or Operator Id for instance.

Specified by:
getOtherProperties in interface MatchDefinition
Returns:
The names of other properties.


Copyright © 2013. All Rights Reserved.