| Enum Constant and Description |
|---|
ATTACHMENT
Post is an attachment.
|
PAGE
Post is a page.
|
POST
Post is a regular post.
|
REVISION
Post is a revision.
|
UNKNOWN
Post type is unknown.
|
| Modifier and Type | Method and Description |
|---|---|
static Post.Type |
fromString(java.lang.String str)
Creates a post type from a string.
|
static Post.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Post.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Post.Type POST
public static final Post.Type PAGE
public static final Post.Type ATTACHMENT
public static final Post.Type REVISION
public static final Post.Type UNKNOWN
public static Post.Type[] values()
for (Post.Type c : Post.Type.values()) System.out.println(c);
public static Post.Type 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.Type fromString(java.lang.String str)
str - The type string.