1 7 8 package javax.management.relation; 9 10 16 public class RoleStatus { 17 18 22 25 public static final int NO_ROLE_WITH_NAME = 1; 26 29 public static final int ROLE_NOT_READABLE = 2; 30 33 public static final int ROLE_NOT_WRITABLE = 3; 34 38 public static final int LESS_THAN_MIN_ROLE_DEGREE = 4; 39 43 public static final int MORE_THAN_MAX_ROLE_DEGREE = 5; 44 48 public static final int REF_MBEAN_OF_INCORRECT_CLASS = 6; 49 53 public static final int REF_MBEAN_NOT_REGISTERED = 7; 54 55 63 public static boolean isRoleStatus(int theRoleStatus) { 64 if (theRoleStatus != NO_ROLE_WITH_NAME && 65 theRoleStatus != ROLE_NOT_READABLE && 66 theRoleStatus != ROLE_NOT_WRITABLE && 67 theRoleStatus != LESS_THAN_MIN_ROLE_DEGREE && 68 theRoleStatus != MORE_THAN_MAX_ROLE_DEGREE && 69 theRoleStatus != REF_MBEAN_OF_INCORRECT_CLASS && 70 theRoleStatus != REF_MBEAN_NOT_REGISTERED) { 71 return false; 72 } 73 return true; 74 } 75 } 76 | Popular Tags |