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

es.iti.wakamiti.api.imconfig.DefinedConfiguration Maven / Gradle / Ivy

The newest version!
/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
 */
package es.iti.wakamiti.api.imconfig;


import java.util.List;
import java.util.Optional;


public interface DefinedConfiguration extends Configuration {


    /**
     * Check whether the current value for the given property is valid according its definition.
     * If the property definition is multivalued, it will return a different validation for each value
     * @param key The property key
     * @return The validation message, or empty if the value(s) is(are) valid
     */
    List validations(String key);


    /**
     * Retrieve the property definition for a given property
     */
    Optional getDefinition(String key);



}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy