org.intermine.api.bag
Class ConvertedObjectPair

java.lang.Object
  extended by org.intermine.api.bag.ConvertedObjectPair

public class ConvertedObjectPair
extends java.lang.Object

A class to represent the mapping between an object before type conversion and the converted object. This is returned when the key of the Map returned by getIssues() is TYPE_CONVERTED. ie. getIssues() returns ["TYPE_CONVERTED" -> ["some message" -> ["input string" -> List of ConvertedObjectPair objects]]].


Constructor Summary
ConvertedObjectPair(InterMineObject oldObject, InterMineObject newObject)
          Create a new ConvertedObjectPair.
 
Method Summary
 InterMineObject getNewObject()
          Get the newObject that was passed to the constructor.
 InterMineObject getOldObject()
          Get the objObject that was passed to the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertedObjectPair

public ConvertedObjectPair(InterMineObject oldObject,
                           InterMineObject newObject)
Create a new ConvertedObjectPair.

Parameters:
oldObject - the original object
newObject - the object found by the TypeConverter class
Method Detail

getNewObject

public InterMineObject getNewObject()
Get the newObject that was passed to the constructor.

Returns:
the newObject that was passed to the constructor.

getOldObject

public InterMineObject getOldObject()
Get the objObject that was passed to the constructor.

Returns:
the objObject that was passed to the constructor.