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); }
protected void importAttributes(XmlPullParser xpp, Xpdl xpdl) { super.importAttributes(xpp, xpdl); String value = xpp.getAttributeValue(null, "TransactionId"); if (value != null) { transactionId = value; } value = xpp.getAttributeValue(null, "TransactionProtocol"); if (value != null) { transactionProtocol = value; } value = xpp.getAttributeValue(null, "TransactionMethod"); if (value != null) { transactionMethod = value; } }