org.apache.axis.wsdl.toJava
public class JavaBeanWriter extends JavaClassWriter
Field Summary | |
---|---|
protected boolean | enableDefaultConstructor Field enableDefaultConstructor |
protected boolean | enableEquals Field enableEquals |
protected boolean | enableFullConstructor Field enableFullConstructor |
protected boolean | enableGetters Field enableGetters |
protected boolean | enableHashCode Field enableHashCode |
protected boolean | enableMemberFields Field enableMemberFields |
protected boolean | enableSetters Field enableSetters |
protected boolean | enableSimpleConstructors Field enableSimpleConstructors |
protected boolean | enableToString Field enableToString |
protected Set | enumerationTypes Field enumerationTypes |
protected JavaBeanHelperWriter | helper Field helper |
protected boolean | isAny Field isAny |
protected boolean | isMixed Field isMixed |
protected Vector | names Field names |
protected boolean | parentIsAny Field parentIsAny |
protected boolean | parentIsMixed Field parentIsMixed |
protected PrintWriter | pw Field pw |
protected ArrayList | simpleValueTypes Field simpleValueTypes |
Constructor Summary | |
---|---|
protected | JavaBeanWriter(Emitter emitter, TypeEntry type, Vector elements, TypeEntry extendType, Vector attributes, JavaWriter helper)
Constructor.
|
Method Summary | |
---|---|
void | generate() Generate a java source file and/or helper source file.
|
protected String | getBinaryTypeEncoderName(String elementName)
Returns the class name that should be used to serialize and
deserialize this binary element |
protected String | getClassModifiers()
Returns the appropriate extends text
|
protected TypeEntry | getElementDecl(String elementName)
Returns the TypeEntry of the given element |
protected String | getExtendsText()
Returns the appropriate extends text
|
protected String | getImplementsText()
Returns the appropriate implements text
|
protected void | preprocess()
Builds the names String vector.
|
protected void | writeAccessMethods()
Writes the setter and getter methods |
protected void | writeDefaultConstructor()
Writes the default constructor. |
protected void | writeEqualsMethod()
Writes a general purpose equals method |
protected void | writeFileBody(PrintWriter pw)
Generate the binding for the given complex type.
|
protected void | writeFileHeader(PrintWriter pw)
Write a common header, including the package name, the class
declaration, and the opening curly brace.
|
protected void | writeFullConstructor()
Writes the full constructor.
|
protected void | writeHashCodeMethod()
Writes a general purpose hashCode method. |
protected void | writeMemberFields()
Writes the member fields. |
protected void | writeMinimalConstructor() |
protected void | writeSimpleConstructors()
Writes the constructors for SimpleTypes.
|
protected void | writeSimpleTypeGetter(String simpleValueType, String name, String returnString)
Method writeSimpleTypeGetter
|
protected void | writeSimpleTypeSetter(String simpleValueType)
Method writeSimpleTypeSetter
|
protected void | writeToStringMethod()
Writes the toString method
Currently the toString method is only written for
simpleTypes. |
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
Returns: "" or "abstract "
Returns: "" or " extends
Returns: " implements
Parameters: pw
Throws: IOException
Parameters: simpleValueType name returnString
Parameters: simpleValueType