Package org.biojava.nbio.structure.chem
Enum PolymerType
- All Implemented Interfaces:
Serializable
,Comparable<PolymerType>
,java.lang.constant.Constable
Enumerates the classification of polymers.
This information is derived from the mmcif dictionary
- Since:
- 1.7
- Author:
- mulvaney, Andreas Prlic
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptioncyclic peptidespolydeoxyribonucleotidepolydeoxyribonucleotide/polyribonucleotide hybridpolypeptide(D)polysaccharide(L)otherpolypeptide(L)Peptide nucleic acidspolysaccharide(D)polyribonucleotideif all else fails... -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Set
<PolymerType> ConvenienceSet
of all polymer types.static final Set
<PolymerType> ConvenienceSet
of polymer types classified as DNA.final String
static final Set
<PolymerType> ConvenienceSet
of polymer types classified as DNA.static final Set
<PolymerType> ConvenienceSet
of polymer types classified as protein.static final Set
<PolymerType> ConvenienceSet
of polymer types classified as RNA. -
Method Summary
Modifier and TypeMethodDescriptionstatic PolymerType
polymerTypeFromString
(String polymerTypeString) static PolymerType
Returns the enum constant of this type with the specified name.static PolymerType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
peptide
polypeptide(L) -
dpeptide
polypeptide(D) -
dna
polydeoxyribonucleotide -
rna
polyribonucleotide -
dnarna
polydeoxyribonucleotide/polyribonucleotide hybrid -
polysaccharide
polysaccharide(D) -
lpolysaccharide
polysaccharide(L) -
otherPolymer
other -
cyclicPeptide
cyclic peptides -
peptideNucleicAcid
Peptide nucleic acids -
unknown
if all else fails...
-
-
Field Details
-
entity_poly_type
-
PROTEIN_ONLY
ConvenienceSet
of polymer types classified as protein. This only containspeptide
-
DNA_ONLY
ConvenienceSet
of polymer types classified as DNA. This only containsdna
-
RNA_ONLY
ConvenienceSet
of polymer types classified as RNA. This only containsrna
-
POLYNUCLEOTIDE_ONLY
-
ALL_POLYMER_TYPES
ConvenienceSet
of all polymer types.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
polymerTypeFromString
-