Enum SecStrucType

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

    public enum SecStrucType
    extends java.lang.Enum<SecStrucType>
    This enum contains all of the secondary structure types found in the DSSP output. It also contains some methods to operate with the SS types.

    When compared, the types are sorted in the declaration order of the enum, which is the DSSP preference of type assignment.

    Author:
    Andreas Prlic, Aleix Lafita
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String name  
      java.lang.Character type  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static SecStrucType fromCharacter​(java.lang.Character stype)
      Converts a Character representing a Secondary Structure type into the corresponding enum object.
      boolean isBetaStrand()
      A Beta-Strand is an extended set of sequential Bridges that, together with other Beta-Strands, is part of a Beta-Sheet.
      boolean isHelixType()
      Helix type can be 3-10 helix, pi-helix or alpha-helix.
      java.lang.String toString()  
      static SecStrucType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static SecStrucType[] 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, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • type

        public final java.lang.Character type
      • name

        public final java.lang.String name
    • Method Detail

      • values

        public static SecStrucType[] 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 (SecStrucType c : SecStrucType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SecStrucType 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
      • fromCharacter

        public static SecStrucType fromCharacter​(java.lang.Character stype)
        Converts a Character representing a Secondary Structure type into the corresponding enum object.
        Parameters:
        stype - the character representing the SS type
        Returns:
        SecStrucType or null if the character is invalid
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<SecStrucType>
      • isHelixType

        public boolean isHelixType()
        Helix type can be 3-10 helix, pi-helix or alpha-helix.
        Returns:
        true if the type is any of the helix types, false otherwise
      • isBetaStrand

        public boolean isBetaStrand()
        A Beta-Strand is an extended set of sequential Bridges that, together with other Beta-Strands, is part of a Beta-Sheet.
        Returns:
        true if the type is a Beta-Strand