org.apache.axis.wsdl.toJava
Class JavaEnumTypeWriter
- Generator
public class JavaEnumTypeWriter
This is Wsdl2java's Complex Type Writer. It writes the .java file.
void | generate() - Generate a java source file for enum class.
|
static Vector | getEnumValueIds(Vector bv) - Get the enumeration names for the values.
|
protected String | getImplementsText() - Return "implements java.io.Serializable ".
|
protected void | writeFileBody(PrintWriter pw) - Generate the binding for the given enumeration type.
|
getClassModifiers , getClassName , getClassText , getExtendsText , getFileName , getImplementsText , getPackage , registerFile , writeFileFooter , writeFileHeader , writeHeaderComments , writePackage |
closePrintWriter , generate , getFileName , getJavadocDescriptionPart , getPrintWriter , isFileGenerated , registerFile , verboseMessage , writeComment , writeComment , writeFileBody , writeFileFooter , writeFileHeader |
JavaEnumTypeWriter
protected JavaEnumTypeWriter(Emitter emitter,
TypeEntry type,
Vector elements)
Constructor.
emitter
- type
- elements
-
generate
public void generate()
throws IOException
Generate a java source file for enum class.
If the emitter works in deploy mode and the class already exists, the source wull not be generated.
- generate in interface Generator
- generate in interface JavaWriter
getEnumValueIds
public static Vector getEnumValueIds(Vector bv)
Get the enumeration names for the values.
The name is affected by whether all of the values of the enumeration
can be expressed as valid java identifiers.
bv
- Vector base and values vector from getEnumerationBaseAndValues
- Vector names of enum value identifiers.
writeFileBody
protected void writeFileBody(PrintWriter pw)
throws IOException
Generate the binding for the given enumeration type.
The values vector contains the base type (first index) and
the values (subsequent Strings)
- writeFileBody in interface JavaWriter
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.