public class JavaEnumTypeWriter extends JavaClassWriter
className, namespaces, packageName
emitter, LINE_LENGTH
Modifier | Constructor and Description |
---|---|
protected |
JavaEnumTypeWriter(Emitter emitter,
TypeEntry type,
java.util.Vector elements)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
generate()
Generate a java source file for enum class.
|
static java.util.Vector |
getEnumValueIds(java.util.Vector bv)
Get the enumeration names for the values.
|
protected java.lang.String |
getImplementsText()
Return "implements java.io.Serializable ".
|
protected void |
writeFileBody(java.io.PrintWriter pw)
Generate the binding for the given enumeration type.
|
getClassModifiers, getClassName, getClassText, getExtendsText, getFileName, getPackage, registerFile, writeFileFooter, writeFileHeader, writeHeaderComments, writePackage
closePrintWriter, getJavadocDescriptionPart, getPrintWriter, isFileGenerated, verboseMessage, writeComment, writeComment
protected java.lang.String getImplementsText()
getImplementsText
in class JavaClassWriter
protected void writeFileBody(java.io.PrintWriter pw) throws java.io.IOException
writeFileBody
in class JavaWriter
pw
- java.io.IOException
public static java.util.Vector getEnumValueIds(java.util.Vector bv)
bv
- Vector base and values vector from getEnumerationBaseAndValuespublic void generate() throws java.io.IOException
generate
in interface Generator
generate
in class JavaWriter
java.io.IOException
Copyright © 2005 Apache Web Services Project. All Rights Reserved.