@Override public boolean equals(final Object obj) { if (this == obj) return true; if (obj == null) return false; if (!(obj instanceof Operaction)) return false; final Operaction other = (Operaction) obj; if (m_content == null) { if (other.m_content != null) return false; } else if (!m_content.equals(other.m_content)) { return false; } if (m_menutext == null) { if (other.m_menutext != null) return false; } else if (!m_menutext.equals(other.m_menutext)) { return false; } if (m_state == null) { if (other.m_state != null) return false; } else if (!m_state.equals(other.m_state)) { return false; } return true; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((m_content == null) ? 0 : m_content.hashCode()); result = prime * result + ((m_menutext == null) ? 0 : m_menutext.hashCode()); result = prime * result + ((m_state == null) ? 0 : m_state.hashCode()); return result; }
@Override public String toString() { return this.name().toLowerCase(); } }
/** * This method is used to transform an auto action event configuration * instance into an auto action event instance. This is used when the * incoming event does not have any auto action information and the * information from the configuration object is copied. * * @param src * The configuration source to transform. * * @return The transformed auto action information. * */ private org.opennms.netmgt.xml.event.Autoaction transform(org.opennms.netmgt.xml.eventconf.Autoaction src) { org.opennms.netmgt.xml.event.Autoaction dest = new org.opennms.netmgt.xml.event.Autoaction(); dest.setContent(src.getContent()); dest.setState(src.getState().toString()); return dest; }
/** * This method is used to transform a trouble ticket event configuration * instance into a trouble ticket event instance. This is used when the * incoming event does not have any trouble ticket information and the * information from the configuration object is copied. * * @param src * The configuration source to transform. * * @return The transformed trouble ticket information. * */ private org.opennms.netmgt.xml.event.Tticket transform(org.opennms.netmgt.xml.eventconf.Tticket src) { org.opennms.netmgt.xml.event.Tticket dest = new org.opennms.netmgt.xml.event.Tticket(); dest.setContent(src.getContent()); dest.setState(src.getState().toString()); return dest; }
/** * This method is used to transform an auto acknowledgement event * configuration instance into an auto acknowledgement event instance. This * is used when the incoming event does not have any auto acknowledgement * information and the information from the configuration object is copied. * * @param src * The configuration source to transform. * * @return The transformed auto acknowledgement information. * */ private org.opennms.netmgt.xml.event.Autoacknowledge transform(org.opennms.netmgt.xml.eventconf.Autoacknowledge src) { org.opennms.netmgt.xml.event.Autoacknowledge dest = new org.opennms.netmgt.xml.event.Autoacknowledge(); dest.setContent(src.getContent()); dest.setState(src.getState().toString()); return dest; }
/** * This method is used to transform an auto acknowledgement event * configuration instance into an auto acknowledgement event instance. This * is used when the incoming event does not have any auto acknowledgement * information and the information from the configuration object is copied. * * @param src * The configuration source to transform. * * @return The transformed auto acknowledgement information. * */ private org.opennms.netmgt.xml.event.Autoacknowledge transform(org.opennms.netmgt.xml.eventconf.Autoacknowledge src) { org.opennms.netmgt.xml.event.Autoacknowledge dest = new org.opennms.netmgt.xml.event.Autoacknowledge(); dest.setContent(src.getContent()); dest.setState(src.getState().toString()); return dest; }
/** * This method is used to transform an auto action event configuration * instance into an auto action event instance. This is used when the * incoming event does not have any auto action information and the * information from the configuration object is copied. * * @param src * The configuration source to transform. * * @return The transformed auto action information. * */ private org.opennms.netmgt.xml.event.Autoaction transform(org.opennms.netmgt.xml.eventconf.Autoaction src) { org.opennms.netmgt.xml.event.Autoaction dest = new org.opennms.netmgt.xml.event.Autoaction(); dest.setContent(src.getContent()); dest.setState(src.getState().toString()); return dest; }
/** * This method is used to transform a trouble ticket event configuration * instance into a trouble ticket event instance. This is used when the * incoming event does not have any trouble ticket information and the * information from the configuration object is copied. * * @param src * The configuration source to transform. * * @return The transformed trouble ticket information. * */ private org.opennms.netmgt.xml.event.Tticket transform(org.opennms.netmgt.xml.eventconf.Tticket src) { org.opennms.netmgt.xml.event.Tticket dest = new org.opennms.netmgt.xml.event.Tticket(); dest.setContent(src.getContent()); dest.setState(src.getState().toString()); return dest; }
/** * This method is used to transform an operator action event configuration * instance into an operator action event instance. This is used when the * incoming event does not have any operator action information and the * information from the configuration object is copied. * * @param src * The configuration source to transform. * * @return The transformed operator action information. * */ private org.opennms.netmgt.xml.event.Operaction transform(org.opennms.netmgt.xml.eventconf.Operaction src) { org.opennms.netmgt.xml.event.Operaction dest = new org.opennms.netmgt.xml.event.Operaction(); dest.setContent(src.getContent()); dest.setState(src.getState().toString()); dest.setMenutext(src.getMenutext()); return dest; }
/** * This method is used to transform an operator action event configuration * instance into an operator action event instance. This is used when the * incoming event does not have any operator action information and the * information from the configuration object is copied. * * @param src * The configuration source to transform. * * @return The transformed operator action information. * */ private org.opennms.netmgt.xml.event.Operaction transform(org.opennms.netmgt.xml.eventconf.Operaction src) { org.opennms.netmgt.xml.event.Operaction dest = new org.opennms.netmgt.xml.event.Operaction(); dest.setContent(src.getContent()); dest.setState(src.getState().toString()); dest.setMenutext(src.getMenutext()); return dest; }
/** * This method is used to transform a forward event configuration instance * into a forward event instance. This is used when the incoming event does * not have any forward information and the information from the * configuration object is copied. * * @param src * The configuration source to transform. * * @return The transformed forward information. * */ private org.opennms.netmgt.xml.event.Forward transform(org.opennms.netmgt.xml.eventconf.Forward src) { org.opennms.netmgt.xml.event.Forward dest = new org.opennms.netmgt.xml.event.Forward(); dest.setContent(src.getContent()); dest.setState(src.getState().toString()); dest.setMechanism(src.getMechanism().toString()); return dest; }
/** * This method is used to transform a forward event configuration instance * into a forward event instance. This is used when the incoming event does * not have any forward information and the information from the * configuration object is copied. * * @param src * The configuration source to transform. * * @return The transformed forward information. * */ private org.opennms.netmgt.xml.event.Forward transform(org.opennms.netmgt.xml.eventconf.Forward src) { org.opennms.netmgt.xml.event.Forward dest = new org.opennms.netmgt.xml.event.Forward(); dest.setContent(src.getContent()); dest.setState(src.getState().toString()); dest.setMechanism(src.getMechanism().toString()); return dest; }
/** * This method is used to transform a correlation event configuration * instance into a correlation event instance. This is used when the * incoming event does not have any correlation information and the * information from the configuration object is copied. * * @param src * The configuration source to transform. * * @return The transformed correlation information. * */ private org.opennms.netmgt.xml.event.Correlation transform(org.opennms.netmgt.xml.eventconf.Correlation src) { org.opennms.netmgt.xml.event.Correlation dest = new org.opennms.netmgt.xml.event.Correlation(); dest.setCuei(src.getCueis()); dest.setCmin(src.getCmin()); dest.setCmax(src.getCmax()); dest.setCtime(src.getCtime()); dest.setState(src.getState().toString()); dest.setPath(src.getPath().toString()); return dest; }
/** * This method is used to transform a correlation event configuration * instance into a correlation event instance. This is used when the * incoming event does not have any correlation information and the * information from the configuration object is copied. * * @param src * The configuration source to transform. * * @return The transformed correlation information. * */ private org.opennms.netmgt.xml.event.Correlation transform(org.opennms.netmgt.xml.eventconf.Correlation src) { org.opennms.netmgt.xml.event.Correlation dest = new org.opennms.netmgt.xml.event.Correlation(); dest.setCuei(src.getCueis()); dest.setCmin(src.getCmin()); dest.setCmax(src.getCmax()); dest.setCtime(src.getCtime()); dest.setState(src.getState().toString()); dest.setPath(src.getPath().toString()); return dest; }