Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.instance.model.impl
Class PseudoInstanceReference

java.lang.Object
  extended by eu.esdihumboldt.hale.common.instance.model.impl.PseudoInstanceReference
All Implemented Interfaces:
InstanceReference

public class PseudoInstanceReference
extends Object
implements InstanceReference

An instance reference that contains the instance. Two pseudo references are equal if the the contained instance object is the same.

Author:
Simon Templer

Constructor Summary
PseudoInstanceReference(Instance instance)
          Create a pseudo instance reference.
 
Method Summary
 boolean equals(Object obj)
           
 DataSet getDataSet()
          Get the data set the instance is associated to.
 Instance getInstance()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PseudoInstanceReference

public PseudoInstanceReference(Instance instance)
Create a pseudo instance reference.

Parameters:
instance - the instance
Method Detail

getDataSet

public DataSet getDataSet()
Description copied from interface: InstanceReference
Get the data set the instance is associated to.

Specified by:
getDataSet in interface InstanceReference
Returns:
the instance data set, null if not set
See Also:
InstanceReference.getDataSet()

getInstance

public Instance getInstance()
Returns:
the instance

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

Humboldt Alignment Editor 2.5.0

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