Package org.opennms.pris.api
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
Modifier and TypeInterfaceDescriptionstatic interface
Factory interface for creating Mappers. -
Method Summary
Modifier and TypeMethodDescriptionmap
(Object data, Requisition requisition) Maps information to a requisition.
-
Method Details
-
map
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
-