Enum OAIPMHerrorcodeType
- java.lang.Object
-
- java.lang.Enum<OAIPMHerrorcodeType>
-
- com.lyncode.xoai.dataprovider.xml.oaipmh.OAIPMHerrorcodeType
-
- All Implemented Interfaces:
Serializable,Comparable<OAIPMHerrorcodeType>
public enum OAIPMHerrorcodeType extends Enum<OAIPMHerrorcodeType>
Java class for OAI-PMHerrorcodeType. The following schema fragment specifies the expected content contained within this class.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_ARGUMENTBAD_RESUMPTION_TOKENBAD_VERBCANNOT_DISSEMINATE_FORMATID_DOES_NOT_EXISTNO_METADATA_FORMATSNO_RECORDS_MATCHNO_SET_HIERARCHY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OAIPMHerrorcodeTypefromValue(String v)Stringvalue()static OAIPMHerrorcodeTypevalueOf(String name)Returns the enum constant of this type with the specified name.static OAIPMHerrorcodeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CANNOT_DISSEMINATE_FORMAT
public static final OAIPMHerrorcodeType CANNOT_DISSEMINATE_FORMAT
-
ID_DOES_NOT_EXIST
public static final OAIPMHerrorcodeType ID_DOES_NOT_EXIST
-
BAD_ARGUMENT
public static final OAIPMHerrorcodeType BAD_ARGUMENT
-
BAD_VERB
public static final OAIPMHerrorcodeType BAD_VERB
-
NO_METADATA_FORMATS
public static final OAIPMHerrorcodeType NO_METADATA_FORMATS
-
NO_RECORDS_MATCH
public static final OAIPMHerrorcodeType NO_RECORDS_MATCH
-
BAD_RESUMPTION_TOKEN
public static final OAIPMHerrorcodeType BAD_RESUMPTION_TOKEN
-
NO_SET_HIERARCHY
public static final OAIPMHerrorcodeType NO_SET_HIERARCHY
-
-
Method Detail
-
values
public static OAIPMHerrorcodeType[] 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 (OAIPMHerrorcodeType c : OAIPMHerrorcodeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OAIPMHerrorcodeType 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
-
value
public String value()
-
fromValue
public static OAIPMHerrorcodeType fromValue(String v)
-
-