public enum ContentState extends Enum<ContentState>
Enum Constant and Description |
---|
Approved |
NeedReview |
New |
Rejected |
Translated |
Modifier and Type | Field and Description |
---|---|
static Collection<ContentState> |
DRAFT_STATES |
static Collection<ContentState> |
REVIEWED_STATES |
static Collection<ContentState> |
TRANSLATED_STATES |
Modifier and Type | Method and Description |
---|---|
boolean |
isApproved() |
boolean |
isRejectedOrFuzzy() |
boolean |
isReviewed() |
boolean |
isTranslated() |
boolean |
isUntranslated() |
static ContentState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContentState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContentState New
public static final ContentState NeedReview
public static final ContentState Translated
public static final ContentState Approved
public static final ContentState Rejected
public static final Collection<ContentState> DRAFT_STATES
public static final Collection<ContentState> TRANSLATED_STATES
public static final Collection<ContentState> REVIEWED_STATES
public static ContentState[] values()
for (ContentState c : ContentState.values()) System.out.println(c);
public static ContentState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isTranslated()
public boolean isRejectedOrFuzzy()
public boolean isReviewed()
public boolean isUntranslated()
public boolean isApproved()
Copyright © 2017 Zanata Project. All rights reserved.