JavaTM 2 Platform
Standard Ed. 6

javax.annotation
列舉 Resource.AuthenticationType

java.lang.Object
  繼承者 java.lang.Enum<Resource.AuthenticationType>
      繼承者 javax.annotation.Resource.AuthenticationType
所有已實作的介面:
Serializable, Comparable<Resource.AuthenticationType>
正在封閉類別:
Resource

public static enum Resource.AuthenticationType
extends Enum<Resource.AuthenticationType>

資源的兩種可能驗證型別。


列舉常數摘要
APPLICATION
           
CONTAINER
           
 
方法摘要
static Resource.AuthenticationType valueOf(String name)
          返回帶有指定名稱的該型別的列舉常數。
static Resource.AuthenticationType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
從類別 java.lang.Enum 繼承的方法
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
從類別 java.lang.Object 繼承的方法
getClass, notify, notifyAll, wait, wait, wait
 

列舉常數詳細資訊

CONTAINER

public static final Resource.AuthenticationType CONTAINER

APPLICATION

public static final Resource.AuthenticationType APPLICATION
方法詳細資訊

values

public static final Resource.AuthenticationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for(Resource.AuthenticationType c : Resource.AuthenticationType.values())
        System.out.println(c);

返回:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Resource.AuthenticationType valueOf(String name)
返回帶有指定名稱的該型別的列舉常數。 字元串必須與用於宣告該型別的列舉常數的 標識符完全比對。(不允許有多餘 的空格。)

參數:
指定要返回的列舉常數的名稱。 -
返回:
返回帶有指定名稱的列舉常數
拋出:
如果該列舉型別沒有帶有指定名稱的常數, - 則拋出 IllegalArgumentException

JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only