Class ModelMappers


  • public class ModelMappers
    extends java.lang.Object
    Utility functions for mapping to/from API types to OpenNMS types
    • Constructor Detail

      • ModelMappers

        public ModelMappers()
    • Method Detail

      • toAlarm

        public static org.opennms.integration.api.v1.model.Alarm toAlarm​(OnmsAlarm alarm)
      • toEvent

        public static org.opennms.integration.api.v1.model.InMemoryEvent toEvent​(Event event)
      • toEvent

        public static Event toEvent​(org.opennms.integration.api.v1.model.InMemoryEvent event)
      • toEvent

        public static org.opennms.integration.api.v1.model.DatabaseEvent toEvent​(OnmsEvent event)
      • toNode

        public static org.opennms.integration.api.v1.model.Node toNode​(OnmsNode node)
      • toSnmpInterface

        public static org.opennms.integration.api.v1.model.SnmpInterface toSnmpInterface​(OnmsSnmpInterface snmpInterface)
      • toSeverity

        public static org.opennms.integration.api.v1.model.Severity toSeverity​(OnmsSeverity severity)
      • toFeedback

        public static org.opennms.integration.api.v1.model.AlarmFeedback toFeedback​(AlarmFeedback feedback)
      • fromFeedback

        public static AlarmFeedback fromFeedback​(org.opennms.integration.api.v1.model.AlarmFeedback feedback)
      • fromSeverity

        public static OnmsSeverity fromSeverity​(org.opennms.integration.api.v1.model.Severity severity)
      • toOnmsTopologyProtocol

        public static OnmsTopologyProtocol toOnmsTopologyProtocol​(org.opennms.integration.api.v1.model.TopologyProtocol protocol)
      • toTopologyProtocol

        public static org.opennms.integration.api.v1.model.TopologyProtocol toTopologyProtocol​(OnmsTopologyProtocol protocol)