Enum DomainName

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

    public enum DomainName
    extends java.lang.Enum<DomainName>
    Enum of Vitam domains
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BUSINESS
      Used for business anomalies
      DATABASE
      Used for: ReferentialException DatabaseConflict...
      ILLEGAL
      Used for: IllegalArgument UnsupportedOperation Schema XML...
      IO
      Used for: FileNotFound FileAlreadyExists Json*Exception InvalidParse...
      NETWORK
      Used for: Server problems Client problems Network anomalies...
      SECURITY
      Used for: Permissions anomalies Security problems
      STORAGE
      Used for: No space left StorageNotFound...
      TEST
      ONLY FOR TEST PURPOSE (do not remove)
      VALIDATION  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCode()  
      static DomainName getFromCode​(java.lang.String code)
      Retrieve DomainName from code
      java.lang.String getName()  
      static DomainName valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static DomainName[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

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

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

      • TEST

        public static final DomainName TEST
        ONLY FOR TEST PURPOSE (do not remove)
      • IO

        public static final DomainName IO
        Used for: FileNotFound FileAlreadyExists Json*Exception InvalidParse...
      • NETWORK

        public static final DomainName NETWORK
        Used for: Server problems Client problems Network anomalies...
      • ILLEGAL

        public static final DomainName ILLEGAL
        Used for: IllegalArgument UnsupportedOperation Schema XML...
      • DATABASE

        public static final DomainName DATABASE
        Used for: ReferentialException DatabaseConflict...
      • STORAGE

        public static final DomainName STORAGE
        Used for: No space left StorageNotFound...
      • BUSINESS

        public static final DomainName BUSINESS
        Used for business anomalies
      • SECURITY

        public static final DomainName SECURITY
        Used for: Permissions anomalies Security problems
      • VALIDATION

        public static final DomainName VALIDATION
    • Method Detail

      • values

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

        public static DomainName 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:
        code
      • getName

        public java.lang.String getName()
        Returns:
        name
      • getFromCode

        public static DomainName getFromCode​(java.lang.String code)
        Retrieve DomainName from code
        Parameters:
        code - the code
        Returns:
        the domain if exists
        Throws:
        java.lang.IllegalArgumentException - thrown if code is null or empty or if the attached domain to the code does not exist