org.apache.axis.wsdl.toJava

Class JavaBeanFaultWriter

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 SetRESERVED_PROPERTY_NAMES
All server specific exception classes have Throwable as an indirect superclass.
Constructor Summary
protected JavaBeanFaultWriter(Emitter emitter, TypeEntry type, Vector elements, TypeEntry extendType, Vector attributes, JavaWriter helper)
Constructor.
Method Summary
protected StringgetExtendsText()
Returns the appropriate extends text
protected voidwriteFileFooter(PrintWriter pw)
Write the Exception serialization code

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

Field Detail

RESERVED_PROPERTY_NAMES

public static final Set RESERVED_PROPERTY_NAMES
All server specific exception classes have Throwable as an indirect superclass. Throwable defines a set of properties that may potentially conflict with those that would be generated by this class for an XSD complex type used as a fault. The following immutable object contains all property names that must be excluded when generating a service specific exception. Note: BeanSerializer always excludes Throwable's and AxisFault's properties when marshalling a service Java exception.

Constructor Detail

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 Detail

getExtendsText

protected String getExtendsText()
Returns the appropriate extends text

Returns: "" or " extends "

writeFileFooter

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

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

Parameters: pw

Throws: IOException

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