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
@Override public Object clone() throws CloneNotSupportedException { return super.clone(); }
if (INTERFACE_CONTRACT_QNAME.equals(name)){ } else if (INTERFACE_QNAME.equals(name)){ iface = new InterfaceImpl(); interfaceContract.setInterface(iface); iface.setRemotable(getBoolean(reader, "isRemotable")); } else if (CALLBACK_INTERFACE_QNAME.equals(name)){ iface = new InterfaceImpl(); interfaceContract.setCallbackInterface(iface); iface.setRemotable(getBoolean(reader, "isRemotable")); } else if (OPERATION_QNAME.equals(name)) { operation = new OperationImpl(); iface.getOperations().add(operation);
public void resetDataBinding(String dataBinding) { for (Operation op : getOperations()) { op.setDataBinding(dataBinding); DataType<List<DataType>> inputType = op.getInputType(); if (inputType != null) { for (DataType d : inputType.getLogical()) { setDataBinding(d, dataBinding); for ( DataType outputType : outputTypes ) { if (outputType != null) { setDataBinding(outputType, dataBinding); if (faultTypes != null) { for (DataType d : faultTypes) { setDataBinding(d, dataBinding); setDataBinding((DataType) d.getLogical(), dataBinding); if (unwrappedInputType != null) { for (DataType d : unwrappedInputType.getLogical()) { setDataBinding(d, dataBinding); if (unwrappedOutputType != null) { for (DataType d : unwrappedOutputType.getLogical()) { setDataBinding(d, dataBinding);
private void setDataBinding(DataType dataType, String dataBinding) { if ("java:array".equals(dataType.getDataBinding())) { setDataBinding((DataType)dataType.getLogical(), dataBinding); } else { dataType.setDataBinding(dataBinding); } }
if (INTERFACE_CONTRACT_QNAME.equals(name)){ } else if (INTERFACE_QNAME.equals(name)){ iface = new InterfaceImpl(); interfaceContract.setInterface(iface); iface.setRemotable(getBoolean(reader, "isRemotable")); } else if (CALLBACK_INTERFACE_QNAME.equals(name)){ iface = new InterfaceImpl(); interfaceContract.setCallbackInterface(iface); iface.setRemotable(getBoolean(reader, "isRemotable")); } else if (OPERATION_QNAME.equals(name)) { operation = new OperationImpl(); iface.getOperations().add(operation);
public void resetDataBinding(String dataBinding) { for (Operation op : getOperations()) { op.setDataBinding(dataBinding); DataType<List<DataType>> inputType = op.getInputType(); if (inputType != null) { for (DataType d : inputType.getLogical()) { setDataBinding(d, dataBinding); for ( DataType outputType : outputTypes ) { if (outputType != null) { setDataBinding(outputType, dataBinding); if (faultTypes != null) { for (DataType d : faultTypes) { setDataBinding(d, dataBinding); setDataBinding((DataType) d.getLogical(), dataBinding); if (unwrappedInputType != null) { for (DataType d : unwrappedInputType.getLogical()) { setDataBinding(d, dataBinding); if (unwrappedOutputType != null) { for (DataType d : unwrappedOutputType.getLogical()) { setDataBinding(d, dataBinding);
private void setDataBinding(DataType dataType, String dataBinding) { if ("java:array".equals(dataType.getDataBinding())) { setDataBinding((DataType)dataType.getLogical(), dataBinding); } else { dataType.setDataBinding(dataBinding); } }
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
@Override public WSDLInterfaceImpl clone() throws CloneNotSupportedException { return (WSDLInterfaceImpl) super.clone(); }
public List<Operation> getOperations() { if( !isUnresolved() && isAsyncServer() ) { return equivalentSyncOperations(); } else { return super.getOperations(); } } // end method getOperations
@Override public WSDLInterfaceImpl clone() throws CloneNotSupportedException { return (WSDLInterfaceImpl) super.clone(); }
public List<Operation> getOperations() { if( !isUnresolved() && isAsyncServer() ) { return equivalentSyncOperations(); } else { return super.getOperations(); } } // end method getOperations
@Override public Object clone() throws CloneNotSupportedException { return super.clone(); }
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()); } } }
@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);