Package org.apache.axis.wsdl.toJava
Class JavaBeanFaultWriter
java.lang.Object
org.apache.axis.wsdl.toJava.JavaWriter
org.apache.axis.wsdl.toJava.JavaClassWriter
org.apache.axis.wsdl.toJava.JavaBeanWriter
org.apache.axis.wsdl.toJava.JavaBeanFaultWriter
- All Implemented Interfaces:
Generator
This is Wsdl2java's Complex Fault Writer.
It generates bean-like class for complexTypes used
in an operation fault message.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SetAll server specific exception classes haveThrowableas 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, parentIsAny, parentIsMixed, pw, simpleValueTypesFields inherited from class org.apache.axis.wsdl.toJava.JavaClassWriter
className, namespaces, packageNameFields inherited from class org.apache.axis.wsdl.toJava.JavaWriter
emitter, LINE_LENGTH -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJavaBeanFaultWriter(Emitter emitter, TypeEntry type, Vector elements, TypeEntry extendType, Vector attributes, JavaWriter helper) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringReturns the appropriate extends textprotected voidWrite the Exception serialization codeMethods inherited from class org.apache.axis.wsdl.toJava.JavaBeanWriter
generate, getBinaryTypeEncoderName, getClassModifiers, getElementDecl, getImplementsText, preprocess, writeAccessMethods, writeDefaultConstructor, writeEqualsMethod, writeFileBody, writeFileHeader, writeFullConstructor, writeHashCodeMethod, writeMemberFields, writeMinimalConstructor, writeSimpleConstructors, writeSimpleTypeGetter, writeSimpleTypeSetter, writeToStringMethodMethods inherited from class org.apache.axis.wsdl.toJava.JavaClassWriter
getClassName, getClassText, getFileName, getPackage, registerFile, writeHeaderComments, writePackageMethods inherited from class org.apache.axis.wsdl.toJava.JavaWriter
closePrintWriter, getJavadocDescriptionPart, getPrintWriter, isFileGenerated, verboseMessage, writeComment, writeComment
-
Field Details
-
RESERVED_PROPERTY_NAMES
All server specific exception classes haveThrowableas an indirect superclass.Throwabledefines 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:BeanSerializeralways excludesThrowable's andAxisFault's properties when marshalling a service Java exception.
-
-
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 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 nameshelper- Helper class writer
-
-
Method Details
-
getExtendsText
Returns the appropriate extends text- Overrides:
getExtendsTextin classJavaBeanWriter- Returns:
- "" or " extends
"
-