private List<Operation> equivalentSyncOperations() { if( syncOperations != null ) return syncOperations; List<Operation> allOperations = super.getOperations(); syncOperations = new ArrayList<Operation>(); for( Operation operation: allOperations) { syncOperations.add( getSyncFormOfOperation( (JavaOperation) operation ) ); // Store the actual async operations under the attribute "ASYNC-SERVER-OPERATIONS" this.getAttributes().put("ASYNC-SERVER-OPERATIONS", allOperations); } // end for return syncOperations; } // end method equivalentSyncOperations
private List<Operation> equivalentSyncOperations() { if( syncOperations != null ) return syncOperations; List<Operation> allOperations = super.getOperations(); syncOperations = new ArrayList<Operation>(); for( Operation operation: allOperations) { syncOperations.add( getSyncFormOfOperation( (JavaOperation) operation ) ); // Store the actual async operations under the attribute "ASYNC-SERVER-OPERATIONS" this.getAttributes().put("ASYNC-SERVER-OPERATIONS", allOperations); } // end for return syncOperations; } // end method equivalentSyncOperations
public List<Operation> getOperations() { if( !isUnresolved() && isAsyncServer() ) { return equivalentSyncOperations(); } else { return super.getOperations(); } } // end method getOperations
public List<Operation> getOperations() { if( !isUnresolved() && isAsyncServer() ) { return equivalentSyncOperations(); } else { return super.getOperations(); } } // end method getOperations
public void resetInterfaceInputTypes(Interface newInterface){ for (int i = 0; i < getOperations().size(); i++) { // only remote interfaces have a data type model defined // and in this case operations cannot be overloaded so match // operations by name Operation oldOperation = getOperations().get(i); Operation newOperation = null; for (Operation tmpOperation : newInterface.getOperations()){ if (tmpOperation.getName().equals(oldOperation.getName())){ newOperation = tmpOperation; } } if (newOperation == null){ break; } // set input types oldOperation.setInputType(newOperation.getInputType()); // set wrapper if (newOperation.isInputWrapperStyle()) { oldOperation.setInputWrapperStyle(true); oldOperation.setInputWrapper(newOperation.getInputWrapper()); } } }
public void resetInterfaceInputTypes(Interface newInterface){ for (int i = 0; i < getOperations().size(); i++) { // only remote interfaces have a data type model defined // and in this case operations cannot be overloaded so match // operations by name Operation oldOperation = getOperations().get(i); Operation newOperation = null; for (Operation tmpOperation : newInterface.getOperations()){ if (tmpOperation.getName().equals(oldOperation.getName())){ newOperation = tmpOperation; } } if (newOperation == null){ break; } // set input types oldOperation.setInputType(newOperation.getInputType()); // set wrapper if (newOperation.isInputWrapperStyle()) { oldOperation.setInputWrapperStyle(true); oldOperation.setInputWrapper(newOperation.getInputWrapper()); } } }
public void resetInterfaceOutputTypes(Interface newInterface){ for (int i = 0; i < getOperations().size(); i++) { // only remote interfaces have a data type model defined // and in this case operations cannot be overloaded so match // operations by name Operation oldOperation = getOperations().get(i); Operation newOperation = null; for (Operation tmpOperation : newInterface.getOperations()){ if (tmpOperation.getName().equals(oldOperation.getName())){ newOperation = tmpOperation; } } if (newOperation == null){ break; } // set output types oldOperation.setOutputType(newOperation.getOutputType()); // set fault types oldOperation.setFaultTypes(newOperation.getFaultTypes()); // set wrapper if (newOperation.isOutputWrapperStyle()) { oldOperation.setOutputWrapperStyle(true); oldOperation.setOutputWrapper(newOperation.getOutputWrapper()); } } }
public void resetInterfaceOutputTypes(Interface newInterface){ for (int i = 0; i < getOperations().size(); i++) { // only remote interfaces have a data type model defined // and in this case operations cannot be overloaded so match // operations by name Operation oldOperation = getOperations().get(i); Operation newOperation = null; for (Operation tmpOperation : newInterface.getOperations()){ if (tmpOperation.getName().equals(oldOperation.getName())){ newOperation = tmpOperation; } } if (newOperation == null){ break; } // set output types oldOperation.setOutputType(newOperation.getOutputType()); // set fault types oldOperation.setFaultTypes(newOperation.getFaultTypes()); // set wrapper if (newOperation.isOutputWrapperStyle()) { oldOperation.setOutputWrapperStyle(true); oldOperation.setOutputWrapper(newOperation.getOutputWrapper()); } } }
} else if (OPERATION_QNAME.equals(name)) { operation = new OperationImpl(); iface.getOperations().add(operation);
} else if (OPERATION_QNAME.equals(name)) { operation = new OperationImpl(); iface.getOperations().add(operation);
@Deprecated public void setDefaultDataBinding(String dataBinding) { for (Operation op : getOperations()) { if (op.getDataBinding() == null) { op.setDataBinding(dataBinding);
@Deprecated public void setDefaultDataBinding(String dataBinding) { for (Operation op : getOperations()) { if (op.getDataBinding() == null) { op.setDataBinding(dataBinding);
public void resetDataBinding(String dataBinding) { for (Operation op : getOperations()) { op.setDataBinding(dataBinding); DataType<List<DataType>> inputType = op.getInputType();
public void resetDataBinding(String dataBinding) { for (Operation op : getOperations()) { op.setDataBinding(dataBinding); DataType<List<DataType>> inputType = op.getInputType();