Package tigase.archive.unified.db
Enum UnifiedArchiveRepository.ItemType
- java.lang.Object
-
- java.lang.Enum<UnifiedArchiveRepository.ItemType>
-
- tigase.archive.unified.db.UnifiedArchiveRepository.ItemType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<UnifiedArchiveRepository.ItemType>
- Enclosing interface:
- UnifiedArchiveRepository<DS extends tigase.db.DataSource>
public static enum UnifiedArchiveRepository.ItemType extends java.lang.Enum<UnifiedArchiveRepository.ItemType>
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.EnumSet
MESSAGE_TYPES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UnifiedArchiveRepository.ItemType
from(short value)
static UnifiedArchiveRepository.ItemType
from(java.lang.String name)
short
getShortValue()
java.lang.String
getStringValue()
static UnifiedArchiveRepository.ItemType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static UnifiedArchiveRepository.ItemType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
message
public static final UnifiedArchiveRepository.ItemType message
-
chat
public static final UnifiedArchiveRepository.ItemType chat
-
groupchat
public static final UnifiedArchiveRepository.ItemType groupchat
-
presence
public static final UnifiedArchiveRepository.ItemType presence
-
login
public static final UnifiedArchiveRepository.ItemType login
-
logout
public static final UnifiedArchiveRepository.ItemType logout
-
call
public static final UnifiedArchiveRepository.ItemType call
-
-
Method Detail
-
values
public static UnifiedArchiveRepository.ItemType[] 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 (UnifiedArchiveRepository.ItemType c : UnifiedArchiveRepository.ItemType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UnifiedArchiveRepository.ItemType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getShortValue
public short getShortValue()
-
getStringValue
public java.lang.String getStringValue()
-
from
public static UnifiedArchiveRepository.ItemType from(short value)
-
from
public static UnifiedArchiveRepository.ItemType from(java.lang.String name)
-
-