@Override public Boolean preCheckAction(ActionInstanceDetails actionDetails, MALInteraction interaction) throws MALInteractionException, MALException { UIntegerList invIndexList = new UIntegerList(); // requirement: 3.2.10.3.2 if (!manager.existsDef(actionDetails.getDefInstId())) { throw new MALInteractionException(new MALStandardError(MALHelper.UNKNOWN_ERROR_NUMBER, null)); } // requirement: 3.2.10.2.a, 3.2.10.2.b //TODO: check the checkActionInstanceDetails-mehod after spec-update -> issue #99 boolean accepted = manager.checkActionInstanceDetails(actionDetails, invIndexList); // Errors if (!invIndexList.isEmpty()) { // requirement: 3.2.10.3.1 throw new MALInteractionException(new MALStandardError(COMHelper.INVALID_ERROR_NUMBER, invIndexList)); } return accepted; }
if (!unkIndexList.isEmpty()) // requirement: 3.2.11.3.1 (error: a and b)
if (!unkIndexList.isEmpty()) // requirement: 3.4.9.3.1 (error: a and b)
if (!unkIndexList.isEmpty()) // requirement: 3.7.11.3.1
if (!invIndexList.isEmpty()) { // requirement: 3.4.11.3.1 throw new MALInteractionException(new MALStandardError(COMHelper.INVALID_ERROR_NUMBER, invIndexList)); if (!unkIndexList.isEmpty()) { // requirement: 3.4.11.3.2 throw new MALInteractionException(new MALStandardError(MALHelper.UNKNOWN_ERROR_NUMBER, unkIndexList));
if (!invIndexList.isEmpty()) { // requirement: 3.2.13.2.1 (error: a) throw new MALInteractionException(new MALStandardError(COMHelper.INVALID_ERROR_NUMBER, invIndexList)); if (!unkIndexList.isEmpty()) { // requirement: 3.2.13.2.2 (error: b) throw new MALInteractionException(new MALStandardError(MALHelper.UNKNOWN_ERROR_NUMBER, unkIndexList));
if (!unkIndexList.isEmpty()) { // requirement: 3.4.12.3.1 throw new MALInteractionException(new MALStandardError(MALHelper.UNKNOWN_ERROR_NUMBER, unkIndexList));
if (!unkIndexList.isEmpty()) { // requirement: 3.2.14.3.1 (error: a, b) throw new MALInteractionException(new MALStandardError(MALHelper.UNKNOWN_ERROR_NUMBER, unkIndexList));
if (!unkIndexList.isEmpty()) { // requirement: 3.6.15.3 (error: a, b) throw new MALInteractionException(new MALStandardError(MALHelper.UNKNOWN_ERROR_NUMBER, unkIndexList));
if (!unkIndexList.isEmpty()) // requirement: 3.3.14.3.1 (error: a, b)
if (!unkIndexList.isEmpty()) // requirement: 3.3.14.3.1 (error: a, b)
if (!unkIndexList.isEmpty()) { throw new MALInteractionException(new MALStandardError(MALHelper.UNKNOWN_ERROR_NUMBER, unkIndexList));
if (!unkIndexList.isEmpty()) { // requirement: 3.7.8.3.1 a, b throw new MALInteractionException(new MALStandardError(MALHelper.UNKNOWN_ERROR_NUMBER, unkIndexList));
if (!unkIndexList.isEmpty()) { // requirement: 3.4.8.3 (error: a) throw new MALInteractionException(new MALStandardError(MALHelper.UNKNOWN_ERROR_NUMBER, unkIndexList)); if (!invIndexList.isEmpty()) { // requirement: 3.4.8.3 (error: b) throw new MALInteractionException(new MALStandardError(COMHelper.INVALID_ERROR_NUMBER, invIndexList));
if (!unkIndexList.isEmpty()) { // requirement: 3.5.19.3.1 (error: a, b) throw new MALInteractionException(new MALStandardError(MALHelper.UNKNOWN_ERROR_NUMBER, unkIndexList));
if (!unkIndexList.isEmpty()) // requirement: 3.6.13.3.1 (error: a and b)
if (!unkIndexList.isEmpty()) { //requirement: 3.5.9.3.1 interaction.sendError(new MALStandardError(MALHelper.UNKNOWN_ERROR_NUMBER, unkIndexList)); return;