/** * Determines if one of the Results in the this DispositionReport has a Error Code * that matches the errCodeKey passed in. The errCodeKey should be one * of the * * @param errCodeKey * @return true if the errCodeKey matches with a code in the Results. */ public boolean countainsErrorCode(final String errCodeKey) { boolean isKeyMatch = false; for (Result result : getResult()) { String errCode = result.getErrInfo().getErrCode(); if (errCodeKey.equals(errCode)) { isKeyMatch = true; break; } } return isKeyMatch; }
if (result.get(i).getErrInfo() != null) { x.setErrInfo(new ErrInfo()); x.getErrInfo().setErrCode(result.get(i).getErrInfo().getErrCode()); x.getErrInfo().setValue(result.get(i).getErrInfo().getValue());
x.getErrInfo().setErrCode(result.get(i).getErrInfo().getErrCode()); x.getErrInfo().setValue(result.get(i).getErrInfo().getValue()); r.add(x);