public static enum Post.Status extends java.lang.Enum<Post.Status>
| Enum Constant and Description |
|---|
AUTO_DRAFT
Post is auto-draft.
|
DRAFT
Post is a draft.
|
INHERIT
Status is inherited from the parent.
|
PENDING
Post is pending publication.
|
PRIVATE
Post is private.
|
PUBLISH
Post is published.
|
UNKNOWN
Post status is unknown.
|
| Modifier and Type | Method and Description |
|---|---|
static Post.Status |
fromString(java.lang.String str)
Creates status from a string.
|
static Post.Status |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Post.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Post.Status DRAFT
public static final Post.Status AUTO_DRAFT
public static final Post.Status PENDING
public static final Post.Status PRIVATE
public static final Post.Status PUBLISH
public static final Post.Status INHERIT
public static final Post.Status UNKNOWN
public static Post.Status[] values()
for (Post.Status c : Post.Status.values()) System.out.println(c);
public static Post.Status valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static Post.Status fromString(java.lang.String str)
str - The status string.