org.apache.axis.wsdl.toJava
Class JavaBeanHelperWriter
- Generator
public class JavaBeanHelperWriter
This is Wsdl2java's Helper Type Writer. It writes the .java file.
protected void | closePrintWriter(PrintWriter pw) - Only close the PrintWriter if the PrintWriter belongs to
this class.
|
protected PrintWriter | getPrintWriter(String filename) - The default behaviour (of super.getPrintWriter) is, given the
file name, create a PrintWriter for it.
|
protected void | registerFile(String file) - Only register the filename if the bean helper is not wrapped
within a bean.
|
protected void | setPrintWriter(PrintWriter pw) - The bean helper class may be its own class, or it may be
embedded within the bean class.
|
protected String | verboseMessage(String file) - Return the string: "Generating ".
|
protected void | writeDeserializer(PrintWriter pw) - write Deserializer getter code and pass in meta data to avoid
undo introspection.
|
protected void | writeFileBody(PrintWriter pw) - Generate the file body for the bean helper.
|
protected void | writeFileFooter(PrintWriter pw) - Only write the file footer if the bean helper is not
wrapped within a bean.
|
protected void | writeFileHeader(PrintWriter pw) - Only write the file header if the bean helper is not wrapped
within a bean.
|
protected void | writeMetaData(PrintWriter pw) - write MetaData code
|
protected void | writeSerializer(PrintWriter pw) - write Serializer getter code and pass in meta data to avoid
undo introspection.
|
getClassModifiers , getClassName , getClassText , getExtendsText , getFileName , getImplementsText , getPackage , registerFile , writeFileFooter , writeFileHeader , writeHeaderComments , writePackage |
closePrintWriter , generate , getFileName , getJavadocDescriptionPart , getPrintWriter , isFileGenerated , registerFile , verboseMessage , writeComment , writeComment , writeFileBody , writeFileFooter , writeFileHeader |
attributes
protected Vector attributes
Field attributes
canSearchParents
protected boolean canSearchParents
Field canSearchParents
elementMetaData
protected Vector elementMetaData
Field elementMetaData
elements
protected Vector elements
Field elements
extendType
protected TypeEntry extendType
Field extendType
reservedPropNames
protected Set reservedPropNames
Field reservedPropNames
wrapperPW
protected PrintWriter wrapperPW
Field wrapperPW
JavaBeanHelperWriter
protected JavaBeanHelperWriter(Emitter emitter,
TypeEntry type,
Vector elements,
TypeEntry extendType,
Vector attributes,
Set reservedPropNames)
Constructor.
emitter
- type
- The type representing this classelements
- Vector containing the Type and name of each propertyextendType
- The type representing the extended class (or null)attributes
- Vector containing the attribute types and names
closePrintWriter
protected void closePrintWriter(PrintWriter pw)
Only close the PrintWriter if the PrintWriter belongs to
this class. If the bean helper is embedded within a bean
then the PrintWriter belongs to JavaBeanWriter and THAT
class is responsible for closing the PrintWriter.
- closePrintWriter in interface JavaWriter
pw
-
getPrintWriter
protected PrintWriter getPrintWriter(String filename)
throws IOException
The default behaviour (of super.getPrintWriter) is, given the
file name, create a PrintWriter for it. If the bean helper
that this class is generating is embedded within a bean, then
the PrintWriter returned by this method is the JavaBeanWriter's
PrintWriter. Otherwise super.getPrintWriter is called.
- getPrintWriter in interface JavaWriter
filename
-
registerFile
protected void registerFile(String file)
Only register the filename if the bean helper is not wrapped
within a bean.
- registerFile in interface JavaClassWriter
file
-
setPrintWriter
protected void setPrintWriter(PrintWriter pw)
The bean helper class may be its own class, or it may be
embedded within the bean class. If it's embedded within the
bean class, the JavaBeanWriter will set JavaBeanHelperWriter's
PrintWriter to its own.
pw
-
verboseMessage
protected String verboseMessage(String file)
Return the string: "Generating ".
only if we are going to generate a new file.
- verboseMessage in interface JavaWriter
file
-
writeDeserializer
protected void writeDeserializer(PrintWriter pw)
throws IOException
write Deserializer getter code and pass in meta data to avoid
undo introspection.
pw
-
writeFileBody
protected void writeFileBody(PrintWriter pw)
throws IOException
Generate the file body for the bean helper.
- writeFileBody in interface JavaWriter
pw
-
writeFileFooter
protected void writeFileFooter(PrintWriter pw)
throws IOException
Only write the file footer if the bean helper is not
wrapped within a bean.
- writeFileFooter in interface JavaClassWriter
pw
-
writeFileHeader
protected void writeFileHeader(PrintWriter pw)
throws IOException
Only write the file header if the bean helper is not wrapped
within a bean.
- writeFileHeader in interface JavaClassWriter
pw
-
writeMetaData
protected void writeMetaData(PrintWriter pw)
throws IOException
write MetaData code
pw
-
writeSerializer
protected void writeSerializer(PrintWriter pw)
throws IOException
write Serializer getter code and pass in meta data to avoid
undo introspection.
pw
-
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.