org.apache.axis.wsdl.toJava

Class JavaBeanFaultWriter

Implemented Interfaces:
Generator

public class JavaBeanFaultWriter
extends JavaBeanWriter

This is Wsdl2java's Complex Fault Writer. It generates bean-like class for complexTypes used in an operation fault message.

Field Summary

static Set
RESERVED_PROPERTY_NAMES
All server specific exception classes have Throwable as an indirect superclass.

Fields inherited from class org.apache.axis.wsdl.toJava.JavaBeanWriter

enableDefaultConstructor, enableEquals, enableFullConstructor, enableGetters, enableHashCode, enableMemberFields, enableSetters, enableSimpleConstructors, enableToString, enumerationTypes, helper, isAny, isMixed, names, pw, simpleValueTypes

Fields inherited from class org.apache.axis.wsdl.toJava.JavaClassWriter

className, namespaces, packageName

Fields inherited from class org.apache.axis.wsdl.toJava.JavaWriter

LINE_LENGTH, emitter, type

Constructor Summary

JavaBeanFaultWriter(Emitter emitter, TypeEntry type, Vector elements, TypeEntry extendType, Vector attributes, JavaWriter helper)
Constructor.

Method Summary

protected String
getExtendsText()
Returns the appropriate extends text
protected void
writeFileFooter(PrintWriter pw)
Write the Exception serialization code

NOTE: This function is written in JavaFaultWriter.java also.

Methods inherited from class org.apache.axis.wsdl.toJava.JavaBeanWriter

generate, getBinaryTypeEncoderName, getClassModifiers, getElementDecl, getExtendsText, getImplementsText, preprocess, writeAccessMethods, writeDefaultConstructor, writeEqualsMethod, writeFileBody, writeFileHeader, writeFullConstructor, writeHashCodeMethod, writeMemberFields, writeMinimalConstructor, writeSimpleConstructors, writeSimpleTypeGetter, writeSimpleTypeSetter, writeToStringMethod

Methods inherited from class org.apache.axis.wsdl.toJava.JavaClassWriter

getClassModifiers, getClassName, getClassText, getExtendsText, getFileName, getImplementsText, getPackage, registerFile, writeFileFooter, writeFileHeader, writeHeaderComments, writePackage

Methods inherited from class org.apache.axis.wsdl.toJava.JavaWriter

closePrintWriter, generate, getFileName, getJavadocDescriptionPart, getPrintWriter, isFileGenerated, registerFile, verboseMessage, writeComment, writeComment, writeFileBody, writeFileFooter, writeFileHeader

Field Details

RESERVED_PROPERTY_NAMES

public static final Set RESERVED_PROPERTY_NAMES

Constructor Details

JavaBeanFaultWriter

protected JavaBeanFaultWriter(Emitter emitter,
                              TypeEntry type,
                              Vector elements,
                              TypeEntry extendType,
                              Vector attributes,
                              JavaWriter helper)
Constructor.

Parameters:
emitter -
type - The type representing this class
elements - Vector containing the Type and name of each property
extendType - The type representing the extended class (or null)
attributes - Vector containing the attribute types and names
helper - Helper class writer

Method Details

getExtendsText

protected String getExtendsText()
Returns the appropriate extends text
Overrides:
getExtendsText in interface JavaBeanWriter

Returns:
"" or " extends "


writeFileFooter

protected void writeFileFooter(PrintWriter pw)
            throws IOException
Write the Exception serialization code

NOTE: This function is written in JavaFaultWriter.java also.

Overrides:
writeFileFooter in interface JavaClassWriter

Parameters:
pw -


Copyright B) 2005 Apache Web Services Project. All Rights Reserved.