Enum DirectoryItem.ITEM_TYPE
- java.lang.Object
-
- java.lang.Enum<DirectoryItem.ITEM_TYPE>
-
- org.silverpeas.web.directory.model.DirectoryItem.ITEM_TYPE
-
- All Implemented Interfaces:
Serializable
,Comparable<DirectoryItem.ITEM_TYPE>
- Enclosing interface:
- DirectoryItem
public static enum DirectoryItem.ITEM_TYPE extends Enum<DirectoryItem.ITEM_TYPE>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DirectoryItem.ITEM_TYPE
valueOf(String name)
Returns the enum constant of this type with the specified name.static DirectoryItem.ITEM_TYPE[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
USER
public static final DirectoryItem.ITEM_TYPE USER
The item in the directory refers a user in Silverpeas
-
CONTACT
public static final DirectoryItem.ITEM_TYPE CONTACT
The item in the directory refers a contact of a user.
-
-
Method Detail
-
values
public static DirectoryItem.ITEM_TYPE[] 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 (DirectoryItem.ITEM_TYPE c : DirectoryItem.ITEM_TYPE.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DirectoryItem.ITEM_TYPE 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
-
-