@Override public double getRawScore(final String goalName) { final Element subEle = SubjectiveUtils.getSubscoreElement(_scoreEle, goalName); if (null == subEle) { return Double.NaN; } else { final String value = subEle.getAttribute("value"); if (value.isEmpty()) { return Double.NaN; } try { return Utilities.NUMBER_FORMAT_INSTANCE.parse(value).doubleValue(); } catch (final ParseException pe) { throw new RuntimeException(pe); } } }
@Override public String getEnumRawScore(final String goalName) { if (!scoreExists()) { return null; } else { final Element subEle = SubjectiveUtils.getSubscoreElement(_scoreEle, goalName); if (null == subEle) { return null; } else { final String value = subEle.getAttribute("value"); if (value.isEmpty()) { return null; } else { return value; } } } }