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

org.openl.rules.common.PropertiesContainer Maven / Gradle / Ivy

There is a newer version: 5.27.9-jakarta
Show newest version
package org.openl.rules.common;

import java.util.Collection;

/**
 * Properties Container keeps set of properties.
 * 

* Only one property per name is supported. */ public interface PropertiesContainer { /** * Adds property into the container. * * @param property adding property * @throws PropertyException if property with the same name exists already * and value cannot be updated. */ void addProperty(Property property) throws PropertyException; /** * Gets list of all properties in the container. * * @return list of properties */ Collection getProperties(); /** * Returns property by name. * * @param name name of property * @return reference on named property * @throws PropertyException if no property with specified name */ Property getProperty(String name) throws PropertyException; /** * Checks whether property with specified name exists in the container. * * @param name name of property * @return true if such property exists */ boolean hasProperty(String name); /** * Removes property from the container. * * @param name name of property * @return removed property * @throws PropertyException if no property with specified name */ Property removeProperty(String name) throws PropertyException; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy