public static interface OslcErrors.ErrorId
Modifier and Type | Method and Description |
---|---|
static void |
checkUniqueness(OslcErrors.ErrorId... identifiers)
Ensures all given identifiers are unique and throw an exception if it's not the case, as it is considered a developer error.
|
default String |
formatValue(String prefix,
int id)
Returns an identifier that combines the given prefix with the numeric identifier (formatted to use three characters).
|
String |
getValue()
Returns the unique identifier value, e.g.
|
String getValue()
OCFD-SRV001
.default String formatValue(String prefix, int id)
prefix
- an identifier prefix, e.g. OCFD-SRV
id
- a numeric value, e.g. 1
OCFD-SRV001
.static void checkUniqueness(OslcErrors.ErrorId... identifiers)
identifiers
- the identifiers of the Java Enum implementing this interface.IllegalStateException
- if any identifier is not unique.