当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档
JavaInterfaceWriter (JAXRPC API) - JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档
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.
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
portType
protected javax.wsdl.PortType portType
bEntry
protected BindingEntry bEntry
JavaInterfaceWriter
protected JavaInterfaceWriter(Emitter emitter,
PortTypeEntry ptEntry,
BindingEntry bEntry,
SymbolTable symbolTable)
- Constructor.
generate
public void generate()
throws IOException
- Override generate method to prevent duplicate interfaces because
of two bindings referencing the same portType
- Specified by:
generate
in interface Generator
- Overrides:
generate
in class JavaWriter
- Throws:
IOException
getClassText
protected String getClassText()
- Returns "interface ".
- Overrides:
getClassText
in class JavaClassWriter
getExtendsText
protected String getExtendsText()
- Returns "extends java.rmi.Remote ".
- Overrides:
getExtendsText
in class JavaClassWriter
- Returns:
- ""
writeFileBody
protected void writeFileBody(PrintWriter pw)
throws IOException
- Write the body of the portType interface file.
- Specified by:
writeFileBody
in class JavaWriter
- Throws:
IOException
writeOperation
protected void writeOperation(PrintWriter pw,
javax.wsdl.Operation operation)
throws IOException
- This method generates the interface signatures for the given operation.
- Throws:
IOException
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.