public enum DomainName extends Enum<DomainName>
Enum Constant and 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 |
Modifier and Type | Method and Description |
---|---|
String |
getCode() |
static DomainName |
getFromCode(String code)
Retrieve DomainName from code
|
String |
getName() |
static DomainName |
valueOf(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.
|
public static final DomainName TEST
public static final DomainName IO
public static final DomainName NETWORK
public static final DomainName ILLEGAL
public static final DomainName DATABASE
public static final DomainName STORAGE
public static final DomainName BUSINESS
public static final DomainName SECURITY
public static final DomainName VALIDATION
public static DomainName[] values()
for (DomainName c : DomainName.values()) System.out.println(c);
public static DomainName valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getCode()
public String getName()
public static DomainName getFromCode(String code)
code
- the codeIllegalArgumentException
- thrown if code is null or empty or if the attached domain to the code does not
existCopyright © 2018 Vitam. All rights reserved.