BindingOutput bindingOutput = bindingOperation.getEBindingOutput();
List bindingFaults = bindingOperation.getEBindingFaults();
Operation operation = bindingOperation.getEOperation();
Input input = operation.getEInput();
Output output = operation.getEOutput();
List faults = operation.getEFaults();
/******************************************************
* Compare the Operation names
******************************************************/
if (!namesEqual(bindingOperation.getName(), operation.getName()))
{
bindingOperation.setName(operation.getName());
}
/******************************************************
* Compare the Output
******************************************************/
if (output == null)
{
bindingOperation.setBindingOutput(null);
}
else
{
// Create BindingOutput if necessary
if (bindingOutput == null)
{
BindingOutput newBindingOutput = factory.createBindingOutput();
newBindingOutput.setEOutput(output);
newBindingOutput.setName(output.getName());
bindingOperation.setBindingOutput(newBindingOutput);
}
else
{
// Compare the Output names
if (!namesEqual(bindingOutput.getName(), output.getName()))
{
bindingOutput.setName(output.getName());
}
}
}
generateBindingOutputContent(bindingOperation.getEBindingOutput());