/** * Validate the InterfaceOperation elements. * * @param descElement The root description element. * @param interfaceOperations An array of interface operation elements. * @param errorReporter An error reporter. * @return True if the interface operation elements are all valid, false otherwise. * @throws WSDLException */ protected boolean validateInterfaceOperations(DescriptionElement descElement, InterfaceOperationElement[] interfaceOperations, ErrorReporter errorReporter) throws WSDLException { boolean isValid = true; int numInterfaceOperations = interfaceOperations.length; for(int j = 0; j < numInterfaceOperations; j++) { InterfaceOperationElement interfaceOperation = interfaceOperations[j]; if(!validateInterfaceMessageReferences(descElement, interfaceOperation.getInterfaceMessageReferenceElements(), errorReporter)) isValid = false; if(!validateInterfaceFaultReferences(descElement, interfaceOperation.getInterfaceFaultReferenceElements(), errorReporter)) isValid = false; } return isValid; }
/** * Validate the InterfaceOperation elements. * * @param descElement The root description element. * @param interfaceOperations An array of interface operation elements. * @param errorReporter An error reporter. * @return True if the interface operation elements are all valid, false otherwise. * @throws WSDLException */ protected boolean validateInterfaceOperations(DescriptionElement descElement, InterfaceOperationElement[] interfaceOperations, ErrorReporter errorReporter) throws WSDLException { boolean isValid = true; int numInterfaceOperations = interfaceOperations.length; for(int j = 0; j < numInterfaceOperations; j++) { InterfaceOperationElement interfaceOperation = interfaceOperations[j]; if(!validateInterfaceMessageReferences(descElement, interfaceOperation.getInterfaceMessageReferenceElements(), errorReporter)) isValid = false; if(!validateInterfaceFaultReferences(descElement, interfaceOperation.getInterfaceFaultReferenceElements(), errorReporter)) isValid = false; } return isValid; }
public InterfaceFaultReferenceElement getInterfaceFaultReferenceElement() { InterfaceFaultReferenceElement intFaultRef = null; if(fRef != null && fMessageLabel != null) { BindingOperationElement bindOp = (BindingOperationElement)getParentElement(); InterfaceOperationElement intOp = bindOp.getInterfaceOperationElement(); if(intOp != null) { InterfaceFaultReferenceElement[] intFaultRefs = intOp.getInterfaceFaultReferenceElements(); for(int i=0; i<intFaultRefs.length; i++) { InterfaceFaultReferenceElement temp = intFaultRefs[i]; if(fRef.equals(temp.getRef()) && fMessageLabel.equals(temp.getMessageLabel())) { intFaultRef = temp; break; } } } } return intFaultRef; }
public InterfaceFaultReferenceElement getInterfaceFaultReferenceElement() { InterfaceFaultReferenceElement intFaultRef = null; if(fRef != null && fMessageLabel != null) { BindingOperationElement bindOp = (BindingOperationElement)getParentElement(); InterfaceOperationElement intOp = bindOp.getInterfaceOperationElement(); if(intOp != null) { InterfaceFaultReferenceElement[] intFaultRefs = intOp.getInterfaceFaultReferenceElements(); for(int i=0; i<intFaultRefs.length; i++) { InterfaceFaultReferenceElement temp = intFaultRefs[i]; if(fRef.equals(temp.getRef()) && fMessageLabel.equals(temp.getMessageLabel())) { intFaultRef = temp; break; } } } } return intFaultRef; }
printDocumentation(operation.getDocumentationElements(), des, pw); printInterfaceMessageReferences(operation.getInterfaceMessageReferenceElements(),des, pw); printInterfaceFaultReferences(operation.getInterfaceFaultReferenceElements(),des,pw); printExtensibilityElements(operation.getClass(), operation.getExtensionElements(), des, pw); pw.println(" </" + tagName + '>');
printDocumentation(operation.getDocumentationElements(), des, pw); printInterfaceMessageReferences(operation.getInterfaceMessageReferenceElements(),des, pw); printInterfaceFaultReferences(operation.getInterfaceFaultReferenceElements(),des,pw); printExtensibilityElements(operation.getClass(), operation.getExtensionElements(), des, pw); pw.println(" </" + tagName + '>');
printDocumentation(operation.getDocumentationElements(), des, pw); printInterfaceMessageReferences(operation.getInterfaceMessageReferenceElements(),des, pw); printInterfaceFaultReferences(operation.getInterfaceFaultReferenceElements(),des,pw); printExtensibilityElements(operation.getClass(), operation.getExtensionElements(), des, pw); pw.println(" </" + tagName + '>');