Enum DigitalAssetState

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

    public enum DigitalAssetState
    extends java.lang.Enum<DigitalAssetState>
    Defines the permission to see and modify a resource.

    The possible states are:

    • Activated when applied to a digital asset the digital asset is available to select.
    • Deactivated when applied to a digital asset the digital asset is unavailable to select.
    Since:
    1.6.0
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ACTIVATED
      The activated.
      DEACTIVATED
      The deactivated.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.onwbp.base.text.UserMessage getLabel()
      Gets the label.
      java.lang.String getState()
      Gets the state.
      boolean isActivated()
      Checks whether the state activated.
      boolean isDeactivated()
      Checks whether the state deactivated.
      static DigitalAssetState parse​(java.lang.String state)
      Parses the state.
      java.lang.String toString()  
      static DigitalAssetState valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static DigitalAssetState[] 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, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • values

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

        public static DigitalAssetState 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
      • parse

        public static DigitalAssetState parse​(java.lang.String state)
        Parses the state.
        Parameters:
        state - the state
        Returns:
        the digital asset state
      • getState

        public java.lang.String getState()
        Gets the state.
        Returns:
        the state
      • getLabel

        public com.onwbp.base.text.UserMessage getLabel()
        Gets the label.
        Returns:
        the label
      • toString

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

        public boolean isActivated()
        Checks whether the state activated.
        Returns:
        true, if is activated
      • isDeactivated

        public boolean isDeactivated()
        Checks whether the state deactivated.
        Returns:
        true, if is deactivated