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

Enum.Type (JAXRPC API) - JBoss 3.2.7 jaxrpc API Documentation 英文版文档


org.apache.axis.enum
Class Enum.Type

java.lang.Object
  extended byorg.apache.axis.enum.Enum.Type
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Scope.Type, Style.Type, Use.Type
Enclosing class:
Enum

public abstract static class Enum.Type
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
protected Enum.Type(String name, Enum[] enums)
           
 
Method Summary
 Enum getDefault()
           
 Enum getEnum(int enum)
          Returns name of enumerated value
 Enum getEnum(String enumName)
          Returns enumerated value of name
 Enum getEnum(String enumName, Enum dephault)
          Returns enumerated value of name

For large sets of enumerated values, a HashMap could be used to retrieve.

 String[] getEnumNames()
          Returns array of names for enumerated values
 String getName()
           
 boolean isValid(String enumName)
           
protected  void setDefault(Enum dephault)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Enum.Type

protected Enum.Type(String name,
                    Enum[] enums)
Method Detail

setDefault

protected void setDefault(Enum dephault)

getDefault

public Enum getDefault()

getName

public final String getName()

isValid

public final boolean isValid(String enumName)

size

public final int size()

getEnumNames

public final String[] getEnumNames()
Returns array of names for enumerated values


getEnum

public final Enum getEnum(int enum)
Returns name of enumerated value


getEnum

public final Enum getEnum(String enumName)
Returns enumerated value of name


getEnum

public final Enum getEnum(String enumName,
                          Enum dephault)
Returns enumerated value of name

For large sets of enumerated values, a HashMap could be used to retrieve. It's not clear if there is any benefit for small (3 to 4) sets, as used now.



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