Package org.biojava.nbio.structure
Enum ExperimentalTechnique
- java.lang.Object
-
- java.lang.Enum<ExperimentalTechnique>
-
- org.biojava.nbio.structure.ExperimentalTechnique
-
- All Implemented Interfaces:
Serializable
,Comparable<ExperimentalTechnique>
public enum ExperimentalTechnique extends Enum<ExperimentalTechnique>
An enum to represent the experimental technique of a PDB structure- Author:
- duarte_j
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ELECTRON_CRYSTALLOGRAPHY
ELECTRON_MICROSCOPY
FIBER_DIFFRACTION
FLUORESCENCE_TRANSFER
INFRARED_SPECTROSCOPY
NEUTRON_DIFFRACTION
POWDER_DIFFRACTION
SOLID_STATE_NMR
SOLUTION_NMR
SOLUTION_SCATTERING
XRAY_DIFFRACTION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExperimentalTechnique
getByName(String expTechniqueName)
Returns the ExpTechnique given an experimental technique name as used in the PDB, e.g.String
getName()
boolean
isCrystallographic()
static boolean
isCrystallographic(Set<ExperimentalTechnique> techniques)
Given a Set of ExperimentalTechniques returns true if at least one is crystallographicboolean
isNmr()
static boolean
isNmr(Set<ExperimentalTechnique> techniques)
Given a Set of ExperimentalTechniques returns true if at least one is NMRString
toString()
static ExperimentalTechnique
valueOf(String name)
Returns the enum constant of this type with the specified name.static ExperimentalTechnique[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
XRAY_DIFFRACTION
public static final ExperimentalTechnique XRAY_DIFFRACTION
-
SOLUTION_NMR
public static final ExperimentalTechnique SOLUTION_NMR
-
SOLID_STATE_NMR
public static final ExperimentalTechnique SOLID_STATE_NMR
-
ELECTRON_MICROSCOPY
public static final ExperimentalTechnique ELECTRON_MICROSCOPY
-
ELECTRON_CRYSTALLOGRAPHY
public static final ExperimentalTechnique ELECTRON_CRYSTALLOGRAPHY
-
FIBER_DIFFRACTION
public static final ExperimentalTechnique FIBER_DIFFRACTION
-
NEUTRON_DIFFRACTION
public static final ExperimentalTechnique NEUTRON_DIFFRACTION
-
SOLUTION_SCATTERING
public static final ExperimentalTechnique SOLUTION_SCATTERING
-
POWDER_DIFFRACTION
public static final ExperimentalTechnique POWDER_DIFFRACTION
-
FLUORESCENCE_TRANSFER
public static final ExperimentalTechnique FLUORESCENCE_TRANSFER
-
INFRARED_SPECTROSCOPY
public static final ExperimentalTechnique INFRARED_SPECTROSCOPY
-
-
Method Detail
-
values
public static ExperimentalTechnique[] 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 (ExperimentalTechnique c : ExperimentalTechnique.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExperimentalTechnique 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
-
isCrystallographic
public boolean isCrystallographic()
-
isNmr
public boolean isNmr()
-
getByName
public static ExperimentalTechnique getByName(String expTechniqueName)
Returns the ExpTechnique given an experimental technique name as used in the PDB, e.g. "X-RAY DIFFRACTION" returnsXRAY_DIFFRACTION
- Parameters:
expTechniqueName
- the ExpTechnique value or null if string doesn't match one of the known PDB experimental strings- Returns:
-
isCrystallographic
public static boolean isCrystallographic(Set<ExperimentalTechnique> techniques)
Given a Set of ExperimentalTechniques returns true if at least one is crystallographic- Returns:
- true if at least 1 of the techniques is crystallographic, false if none of the techniques are crystallographic
- Throws:
NullPointerException
- if input is null
-
isNmr
public static boolean isNmr(Set<ExperimentalTechnique> techniques)
Given a Set of ExperimentalTechniques returns true if at least one is NMR- Returns:
- true if at least 1 of the techniques is NMR, false if none of the techniques are NMR
- Throws:
NullPointerException
- if input is null
-
toString
public String toString()
- Overrides:
toString
in classEnum<ExperimentalTechnique>
-
-