/** * This get returns the x733ProbableCause matching the requested label. If * a null string is passed, x733ProbablCause.other is returned. * * @param label the label * @return the x733 probable cause */ public static x733ProbableCause get(final String label) { x733ProbableCause 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; }
mapping.put("x733ProbableCause", nullSafeToString(x733ProbableCause.get(alarm.getX733Cause()), defaultMapping)); } catch (Exception e) { LOG.info("Exception caught setting X733 Cause: {}", alarm.getX733Cause(), e);
mapping.put("x733ProbableCause", nullSafeToString(x733ProbableCause.get(alarm.getX733Cause()), defaultMapping)); } catch (Exception e) { LOG.info("Exception caught setting X733 Cause: {}", alarm.getX733Cause(), e);
/** * This get returns the x733ProbableCause matching the requested label. If * a null string is passed, x733ProbablCause.other is returned. * * @param label the label * @return the x733 probable cause */ public static x733ProbableCause get(final String label) { x733ProbableCause 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; }