Enum Class PulseSequenceType

java.lang.Object
java.lang.Enum<PulseSequenceType>
com.xinapse.dicom.PulseSequenceType
All Implemented Interfaces:
Serializable, Comparable<PulseSequenceType>, Constable

public enum PulseSequenceType extends Enum<PulseSequenceType>
An enumeration of DICOM pulse sequence types.
  • Enum Constant Details

  • Field Details

    • PULSE_SEQUENCE_TYPE_PREFERENCE_NAME

      public static final String PULSE_SEQUENCE_TYPE_PREFERENCE_NAME
      The Preference name for the PulseSequenceType.
      See Also:
  • Method Details

    • values

      public static PulseSequenceType[] 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

      public static PulseSequenceType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getInstance

      public static PulseSequenceType getInstance(String typeName)
      Returns the PulseSequenceType corresponding to the supplied String.
      Parameters:
      typeName - the pulse sequence type name. Case is ignored. Returns a default PulseSequenceType if the typeName is not recognised.
      Returns:
      the PulseSequenceType corresponding to the supplied String.
    • getDescription

      public String getDescription()
      Returns a description of the pulse-sequence type.
      Returns:
      a description of the pulse-sequence type.
    • getPreferredType

      public static PulseSequenceType getPreferredType()
      Returns the user's preferred PulseSequenceType set in the user Preferences.
      Returns:
      the user's preferred PulseSequenceType.
    • savePreferredType

      public static void savePreferredType(PulseSequenceType seqType)
      Saves the user's preferred PulseSequenceType to the user Preferences.
      Parameters:
      seqType - the user's preferred PulseSequenceType.
    • getAlwaysAsk

      public static boolean getAlwaysAsk()
      Returns whether the user prefers always to be asked to set the PulseSequenceType.
      Returns:
      the user's preference for whether always to be asked to set the PulseSequenceType.
    • saveAlwaysAsk

      public static void saveAlwaysAsk(boolean always)
      Saves whether the user prefers always to be asked to set the PulseSequenceType.
      Parameters:
      always - the user's preference for whether always to be asked to set the PulseSequenceType.
    • main

      public static void main(String[] args)
      Run the unit test on the PulseSequenceType class.
      Parameters:
      args - ignored.