Package org.apache.axis.wsdl.toJava
Class JavaHolderWriter
- java.lang.Object
-
- org.apache.axis.wsdl.toJava.JavaWriter
-
- org.apache.axis.wsdl.toJava.JavaClassWriter
-
- org.apache.axis.wsdl.toJava.JavaHolderWriter
-
- All Implemented Interfaces:
Generator
public class JavaHolderWriter extends JavaClassWriter
This is Wsdl2java's Holder Writer. It writes theHolder.java file.
-
-
Field Summary
-
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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JavaHolderWriter(Emitter emitter, TypeEntry type)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generate()
Generate a java source file for the holder class.protected java.lang.String
getClassModifiers()
Return "public final ".protected java.lang.String
getImplementsText()
Return "implements javax.xml.rpc.holders.Holder ".protected void
writeFileBody(java.io.PrintWriter pw)
Generate the holder for the given complex type.-
Methods inherited from class org.apache.axis.wsdl.toJava.JavaClassWriter
getClassName, getClassText, getExtendsText, getFileName, getPackage, registerFile, writeFileFooter, writeFileHeader, writeHeaderComments, writePackage
-
Methods inherited from class org.apache.axis.wsdl.toJava.JavaWriter
closePrintWriter, getJavadocDescriptionPart, getPrintWriter, isFileGenerated, verboseMessage, writeComment, writeComment
-
-
-
-
Method Detail
-
getClassModifiers
protected java.lang.String getClassModifiers()
Return "public final ".- Overrides:
getClassModifiers
in classJavaClassWriter
- Returns:
-
getImplementsText
protected java.lang.String getImplementsText()
Return "implements javax.xml.rpc.holders.Holder ".- Overrides:
getImplementsText
in classJavaClassWriter
- Returns:
-
writeFileBody
protected void writeFileBody(java.io.PrintWriter pw) throws java.io.IOException
Generate the holder for the given complex type.- Specified by:
writeFileBody
in classJavaWriter
- Parameters:
pw
-- Throws:
java.io.IOException
-
generate
public void generate() throws java.io.IOException
Generate a java source file for the holder class. If the emitter works in deploy mode and the class already exists, the source wull not be generated.- Specified by:
generate
in interfaceGenerator
- Overrides:
generate
in classJavaWriter
- Throws:
java.io.IOException
-
-