Enum PolymerType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<PolymerType>

    public enum PolymerType
    extends java.lang.Enum<PolymerType>
    implements java.io.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
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static PolymerType polymerTypeFromString​(java.lang.String polymerType)  
      static PolymerType valueOf​(java.lang.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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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
      • unknown

        public static final PolymerType unknown
        if all else fails...
    • Field Detail

      • entity_poly_type

        public final java.lang.String entity_poly_type
      • PROTEIN_ONLY

        public static final java.util.Set<PolymerType> PROTEIN_ONLY
        Convenience Set of polymer types classified as protein. This only contains peptide
      • DNA_ONLY

        public static final java.util.Set<PolymerType> DNA_ONLY
        Convenience Set of polymer types classified as DNA. This only contains dna
      • RNA_ONLY

        public static final java.util.Set<PolymerType> RNA_ONLY
        Convenience Set of polymer types classified as RNA. This only contains rna
      • POLYNUCLEOTIDE_ONLY

        public static final java.util.Set<PolymerType> POLYNUCLEOTIDE_ONLY
        Convenience Set of polymer types classified as DNA. This contains:
      • ALL_POLYMER_TYPES

        public static final java.util.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​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • polymerTypeFromString

        public static PolymerType polymerTypeFromString​(java.lang.String polymerType)