Enum Class BinaryMedium.Type

java.lang.Object
java.lang.Enum<BinaryMedium.Type>
de.espirit.firstspirit.access.editor.value.BinaryMedium.Type
All Implemented Interfaces:
Serializable, Comparable<BinaryMedium.Type>, Constable
Enclosing interface:
BinaryMedium

public static enum BinaryMedium.Type extends Enum<BinaryMedium.Type>
The type of the binary medium.
Since:
4.0.69
  • Enum Constant Details

    • UNDEFINED

      public static final BinaryMedium.Type UNDEFINED
      Unknown type of medium.
      Since:
      4.0.69
    • MEDIUM

      public static final BinaryMedium.Type MEDIUM
      A firstspirit medium.
      Since:
      4.0.69
    • FOLDER

      public static final BinaryMedium.Type FOLDER
      A firstspirit media folder.
      Since:
      4.0.69
  • Method Details

    • values

      public static BinaryMedium.Type[] 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 BinaryMedium.Type 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
    • getPrefix

      public String getPrefix()
      Gets the prefix.
      Returns:
      the prefix.
      Since:
      4.0.137
    • isTypeOf

      public abstract boolean isTypeOf(IDProvider element)
      Checks if medium is instance of given element.
      Returns:
      true if instance of given type.
      Since:
      4.0.69
    • nameFor

      public String nameFor(IDProvider element)
      Returns the name for the given element combined with the prefix.
      Returns:
      the name for the given element.
      Since:
      4.1.16 branch 4.0.142
    • fromPrefix

      public static BinaryMedium.Type fromPrefix(String value)
      Gets a binary medium type from specified prefix.
      Parameters:
      value - the prefix to get binary medium type from.
      Returns:
      a binary medium type.
      Since:
      4.0.69
    • getNameFor

      public static String getNameFor(IDProvider element)
      Get the name of the binary medium for the specified element.
      Parameters:
      element - the element to get the name for.
      Since:
      4.0.69
    • fromElement

      public static BinaryMedium.Type fromElement(IDProvider element)
      Gets the binary medium type for the specified element.
      Parameters:
      element - the element to get the type for.
      Returns:
      the binary medium type.
      Since:
      4.1.16 branch 4.0.142