Package org.intermine.api.bag
Class ConvertedObjectPair
- java.lang.Object
-
- 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]]].- Author:
- Kim Rutherford
-
-
Constructor Summary
Constructors Constructor Description ConvertedObjectPair(InterMineObject oldObject, InterMineObject newObject)
Create a new ConvertedObjectPair.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InterMineObject
getNewObject()
Get the newObject that was passed to the constructor.InterMineObject
getOldObject()
Get the objObject that was passed to the constructor.
-
-
-
Constructor Detail
-
ConvertedObjectPair
public ConvertedObjectPair(InterMineObject oldObject, InterMineObject newObject)
Create a new ConvertedObjectPair.- Parameters:
oldObject
- the original objectnewObject
- 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.
-
-