public class JavaInterfaceWriter extends JavaClassWriter
Modifier and Type | Field and Description |
---|---|
protected BindingEntry |
bEntry
Field bEntry
|
protected javax.wsdl.PortType |
portType
Field portType
|
className, namespaces, packageName
emitter, LINE_LENGTH, type
Modifier | Constructor and Description |
---|---|
protected |
JavaInterfaceWriter(Emitter emitter,
PortTypeEntry ptEntry,
BindingEntry bEntry,
SymbolTable symbolTable)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
generate()
Override generate method to prevent duplicate interfaces because
of two bindings referencing the same portType
|
protected String |
getClassText()
Returns "interface ".
|
protected String |
getExtendsText()
Returns "extends java.rmi.Remote ".
|
protected void |
writeFileBody(PrintWriter pw)
Write the body of the portType interface file.
|
protected void |
writeOperation(PrintWriter pw,
javax.wsdl.Operation operation)
This method generates the interface signatures for the given operation.
|
getClassModifiers, getClassName, getFileName, getImplementsText, getPackage, registerFile, writeFileFooter, writeFileHeader, writeHeaderComments, writePackage
closePrintWriter, getJavadocDescriptionPart, getPrintWriter, isFileGenerated, verboseMessage, writeComment, writeComment
protected javax.wsdl.PortType portType
protected BindingEntry bEntry
protected JavaInterfaceWriter(Emitter emitter, PortTypeEntry ptEntry, BindingEntry bEntry, SymbolTable symbolTable)
emitter
- ptEntry
- bEntry
- symbolTable
- public void generate() throws IOException
generate
in interface Generator
generate
in class JavaWriter
IOException
protected String getClassText()
getClassText
in class JavaClassWriter
protected String getExtendsText()
getExtendsText
in class JavaClassWriter
protected void writeFileBody(PrintWriter pw) throws IOException
writeFileBody
in class JavaWriter
pw
- IOException
protected void writeOperation(PrintWriter pw, javax.wsdl.Operation operation) throws IOException
pw
- operation
- IOException
Copyright © The Apache Software Foundation. All Rights Reserved.