Package org.biojava.nbio.structure.chem
Enum PolymerType
- java.lang.Object
-
- java.lang.Enum<PolymerType>
-
- org.biojava.nbio.structure.chem.PolymerType
-
- All Implemented Interfaces:
Serializable
,Comparable<PolymerType>
public enum PolymerType extends Enum<PolymerType> implements Serializable
Enumerates the classification of polymers. This information is derived from the mmcif dictionary- Since:
- 1.7
- Author:
- mulvaney, Andreas Prlic
- See Also:
- link into mmCIF dictionary
-
-
Enum Constant Summary
Enum Constants Enum Constant Description cyclicPeptide
cyclic peptidesdna
polydeoxyribonucleotidednarna
polydeoxyribonucleotide/polyribonucleotide hybriddpeptide
polypeptide(D)lpolysaccharide
polysaccharide(L)otherPolymer
otherpeptide
polypeptide(L)peptideNucleicAcid
Peptide nucleic acidspolysaccharide
polysaccharide(D)rna
polyribonucleotideunknown
if all else fails...
-
Field Summary
Fields Modifier and Type Field Description static Set<PolymerType>
ALL_POLYMER_TYPES
Convenience Set of all polymer types.static Set<PolymerType>
DNA_ONLY
Convenience Set of polymer types classified as DNA.String
entity_poly_type
static Set<PolymerType>
POLYNUCLEOTIDE_ONLY
Convenience Set of polymer types classified as DNA.static Set<PolymerType>
PROTEIN_ONLY
Convenience Set of polymer types classified as protein.static Set<PolymerType>
RNA_ONLY
Convenience Set of polymer types classified as RNA.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PolymerType
polymerTypeFromString(String polymerTypeString)
static PolymerType
valueOf(String name)
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 Detail
-
peptide
public static final PolymerType peptide
polypeptide(L)
-
dpeptide
public static final PolymerType dpeptide
polypeptide(D)
-
dna
public static final PolymerType dna
polydeoxyribonucleotide
-
rna
public static final PolymerType rna
polyribonucleotide
-
dnarna
public static final PolymerType dnarna
polydeoxyribonucleotide/polyribonucleotide hybrid
-
polysaccharide
public static final PolymerType polysaccharide
polysaccharide(D)
-
lpolysaccharide
public static final PolymerType lpolysaccharide
polysaccharide(L)
-
otherPolymer
public static final PolymerType otherPolymer
other
-
cyclicPeptide
public static final PolymerType cyclicPeptide
cyclic peptides
-
peptideNucleicAcid
public static final PolymerType peptideNucleicAcid
Peptide nucleic acids
-
unknown
public static final PolymerType unknown
if all else fails...
-
-
Field Detail
-
entity_poly_type
public final String entity_poly_type
-
PROTEIN_ONLY
public static final Set<PolymerType> PROTEIN_ONLY
Convenience Set of polymer types classified as protein. This only containspeptide
-
DNA_ONLY
public static final Set<PolymerType> DNA_ONLY
Convenience Set of polymer types classified as DNA. This only containsdna
-
RNA_ONLY
public static final Set<PolymerType> RNA_ONLY
Convenience Set of polymer types classified as RNA. This only containsrna
-
POLYNUCLEOTIDE_ONLY
public static final Set<PolymerType> POLYNUCLEOTIDE_ONLY
-
ALL_POLYMER_TYPES
public static final Set<PolymerType> ALL_POLYMER_TYPES
Convenience Set of all polymer types.
-
-
Method Detail
-
values
public static PolymerType[] 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 (PolymerType c : PolymerType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PolymerType 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
-
polymerTypeFromString
public static PolymerType polymerTypeFromString(String polymerTypeString)
-
-