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
public class JavaInterfaceWriter extends JavaClassWriter
This is Wsdl2java's PortType Writer. It writes the.java file which contains the interface.
-
-
Field Summary
Fields Modifier and Type Field Description protected BindingEntrybEntryField bEntryprotected javax.wsdl.PortTypeportTypeField portType-
Fields inherited from class org.apache.axis.wsdl.toJava.JavaClassWriter
className, namespaces, packageName
-
Fields inherited from class org.apache.axis.wsdl.toJava.JavaWriter
emitter, LINE_LENGTH, type
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJavaInterfaceWriter(Emitter emitter, PortTypeEntry ptEntry, BindingEntry bEntry, SymbolTable symbolTable)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgenerate()Override generate method to prevent duplicate interfaces because of two bindings referencing the same portTypeprotected java.lang.StringgetClassText()Returns "interface ".protected java.lang.StringgetExtendsText()Returns "extends java.rmi.Remote ".protected voidwriteFileBody(java.io.PrintWriter pw)Write the body of the portType interface file.protected voidwriteOperation(java.io.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, writePackage
-
Methods inherited from class org.apache.axis.wsdl.toJava.JavaWriter
closePrintWriter, getJavadocDescriptionPart, getPrintWriter, isFileGenerated, verboseMessage, writeComment, writeComment
-
-
-
-
Field Detail
-
portType
protected javax.wsdl.PortType portType
Field portType
-
bEntry
protected BindingEntry bEntry
Field bEntry
-
-
Constructor Detail
-
JavaInterfaceWriter
protected JavaInterfaceWriter(Emitter emitter, PortTypeEntry ptEntry, BindingEntry bEntry, SymbolTable symbolTable)
Constructor.- Parameters:
emitter-ptEntry-bEntry-symbolTable-
-
-
Method Detail
-
generate
public void generate() throws java.io.IOExceptionOverride generate method to prevent duplicate interfaces because of two bindings referencing the same portType- Specified by:
generatein interfaceGenerator- Overrides:
generatein classJavaWriter- Throws:
java.io.IOException
-
getClassText
protected java.lang.String getClassText()
Returns "interface ".- Overrides:
getClassTextin classJavaClassWriter- Returns:
-
getExtendsText
protected java.lang.String getExtendsText()
Returns "extends java.rmi.Remote ".- Overrides:
getExtendsTextin classJavaClassWriter- Returns:
-
writeFileBody
protected void writeFileBody(java.io.PrintWriter pw) throws java.io.IOExceptionWrite the body of the portType interface file.- Specified by:
writeFileBodyin classJavaWriter- Parameters:
pw-- Throws:
java.io.IOException
-
writeOperation
protected void writeOperation(java.io.PrintWriter pw, javax.wsdl.Operation operation) throws java.io.IOExceptionThis method generates the interface signatures for the given operation.- Parameters:
pw-operation-- Throws:
java.io.IOException
-
-