public static BeforeAfterType fromValue(String v) { for (BeforeAfterType c: BeforeAfterType.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((argument == null) ? 0 : argument.hashCode()); result = prime * result + (connectorHost ? 1231 : 1237); result = prime * result + ((criticality == null) ? 0 : criticality.hashCode()); result = prime * result + ((language == null) ? 0 : language.hashCode()); result = prime * result + (resourceHost ? 1231 : 1237); result = prime * result + ((scriptOrder == null) ? 0 : scriptOrder.hashCode()); result = prime * result + ((textCode == null) ? 0 : textCode.hashCode()); return result; }
/** * check additional operation order, according to the order are script * executed before or after operation.. */ private void checkAndExecuteAdditionalOperations(StateReporter reporter, Collection<Operation> additionalOperations, BeforeAfterType order, OperationResult result) throws CommunicationException, GenericFrameworkException { if (additionalOperations == null) { // TODO: add warning to the result return; } for (Operation op : additionalOperations) { if (op instanceof ExecuteProvisioningScriptOperation) { ExecuteProvisioningScriptOperation executeOp = (ExecuteProvisioningScriptOperation) op; LOGGER.trace("Find execute script operation: {}", SchemaDebugUtil.prettyPrint(executeOp)); // execute operation in the right order.. if (order.equals(executeOp.getScriptOrder())) { executeScriptIcf(reporter, executeOp, result); } } } }
public static BeforeAfterType fromValue(String v) { for (BeforeAfterType c: BeforeAfterType.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); }
public static BeforeAfterType fromValue(String v) { for (BeforeAfterType c: BeforeAfterType.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); }