Package org.apache.axis.wsdl.toJava
Class JavaInterfaceWriter
java.lang.Object
org.apache.axis.wsdl.toJava.JavaWriter
org.apache.axis.wsdl.toJava.JavaClassWriter
org.apache.axis.wsdl.toJava.JavaInterfaceWriter
- All Implemented Interfaces:
Generator
This is Wsdl2java's PortType Writer. It writes the .java file
which contains the interface.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BindingEntryField bEntryprotected javax.wsdl.PortTypeField portTypeFields inherited from class org.apache.axis.wsdl.toJava.JavaClassWriter
className, namespaces, packageNameFields inherited from class org.apache.axis.wsdl.toJava.JavaWriter
emitter, LINE_LENGTH, type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJavaInterfaceWriter(Emitter emitter, PortTypeEntry ptEntry, BindingEntry bEntry, SymbolTable symbolTable) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate()Override generate method to prevent duplicate interfaces because of two bindings referencing the same portTypeprotected StringReturns "interface ".protected StringReturns "extends java.rmi.Remote ".protected voidWrite the body of the portType interface file.protected voidwriteOperation(PrintWriter pw, javax.wsdl.Operation operation) This method generates the interface signatures for the given operation.Methods inherited from class org.apache.axis.wsdl.toJava.JavaClassWriter
getClassModifiers, getClassName, getFileName, getImplementsText, getPackage, registerFile, writeFileFooter, writeFileHeader, writeHeaderComments, writePackageMethods inherited from class org.apache.axis.wsdl.toJava.JavaWriter
closePrintWriter, getJavadocDescriptionPart, getPrintWriter, isFileGenerated, verboseMessage, writeComment, writeComment
-
Field Details
-
portType
protected javax.wsdl.PortType portTypeField portType -
bEntry
Field bEntry
-
-
Constructor Details
-
JavaInterfaceWriter
protected JavaInterfaceWriter(Emitter emitter, PortTypeEntry ptEntry, BindingEntry bEntry, SymbolTable symbolTable) Constructor.- Parameters:
emitter-ptEntry-bEntry-symbolTable-
-
-
Method Details
-
generate
Override generate method to prevent duplicate interfaces because of two bindings referencing the same portType- Specified by:
generatein interfaceGenerator- Overrides:
generatein classJavaWriter- Throws:
IOException
-
getClassText
Returns "interface ".- Overrides:
getClassTextin classJavaClassWriter- Returns:
-
getExtendsText
Returns "extends java.rmi.Remote ".- Overrides:
getExtendsTextin classJavaClassWriter- Returns:
-
writeFileBody
Write the body of the portType interface file.- Specified by:
writeFileBodyin classJavaWriter- Parameters:
pw-- Throws:
IOException
-
writeOperation
This method generates the interface signatures for the given operation.- Parameters:
pw-operation-- Throws:
IOException
-