24 lines
593 B
Java
24 lines
593 B
Java
package de.ph87.homeautomation.property;
|
|
|
|
import java.util.List;
|
|
import java.util.Optional;
|
|
import java.util.regex.Pattern;
|
|
|
|
public interface IPropertyOwner {
|
|
|
|
Pattern getPropertyNamePattern();
|
|
|
|
void setProperty(final String propertyName, final double value) throws PropertySetException;
|
|
|
|
Boolean readBoolean(final String propertyName);
|
|
|
|
Double readNumber(final String propertyName);
|
|
|
|
List<PropertyDto> findAllProperties();
|
|
|
|
List<PropertyDto> findAllPropertiesLike(final String like);
|
|
|
|
Optional<? extends PropertyDto> findPropertyDtoByPropertyName(final String propertyName);
|
|
|
|
}
|