BindingInput bindingInput = bindingOperation.getEBindingInput();
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());
/******************************************************
* Compare the Input
******************************************************/
if (input == null)
{
bindingOperation.setBindingInput(null);
}
else
{
// Create BindingInput if necessary
if (bindingInput == null)
{
BindingInput newBindingInput = factory.createBindingInput();
newBindingInput.setEInput(input);
newBindingInput.setName(input.getName());
bindingOperation.setBindingInput(newBindingInput);
}
else
{
// Compare the Input names
if (!namesEqual(bindingInput.getName(), input.getName()))
{
bindingInput.setName(input.getName());
}
}
}
generateBindingInputContent(bindingOperation.getEBindingInput());