org.oddjob.beancmpr.matchables
Class SimpleMatchableMeta

java.lang.Object
  extended by org.oddjob.beancmpr.matchables.SimpleMatchableMeta
All Implemented Interfaces:
MatchableMetaData, MatchDefinition

public class SimpleMatchableMeta
extends Object
implements MatchableMetaData

A simple implementation of MatchableMetaData.

Author:
rob

Constructor Summary
SimpleMatchableMeta(MatchDefinition definition, Map<String,Class<?>> types)
           
 
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.
 Class<?> getPropertyType(String name)
          Get the property type for a given property name.
 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

SimpleMatchableMeta

public SimpleMatchableMeta(MatchDefinition definition,
                           Map<String,Class<?>> types)
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.

getPropertyType

public Class<?> getPropertyType(String name)
Description copied from interface: MatchableMetaData
Get the property type for a given property name.

Specified by:
getPropertyType in interface MatchableMetaData
Parameters:
name - The name of the property.
Returns:
The type. Must not be null if the property exists.


Copyright © 2013. All Rights Reserved.