BATCH-1906: Add support to access an item's line number

Added an interface for items to become line number aware