public enum AuthCode extends Enum<AuthCode>
| 枚举常量和说明 |
|---|
LOGIC |
REQ_GUEST |
REQ_LICENSE |
REQ_LOGIN |
REQ_PERM |
REQ_PERMS |
REQ_PERMS_ANY |
REQ_ROLE |
REQ_ROLES |
REQ_ROLES_ANY |
RUNTIME |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getCode() |
String |
getMsg() |
void |
setCode(int code) |
void |
setMsg(String msg) |
static AuthCode |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static AuthCode[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final AuthCode REQ_LICENSE
public static final AuthCode REQ_LOGIN
public static final AuthCode REQ_PERM
public static final AuthCode REQ_PERMS
public static final AuthCode REQ_PERMS_ANY
public static final AuthCode REQ_ROLE
public static final AuthCode REQ_ROLES
public static final AuthCode REQ_ROLES_ANY
public static final AuthCode REQ_GUEST
public static final AuthCode LOGIC
public static final AuthCode RUNTIME
public static AuthCode[] values()
for (AuthCode c : AuthCode.values()) System.out.println(c);
public static AuthCode valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getCode()
public void setCode(int code)
public String getMsg()
public void setMsg(String msg)
Copyright © 2020. All rights reserved.