}
String action = null;
if (null != actionAttr) {
action = actionAttr.getAttributeValue();
}
Operation operation = new Operation();
operation.setName(nameAttr.getAttributeValue());
operation.setAction(action);
if (null != operationElement.getAttribute(ATT_CURRENCY)) {
operation.setCurrency(operationElement.getAttribute(ATT_CURRENCY)
.getAttributeValue());
}
OMElement inputsElement = operationElement
.getFirstChildWithName(Q_INPUTS);
OMElement outputsElement = operationElement
.getFirstChildWithName(Q_OUTPUTS);
if (null != inputsElement) {
operation.setInputs(createInputs(inputsElement));
}
if (null != outputsElement) {
operation.setOutputs(createOutputs(outputsElement));
}
return operation;
}