Package org.cyclos.model.users.groups
Enum BasicGroupNature
- java.lang.Object
-
- java.lang.Enum<BasicGroupNature>
-
- org.cyclos.model.users.groups.BasicGroupNature
-
- All Implemented Interfaces:
Serializable,Comparable<BasicGroupNature>,HasMessageKey
public enum BasicGroupNature extends Enum<BasicGroupNature> implements HasMessageKey
Contains the possible natures of a BasicGroup
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADMIN_GROUPBROKER_GROUPGROUP_SETMEMBER_GROUP
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static BasicGroupNaturevalueOf(String name)Returns the enum constant of this type with the specified name.static BasicGroupNature[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GROUP_SET
public static final BasicGroupNature GROUP_SET
-
ADMIN_GROUP
public static final BasicGroupNature ADMIN_GROUP
-
BROKER_GROUP
public static final BasicGroupNature BROKER_GROUP
-
MEMBER_GROUP
public static final BasicGroupNature MEMBER_GROUP
-
-
Method Detail
-
values
public static BasicGroupNature[] 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 (BasicGroupNature c : BasicGroupNature.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BasicGroupNature valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
-