Interface Mapper

All Known Implementing Classes:
DefaultOcsComputerMapper, DefaultOcsSnmpDevicesMapper, EchoMapper, NullMapper, ScriptMapper

public interface Mapper
A mapper to map information to a requisition. The data loaded by a source implementation are passed the the map function and a new requisition must be returned.
Author:
Dustin Frisch <fooker@lab.sh>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Factory interface for creating Mappers.
  • Method Summary

    Modifier and Type
    Method
    Description
    map(Object data, Requisition requisition)
    Maps information to a requisition.
  • Method Details

    • map

      Requisition map(Object data, Requisition requisition) throws Exception
      Maps information to a requisition. The passed data is the data returned by the source implementation.
      Parameters:
      data - the information used to create the requisition.
      requisition - Requisition already filled by a mapper, or an empty requisition.
      Returns:
      the mapped requisition
      Throws:
      Exception