Enum AssetType

  • All Implemented Interfaces:
    com.orchestranetworks.addon.dpra.ReferenceBean, java.io.Serializable, java.lang.Comparable<AssetType>

    public enum AssetType
    extends java.lang.Enum<AssetType>
    implements com.orchestranetworks.addon.dpra.ReferenceBean
    Types of assets available.
    Since:
    4.2.0
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCode()
      Returns the unique code.
      com.onwbp.base.text.UserMessage getLabel()
      Returns the asset's label.
      boolean isDataset()
      Returns true if the type is dataset.
      boolean isDataspace()
      Returns true if the type is dataspace.
      boolean isField()
      Returns true if the type is field.
      boolean isTable()
      Returns true if the type is table.
      boolean isWorkflow()
      Returns true if the type is workflow.
      static AssetType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static AssetType[] 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

      • DATASPACE

        public static final AssetType DATASPACE
        Dataspace
      • DATASET

        public static final AssetType DATASET
        Dataset
      • TABLE

        public static final AssetType TABLE
        Table
      • FIELD

        public static final AssetType FIELD
        Field
      • WORKFLOW

        public static final AssetType WORKFLOW
        Workflow
    • Method Detail

      • values

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

        public static AssetType 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
      • getCode

        public java.lang.String getCode()
        Returns the unique code.
        Specified by:
        getCode in interface com.orchestranetworks.addon.dpra.ReferenceBean
      • getLabel

        public com.onwbp.base.text.UserMessage getLabel()
        Returns the asset's label.
        Specified by:
        getLabel in interface com.orchestranetworks.addon.dpra.ReferenceBean
      • isDataspace

        public boolean isDataspace()
        Returns true if the type is dataspace.
      • isDataset

        public boolean isDataset()
        Returns true if the type is dataset.
      • isTable

        public boolean isTable()
        Returns true if the type is table.
      • isField

        public boolean isField()
        Returns true if the type is field.
      • isWorkflow

        public boolean isWorkflow()
        Returns true if the type is workflow.