All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.autores.handling.CfgMissingKey Maven / Gradle / Ivy

There is a newer version: 11.0.35-beta
Show newest version
// 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() {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy