Package org.biojava.nbio.structure
Enum PDBStatus.Status
- java.lang.Object
-
- java.lang.Enum<PDBStatus.Status>
-
- org.biojava.nbio.structure.PDBStatus.Status
-
- All Implemented Interfaces:
Serializable
,Comparable<PDBStatus.Status>
- Enclosing class:
- PDBStatus
public static enum PDBStatus.Status extends Enum<PDBStatus.Status>
Represents the status of PDB IDs. 'OBSOLETE' and 'CURRENT' are the most common.- Author:
- Spencer Bliven
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PDBStatus.Status
fromString(String statusStr)
static PDBStatus.Status
valueOf(String name)
Returns the enum constant of this type with the specified name.static PDBStatus.Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OBSOLETE
public static final PDBStatus.Status OBSOLETE
-
CURRENT
public static final PDBStatus.Status CURRENT
-
AUTH
public static final PDBStatus.Status AUTH
-
HOLD
public static final PDBStatus.Status HOLD
-
HPUB
public static final PDBStatus.Status HPUB
-
POLC
public static final PDBStatus.Status POLC
-
PROC
public static final PDBStatus.Status PROC
-
REFI
public static final PDBStatus.Status REFI
-
REPL
public static final PDBStatus.Status REPL
-
WAIT
public static final PDBStatus.Status WAIT
-
WDRN
public static final PDBStatus.Status WDRN
-
MODEL
public static final PDBStatus.Status MODEL
-
UNKNOWN
public static final PDBStatus.Status UNKNOWN
-
-
Method Detail
-
values
public static PDBStatus.Status[] 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 (PDBStatus.Status c : PDBStatus.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PDBStatus.Status 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
-
fromString
public static PDBStatus.Status fromString(String statusStr)
- Parameters:
statusStr
-- Returns:
- Throws:
IllegalArgumentException
- If the string is not recognized
-
-