Class 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 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.