Package org.biojava.nbio.structure
Enum Class ExperimentalTechnique
- All Implemented Interfaces:
Serializable
,Comparable<ExperimentalTechnique>
,Constable
An enum to represent the experimental technique of a PDB structure
- Author:
- duarte_j
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExperimentalTechnique
Returns the ExpTechnique given an experimental technique name as used in the PDB, e.g.getName()
boolean
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 NMRtoString()
static ExperimentalTechnique
Returns the enum constant of this class with the specified name.static ExperimentalTechnique[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
XRAY_DIFFRACTION
-
SOLUTION_NMR
-
SOLID_STATE_NMR
-
ELECTRON_MICROSCOPY
-
ELECTRON_CRYSTALLOGRAPHY
-
FIBER_DIFFRACTION
-
NEUTRON_DIFFRACTION
-
SOLUTION_SCATTERING
-
POWDER_DIFFRACTION
-
FLUORESCENCE_TRANSFER
-
INFRARED_SPECTROSCOPY
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
-
isCrystallographic
public boolean isCrystallographic() -
isNmr
public boolean isNmr() -
getByName
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
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
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
- Overrides:
toString
in classEnum<ExperimentalTechnique>
-