protected void checkValidity(Xpdl xpdl) { super.checkValidity(xpdl); int nr = (startEvent != null ? 1 : 0) + (intermediateEvent != null ? 1 : 0) + (endEvent != null ? 1 : 0); if (nr > 1) { xpdl.log(tag, lineNumber, "Expected only one type of event"); } }
protected void checkValidity(Xpdl xpdl) { super.checkValidity(xpdl); checkRequired(xpdl, "TransactionId", transactionId); checkRequired(xpdl, "TransactionProtocol", transactionProtocol); checkRestriction( xpdl, "TransactionMethod", transactionMethod, Arrays.asList("Compensate", "Store", "Image"), true); }