Enum ConvertAbility

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

    public enum ConvertAbility
    extends java.lang.Enum<ConvertAbility>
    Indicates the adapter's ability to convert a particular input file to a particular target format.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      Maybe
      Adapter can possibly convert specified file to requested target format.
      No
      Adapter cannot convert specified file to requested target format.
      Yes
      Adapter can specified file to requested target format.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getAbility()
      The ability code as an integer value.
      static ConvertAbility valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ConvertAbility[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

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

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • No

        public static final ConvertAbility No
        Adapter cannot convert specified file to requested target format.
      • Yes

        public static final ConvertAbility Yes
        Adapter can specified file to requested target format.
      • Maybe

        public static final ConvertAbility Maybe
        Adapter can possibly convert specified file to requested target format.
    • Method Detail

      • values

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

        public static ConvertAbility 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
      • getAbility

        public int getAbility()
        The ability code as an integer value.