Enum Message.Field
- java.lang.Object
-
- java.lang.Enum<Message.Field>
-
- org.wso2.carbon.registry.social.api.message.Message.Field
-
- All Implemented Interfaces:
Serializable
,Comparable<Message.Field>
- Enclosing interface:
- Message
public static enum Message.Field extends Enum<Message.Field>
An enumeration of field names in a message.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APP_URL
BODY
the field name for body.BODY_ID
the field name for body id.COLLECTION_IDS
the field name for the collection IDsID
the field name for the unique ID of this message.IN_REPLY_TO
the field name for the Parent Message Id for this message.RECIPIENTS
the field name for recipient list.REPLIES
the field name for replies to this messageSENDER_ID
the field name for the ID of the person who sent this message.STATUS
the field name for status.TIME_SENT
the field name for the time this message was sent.TITLE
the field name for title.TITLE_ID
the field name for title id.TYPE
the field name for type.UPDATED
the field name for updated time stamp.URLS
the field name for urls.
-
Field Summary
Fields Modifier and Type Field Description static Set<String>
ALL_FIELDS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
static Message.Field
valueOf(String name)
Returns the enum constant of this type with the specified name.static Message.Field[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
APP_URL
public static final Message.Field APP_URL
-
BODY
public static final Message.Field BODY
the field name for body.
-
BODY_ID
public static final Message.Field BODY_ID
the field name for body id.
-
COLLECTION_IDS
public static final Message.Field COLLECTION_IDS
the field name for the collection IDs
-
ID
public static final Message.Field ID
the field name for the unique ID of this message.
-
IN_REPLY_TO
public static final Message.Field IN_REPLY_TO
the field name for the Parent Message Id for this message.
-
REPLIES
public static final Message.Field REPLIES
the field name for replies to this message
-
RECIPIENTS
public static final Message.Field RECIPIENTS
the field name for recipient list.
-
SENDER_ID
public static final Message.Field SENDER_ID
the field name for the ID of the person who sent this message.
-
TIME_SENT
public static final Message.Field TIME_SENT
the field name for the time this message was sent.
-
TITLE
public static final Message.Field TITLE
the field name for title.
-
TITLE_ID
public static final Message.Field TITLE_ID
the field name for title id.
-
TYPE
public static final Message.Field TYPE
the field name for type.
-
STATUS
public static final Message.Field STATUS
the field name for status.
-
UPDATED
public static final Message.Field UPDATED
the field name for updated time stamp.
-
URLS
public static final Message.Field URLS
the field name for urls.
-
-
Method Detail
-
values
public static Message.Field[] 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 (Message.Field c : Message.Field.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Message.Field 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<Message.Field>
- Returns:
- a string representation of the enum.
-
-