/** * This get returns the x733ProbableCause matching the requested label. * <p>If a null string is passed, x733ProbablCause.other is returned.</p> * * @param label the label * @return the x733 alarm type */ public static x733AlarmType get(final String label) { x733AlarmType cause = other; if (label == null) { return cause; } for (final Integer key : m_idMap.keySet()) { if (m_idMap.get(key).getLabel().equalsIgnoreCase(label)) { cause = m_idMap.get(key); } } return cause; }
/** * This get returns the x733ProbableCause matching the requested label. * <p>If a null string is passed, x733ProbablCause.other is returned.</p> * * @param label the label * @return the x733 alarm type */ public static x733AlarmType get(final String label) { x733AlarmType cause = other; if (label == null) { return cause; } for (final Integer key : m_idMap.keySet()) { if (m_idMap.get(key).getLabel().equalsIgnoreCase(label)) { cause = m_idMap.get(key); } } return cause; }