Package tigase.archive.db
Enum MessageArchiveRepository.Direction
- java.lang.Object
-
- java.lang.Enum<MessageArchiveRepository.Direction>
-
- tigase.archive.db.MessageArchiveRepository.Direction
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MessageArchiveRepository.Direction>
- Enclosing interface:
- MessageArchiveRepository<Q extends Query,DS extends tigase.db.DataSource>
public static enum MessageArchiveRepository.Direction extends java.lang.Enum<MessageArchiveRepository.Direction>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MessageArchiveRepository.Direction
getDirection(short val)
static MessageArchiveRepository.Direction
getDirection(java.lang.String val)
static MessageArchiveRepository.Direction
getDirection(tigase.xmpp.jid.BareJID owner, tigase.xmpp.jid.BareJID from)
short
getValue()
java.lang.String
toElementName()
static MessageArchiveRepository.Direction
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MessageArchiveRepository.Direction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
incoming
public static final MessageArchiveRepository.Direction incoming
-
outgoing
public static final MessageArchiveRepository.Direction outgoing
-
-
Method Detail
-
values
public static MessageArchiveRepository.Direction[] 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 (MessageArchiveRepository.Direction c : MessageArchiveRepository.Direction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MessageArchiveRepository.Direction 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
-
getDirection
public static MessageArchiveRepository.Direction getDirection(tigase.xmpp.jid.BareJID owner, tigase.xmpp.jid.BareJID from)
-
getDirection
public static MessageArchiveRepository.Direction getDirection(short val)
-
getDirection
public static MessageArchiveRepository.Direction getDirection(java.lang.String val)
-
getValue
public short getValue()
-
toElementName
public java.lang.String toElementName()
-
-