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_URLBODYthe field name for body.BODY_IDthe field name for body id.COLLECTION_IDSthe field name for the collection IDsIDthe field name for the unique ID of this message.IN_REPLY_TOthe field name for the Parent Message Id for this message.RECIPIENTSthe field name for recipient list.REPLIESthe field name for replies to this messageSENDER_IDthe field name for the ID of the person who sent this message.STATUSthe field name for status.TIME_SENTthe field name for the time this message was sent.TITLEthe field name for title.TITLE_IDthe field name for title id.TYPEthe field name for type.UPDATEDthe field name for updated time stamp.URLSthe 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 StringtoString()static Message.FieldvalueOf(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:
toStringin classEnum<Message.Field>- Returns:
- a string representation of the enum.
-
-