|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis.wsdl.toJava.JavaWriter org.apache.axis.wsdl.toJava.JavaClassWriter org.apache.axis.message.addressing.tools.wsdl.JavaClassWithImportsWriter
public abstract class JavaClassWithImportsWriter
Class writer that manages an imports clause list, so generated code can be simplified.
Field Summary | |
---|---|
protected org.apache.axis.wsdl.symbolTable.ServiceEntry |
sEntry
Service. |
protected org.apache.axis.wsdl.symbolTable.SymbolTable |
symbolTable
Symbol table. |
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 | |
---|---|
protected |
JavaClassWithImportsWriter(org.apache.axis.wsdl.toJava.Emitter emitter,
org.apache.axis.wsdl.symbolTable.ServiceEntry sEntry,
org.apache.axis.wsdl.symbolTable.SymbolTable symbolTable,
java.lang.String entryName,
java.lang.String type)
Creates an instance. |
Method Summary | |
---|---|
protected void |
addImport(java.lang.String className)
Adds an import clause. |
void |
generate()
|
protected java.lang.String |
getBindingType(javax.wsdl.Port port)
Gets the name of the binding type associated to the specified Port. |
protected void |
initImports()
Populates the imports map. |
protected java.lang.String |
resolve(java.lang.String className)
Resolves a class name, and returns its simple name if it is imported. |
protected abstract void |
writeClassComment(java.io.PrintWriter pw)
Generates the generated class javadoc comment. |
protected void |
writeFileHeader(java.io.PrintWriter pw)
|
protected void |
writeHeaderComments(java.io.PrintWriter pw)
|
protected void |
writeImports(java.io.PrintWriter pw)
Writes the imports clauses. |
Methods inherited from class org.apache.axis.wsdl.toJava.JavaClassWriter |
---|
getClassModifiers, getClassName, getClassText, getExtendsText, getFileName, getImplementsText, getPackage, registerFile, writeFileFooter, writePackage |
Methods inherited from class org.apache.axis.wsdl.toJava.JavaWriter |
---|
closePrintWriter, getJavadocDescriptionPart, getPrintWriter, isFileGenerated, verboseMessage, writeComment, writeComment, writeFileBody |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.apache.axis.wsdl.symbolTable.ServiceEntry sEntry
protected final org.apache.axis.wsdl.symbolTable.SymbolTable symbolTable
Constructor Detail |
---|
protected JavaClassWithImportsWriter(org.apache.axis.wsdl.toJava.Emitter emitter, org.apache.axis.wsdl.symbolTable.ServiceEntry sEntry, org.apache.axis.wsdl.symbolTable.SymbolTable symbolTable, java.lang.String entryName, java.lang.String type)
emitter
- EmittersEntry
- ServicesymbolTable
- Symbol tableentryName
- Name of the generated entrytype
- Entry typeMethod Detail |
---|
public void generate() throws java.io.IOException
generate
in interface org.apache.axis.wsdl.gen.Generator
generate
in class org.apache.axis.wsdl.toJava.JavaWriter
java.io.IOException
protected void initImports()
protected final void addImport(java.lang.String className)
className
- Class to be importedprotected final java.lang.String resolve(java.lang.String className)
className
- Fully qualified class name
protected final java.lang.String getBindingType(javax.wsdl.Port port)
port
- Port to process
protected final void writeImports(java.io.PrintWriter pw)
pw
- To print toprotected final void writeHeaderComments(java.io.PrintWriter pw) throws java.io.IOException
writeHeaderComments
in class org.apache.axis.wsdl.toJava.JavaClassWriter
java.io.IOException
protected final void writeFileHeader(java.io.PrintWriter pw) throws java.io.IOException
writeFileHeader
in class org.apache.axis.wsdl.toJava.JavaClassWriter
java.io.IOException
protected abstract void writeClassComment(java.io.PrintWriter pw) throws java.io.IOException
pw
- Writer to print to
java.io.IOException
- If an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |