Enum PredefinedStampType
-
- All Implemented Interfaces:
public enum PredefinedStampType
List of predefined stamp types.
-
-
Field Summary
Fields Modifier and Type Field Description public final StampType
stampType
public final int
titleResId
-
Enum Constant Summary
Enum Constants Enum Constant Description APPROVED
EXPERIMENTAL
NOT_APPROVED
AS_IS
EXPIRED
DRAFT
FINAL
SOLD
DEPARTMENTAL
CONFIDENTIAL
FOR_PUBLIC_RELEASE
NOT_FOR_PUBLIC_RELEASE
FOR_COMMENT
TOP_SECRET
COMPLETED
VOID
PRELIMINARY_RESULTS
INFORMATION_ONLY
REVISED
ACCEPTED
REJECTED
INITIAL_HERE
SIGN_HERE
WITNESS
CUSTOM
-
Method Summary
Modifier and Type Method Description static PredefinedStampType
fromName(@Nullable() String name)
Returns corresponding predefined stamp type from a given name. static PredefinedStampType
fromStampType(@Nullable() StampType stampType)
Returns corresponding predefined stamp type from a given stamp type. String
getName()
Returns name of the predefined stamp type. boolean
isStandard()
Whether this is a standard stamp type. static Array<PredefinedStampType>
values()
Returns an array containing the constants of this enum type, in the order they're declared. static PredefinedStampType
valueOf(String name)
Returns the enum constant of this type with the specified name. StampType
getStampType()
Returns the stamp type this predefined stamp type is using. int
getTitleResId()
String resource id for localized stamp subject. -
-
Method Detail
-
fromName
@Nullable() static PredefinedStampType fromName(@Nullable() String name)
Returns corresponding predefined stamp type from a given name.
- Parameters:
name
- Name of the predefined stamp type.- Returns:
Corresponding predefined stamp type or
null
when no correspondence is found.
-
fromStampType
@Nullable() static PredefinedStampType fromStampType(@Nullable() StampType stampType)
Returns corresponding predefined stamp type from a given stamp type.
- Parameters:
stampType
- The StampType to lookup the PredefinedStampType for.- Returns:
Corresponding predefined stamp type or
null
when no correspondence is found.
-
getName
@Nullable() String getName()
Returns name of the predefined stamp type.
- Returns:
Name of the predefined stamp type.
-
isStandard
boolean isStandard()
Whether this is a standard stamp type. True for all except
CUSTOM
.
-
values
static Array<PredefinedStampType> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static PredefinedStampType 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.)
- Returns:
the enum constant with the specified name
-
getStampType
@Nullable() StampType getStampType()
Returns the stamp type this predefined stamp type is using.
- Returns:
The stamp type this predefined stamp type is using.
-
getTitleResId
@StringRes() int getTitleResId()
String resource id for localized stamp subject.
- Returns:
Localized stamp subject res id.
-
-
-
-