Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.functions.groovy
Class InstanceTestValues

java.lang.Object
  extended by eu.esdihumboldt.hale.ui.functions.groovy.InstanceTestValues
All Implemented Interfaces:
TestValues

public class InstanceTestValues
extends Object
implements TestValues

TODO Type description

Author:
Simon Templer

Constructor Summary
InstanceTestValues()
           
 
Method Summary
protected  Object extractValue(Instance instance, PropertyEntityDefinition property)
          Extract the value represented by the given property from the given instance.
 Object get(PropertyEntityDefinition property)
          Get a test value for the given property.
protected  Object getDefaultValue(PropertyEntityDefinition property)
          Get a default test value for the given property.
protected  Instance getInstance(PropertyEntityDefinition property)
          Get an instance that may hold a value for the given property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceTestValues

public InstanceTestValues()
Method Detail

get

public Object get(PropertyEntityDefinition property)
Description copied from interface: TestValues
Get a test value for the given property.

Specified by:
get in interface TestValues
Parameters:
property - the property
Returns:
the test value
See Also:
TestValues.get(PropertyEntityDefinition)

extractValue

protected Object extractValue(Instance instance,
                              PropertyEntityDefinition property)
Extract the value represented by the given property from the given instance.

Parameters:
instance - the instance
property - the property
Returns:
the first property value in the instance, or null

getDefaultValue

protected Object getDefaultValue(PropertyEntityDefinition property)
Get a default test value for the given property.

Parameters:
property - the property
Returns:
the test value

getInstance

protected Instance getInstance(PropertyEntityDefinition property)
Get an instance that may hold a value for the given property.

Parameters:
property - the property
Returns:
an instance or null

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d