站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档

JavaEnumTypeWriter (JAXRPC API) - JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档


org.apache.axis.wsdl.toJava
Class JavaEnumTypeWriter

java.lang.Object
  extended byorg.apache.axis.wsdl.toJava.JavaWriter
      extended byorg.apache.axis.wsdl.toJava.JavaClassWriter
          extended byorg.apache.axis.wsdl.toJava.JavaEnumTypeWriter
All Implemented Interfaces:
Generator

public class JavaEnumTypeWriter
extends JavaClassWriter

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


Field Summary
 
Fields inherited from class org.apache.axis.wsdl.toJava.JavaClassWriter
className, namespaces, packageName
 
Fields inherited from class org.apache.axis.wsdl.toJava.JavaWriter
emitter, type
 
Constructor Summary
protected JavaEnumTypeWriter(Emitter emitter, TypeEntry type, Vector elements)
          Constructor.
 
Method Summary
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.
 
Methods inherited from class org.apache.axis.wsdl.toJava.JavaClassWriter
getClassModifiers, getClassName, getClassText, getExtendsText, getFileName, getPackage, registerFile, writeFileFooter, writeFileHeader, writeHeaderComments, writePackage
 
Methods inherited from class org.apache.axis.wsdl.toJava.JavaWriter
closePrintWriter, generate, getPrintWriter, isFileGenerated, verboseMessage, writeComment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaEnumTypeWriter

protected JavaEnumTypeWriter(Emitter emitter,
                             TypeEntry type,
                             Vector elements)
Constructor.

Method Detail

getImplementsText

protected String getImplementsText()
Return "implements java.io.Serializable ".

Overrides:
getImplementsText in class JavaClassWriter
Returns:
""

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)

Specified by:
writeFileBody in class JavaWriter
Throws:
IOException

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.

Parameters:
bv - Vector base and values vector from getEnumerationBaseAndValues
Returns:
Vector names of enum value identifiers.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.