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 protectedJavaHolderWriter(Emitter emitter, TypeEntry type)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgenerate()Generate a java source file for the holder class.protected java.lang.StringgetClassModifiers()Return "public final ".protected java.lang.StringgetImplementsText()Return "implements javax.xml.rpc.holders.Holder ".protected voidwriteFileBody(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:
getClassModifiersin classJavaClassWriter- Returns:
-
getImplementsText
protected java.lang.String getImplementsText()
Return "implements javax.xml.rpc.holders.Holder ".- Overrides:
getImplementsTextin classJavaClassWriter- Returns:
-
writeFileBody
protected void writeFileBody(java.io.PrintWriter pw) throws java.io.IOExceptionGenerate the holder for the given complex type.- Specified by:
writeFileBodyin classJavaWriter- Parameters:
pw-- Throws:
java.io.IOException
-
generate
public void generate() throws java.io.IOExceptionGenerate 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:
generatein interfaceGenerator- Overrides:
generatein classJavaWriter- Throws:
java.io.IOException
-
-