org.apache.axis.wsdl.toJava
Class JavaBeanWriter

java.lang.Object
  |
  +--org.apache.axis.wsdl.toJava.JavaWriter
        |
        +--org.apache.axis.wsdl.toJava.JavaBeanWriter
All Implemented Interfaces:
Writer

public class JavaBeanWriter
extends JavaWriter

This is Wsdl2java's Complex Type Writer. It writes the .java file.


Field Summary
protected  JavaWriter helper
           
protected  java.util.Vector names
           
 
Fields inherited from class org.apache.axis.wsdl.toJava.JavaWriter
className, embeddedCode, emitter, fileName, message, namespaces, packageName, pw, qname, rootName, type
 
Constructor Summary
protected JavaBeanWriter(Emitter emitter, TypeEntry type, java.util.Vector elements, TypeEntry extendType, java.util.Vector attributes, JavaWriter helper)
          Constructor.
 
Method Summary
protected  void writeEqualsMethod()
          Generate an equals method.
protected  void writeFileBody()
          Generate the binding for the given complex type.
protected  void writeHashCodeMethod()
           
 
Methods inherited from class org.apache.axis.wsdl.toJava.JavaWriter
fileExists, getResponseString, initializeDeploymentDoc, isPrimitiveType, wrapPrimitiveType, write, write, writeComment, writeFileHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

helper

protected JavaWriter helper

names

protected java.util.Vector names
Constructor Detail

JavaBeanWriter

protected JavaBeanWriter(Emitter emitter,
                         TypeEntry type,
                         java.util.Vector elements,
                         TypeEntry extendType,
                         java.util.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

writeFileBody

protected void writeFileBody()
                      throws java.io.IOException
Generate the binding for the given complex type. The elements vector contains the Types (even indices) and element names (odd indices) of the contained elements
Overrides:
writeFileBody in class JavaWriter

writeEqualsMethod

protected void writeEqualsMethod()
Generate an equals method.

writeHashCodeMethod

protected void writeHashCodeMethod()


Copyright © 2001 Apache XML Project. All Rights Reserved.