Methods Summary |
---|
public void | generate()Override generate method to prevent duplicate interfaces because
of two bindings referencing the same portType
String fqClass = getPackage() + "." + getClassName();
// Do not emit the same portType/interface twice
if (!emitter.getGeneratedFileInfo().getClassNames().contains(fqClass)) {
super.generate();
}
|
protected java.lang.String | getClassText()Returns "interface ".
return "interface ";
|
protected java.lang.String | getExtendsText()Returns "extends java.rmi.Remote ".
return "extends java.rmi.Remote ";
|
protected void | writeFileBody(java.io.PrintWriter pw)Write the body of the portType interface file.
Iterator operations = portType.getOperations().iterator();
while (operations.hasNext()) {
Operation operation = (Operation) operations.next();
writeOperation(pw, operation);
}
|
protected void | writeOperation(java.io.PrintWriter pw, javax.wsdl.Operation operation)This method generates the interface signatures for the given operation.
writeComment(pw, operation.getDocumentationElement(), true);
Parameters parms = bEntry.getParameters(operation);
pw.println(parms.signature + ";");
|