/** * <p>setSpecific</p> * * @param specific a int. * @return a {@link org.opennms.netmgt.model.events.EventBuilder} object. */ public EventBuilder setSpecific(final int specific) { ensureSnmp(); m_event.getSnmp().setSpecific(specific); return this; }
/** * This method is used to transform an SNMP event configuration instance * into an SNMP event instance. This is used when the incoming event does * not have any SNMP information and the information from the configuration * object is copied. * * @param src * The configuration source to transform. * * @return The transformed SNMP information. * */ private org.opennms.netmgt.xml.event.Snmp transform(org.opennms.netmgt.xml.eventconf.Snmp src) { org.opennms.netmgt.xml.event.Snmp dest = new org.opennms.netmgt.xml.event.Snmp(); dest.setId(src.getId()); dest.setIdtext(src.getIdtext()); dest.setVersion(src.getVersion()); dest.setCommunity(src.getCommunity()); dest.setGeneric(src.getGeneric()); dest.setSpecific(src.getSpecific()); return dest; }
/** * This method is used to transform an SNMP event configuration instance * into an SNMP event instance. This is used when the incoming event does * not have any SNMP information and the information from the configuration * object is copied. * * @param src * The configuration source to transform. * * @return The transformed SNMP information. * */ private org.opennms.netmgt.xml.event.Snmp transform(org.opennms.netmgt.xml.eventconf.Snmp src) { org.opennms.netmgt.xml.event.Snmp dest = new org.opennms.netmgt.xml.event.Snmp(); dest.setId(src.getId()); dest.setIdtext(src.getIdtext()); dest.setVersion(src.getVersion()); dest.setCommunity(src.getCommunity()); dest.setGeneric(src.getGeneric()); dest.setSpecific(src.getSpecific()); return dest; }