uk.autores.handling.CfgMissingKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of annotations Show documentation
Show all versions of annotations Show documentation
Annotation driven library for handling embedded resources
// Copyright 2023 https://github.com/autores-uk/autores/blob/main/LICENSE.txt
// SPDX-License-Identifier: Apache-2.0
package uk.autores.handling;
import java.util.Properties;
/**
* "missing-key": how to report missing keys in localized {@link Properties} resources.
* "error", "warn", or "ignore".
*/
public final class CfgMissingKey {
/** Key */
public static final String MISSING_KEY = "missing-key";
/** Value */
public static final String ERROR = "error";
/** Value */
public static final String WARN = "warn";
/** Value */
public static final String IGNORE = "ignore";
/**
* Config definition.
* @see ConfigDef
* @see ResourceFiles#config()
*/
public static final ConfigDef DEF = new ConfigDef(MISSING_KEY, s -> s.matches("error|warn|ignore"));
private CfgMissingKey() {}
}