printDocumentation(operation.getDocumentationElement(), def, pw);
/** * Provides the documentation for the given operation name, or returns an * empty string if no documentation is provided by the WSDL. * * @param operationName * @return * @throws UnknownOperationException */ public String getOperationDocumentation(String operationName) throws UnknownOperationException { String result = ""; Operation operation = getOperation(operationName); if (operation.getDocumentationElement() != null) { if (operation.getDocumentationElement().getFirstChild() != null) { result = operation.getDocumentationElement().getFirstChild() .getNodeValue(); } } return result; }
/** * This method generates the interface signatures for the given operation. * * @param pw * @param operation * @throws IOException */ protected void writeOperation(PrintWriter pw, Operation operation) throws IOException { writeComment(pw, operation.getDocumentationElement(), true); Parameters parms = bEntry.getParameters(operation); pw.println(parms.signature + ";"); } // writeOperation } // class JavaInterfaceWriter
/** * This method generates the interface signatures for the given operation. * * @param pw * @param operation * @throws IOException */ protected void writeOperation(PrintWriter pw, Operation operation) throws IOException { writeComment(pw, operation.getDocumentationElement(), true); Parameters parms = bEntry.getParameters(operation); pw.println(parms.signature + ";"); } // writeOperation } // class JavaInterfaceWriter
/** * This method generates the interface signatures for the given operation. * * @param pw * @param operation * @throws IOException */ protected void writeOperation(PrintWriter pw, Operation operation) throws IOException { writeComment(pw, operation.getDocumentationElement(), true); Parameters parms = bEntry.getParameters(operation); pw.println(parms.signature + ";"); } // writeOperation } // class JavaInterfaceWriter
public void visit( Operation operation, Object parent, WSDLTraversalContext ctx) { if (operation != null) { Boolean type = (Boolean) ctx.getParameter(PORT_TYPE_KEY); if (type.booleanValue()) { ctx.addParameter(OPERATION_KEY, Boolean.TRUE); } else { claimFound = containsClaim(operation.getDocumentationElement()); ctx.addParameter( OPERATION_KEY, new Boolean( containsLegalClaim(operation.getDocumentationElement()))); } } }
public void visit( Operation operation, Object parent, WSDLTraversalContext ctx) { if (operation != null) { Boolean type = (Boolean) ctx.getParameter(PORT_TYPE_KEY); if (type.booleanValue()) { ctx.addParameter(OPERATION_KEY, Boolean.TRUE); } else { claimFound = containsClaim(operation.getDocumentationElement()); ctx.addParameter( OPERATION_KEY, new Boolean( containsLegalClaim(operation.getDocumentationElement()))); } } }
public void visit( Operation operation, Object parent, WSDLTraversalContext ctx) { if (operation != null && !containsLegalClaim(operation.getDocumentationElement())) errors.add(WSDL_OPERATION, operation.getName()); }
public void visit( Operation operation, Object parent, WSDLTraversalContext ctx) { if (operation != null && !containsLegalClaim(operation.getDocumentationElement())) errors.add(WSDL_OPERATION, operation.getName()); }
protected void visit(Operation operation) { opInfo = getServiceInfo(portType).addOperation(operation.getName(), null); Element docElem = operation.getDocumentationElement(); if (docElem != null) { String docText = docElem.getNodeValue();// TextContent(); opInfo.setDocumenation(docText); } wop2op.put(operation, opInfo); }
private void processPortTypeOperations(Definition srcWsdl, WSDLInterface destInterface, PortType srcPortType, WSDLBinding destBinding) throws WSDLException { Iterator itOperations = srcPortType.getOperations().iterator(); while (itOperations.hasNext()) { Operation srcOperation = (Operation)itOperations.next(); WSDLInterfaceOperation destOperation = new WSDLInterfaceOperation(destInterface, srcOperation.getName()); processUnknownExtensibilityElements(srcOperation, destOperation); destOperation.setStyle(getOperationStyle(srcWsdl, srcPortType, srcOperation)); if (srcOperation.getStyle() != null && false == OperationType.NOTIFICATION.equals(srcOperation.getStyle())) { processPortTypeOperationInput(srcWsdl, srcOperation, destOperation, srcPortType, destBinding); } processPortTypeOperationOutput(srcWsdl, srcOperation, destOperation, srcPortType, destBinding); processPortTypeOperationFaults(srcOperation, destOperation, destInterface, destBinding); // documentation Element documentationElement = srcOperation.getDocumentationElement(); if (documentationElement != null && documentationElement.getTextContent() != null) { destOperation.setDocumentationElement(new WSDLDocumentation(documentationElement.getTextContent())); } destInterface.addOperation(destOperation); } }
addDocumentation(axisOperation, wsdl4jOperation.getDocumentationElement()); if (wsdl4jOperation.getInput() != null) { addMessageDocumentation(axisOperation, wsdl4jOperation.getInput().getDocumentationElement(), WSDLConstants.MESSAGE_LABEL_IN_VALUE);
addDocumentation(axisOperation, wsdl4jOperation.getDocumentationElement()); if (wsdl4jOperation.getInput() != null) { addMessageDocumentation(axisOperation, wsdl4jOperation.getInput().getDocumentationElement(), WSDLConstants.MESSAGE_LABEL_IN_VALUE);
if (traverseOperation2Element) traverse(objOperation.getDocumentationElement(), objOperation, ctx); if (!ctx.processOperation()) return;
if (traverseOperation2Element) traverse(objOperation.getDocumentationElement(), objOperation, ctx); if (!ctx.processOperation()) return;
private void processOperation(JCasBuilder casBuilder, Operation operation) { // Process operation casBuilder.add(" "); casBuilder.add("Operation:", StopWord.class); casBuilder.add(" "); casBuilder.add(operation.getName(), Field.class).setName(FIELD_OPERATION); casBuilder.add("\n"); processDocumentation(casBuilder, operation.getDocumentationElement(), " ", "Operation Documentation", FIELD_OPERATION_DOCUMENTATION); processInput(casBuilder, operation.getInput()); processOutput(casBuilder, operation.getOutput()); }
printDocumentation(operation.getDocumentationElement(), def, pw);