Enum PublishableStatus
- java.lang.Object
-
- java.lang.Enum<PublishableStatus>
-
- org.apache.camel.component.wordpress.api.model.PublishableStatus
-
- All Implemented Interfaces:
Serializable,Comparable<PublishableStatus>
public enum PublishableStatus extends Enum<PublishableStatus>
A named status for the object.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PublishableStatusfromString(String arg)static PublishableStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static PublishableStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
publish
public static final PublishableStatus publish
-
future
public static final PublishableStatus future
-
draft
public static final PublishableStatus draft
-
pending
public static final PublishableStatus pending
-
private_
public static final PublishableStatus private_
-
trash
public static final PublishableStatus trash
-
auto_draft
public static final PublishableStatus auto_draft
-
inherit
public static final PublishableStatus inherit
-
any
public static final PublishableStatus any
-
-
Method Detail
-
values
public static PublishableStatus[] 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 (PublishableStatus c : PublishableStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PublishableStatus 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
-
fromString
public static PublishableStatus fromString(String arg)
- Parameters:
arg-- Returns:
- See Also:
- Java: Enum case insensitive Jersey Query Param Binding
-
-