Package com.activeviam.properties
Interface IActiveViamPropertyRegistry
- All Known Implementing Classes:
ActiveViamPropertyRegistry
public interface IActiveViamPropertyRegistry
Interface to handle the Properties defined in ActiveViam products.
- Author:
- ActiveViam
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear(IActiveViamProperty prop) Resets the value of a property.booleangetBoolean(IActiveViamProperty prop, boolean defaultValue) Gets the value of the property ordefaultValueif it is not defined.doublegetDouble(IActiveViamProperty prop, double defaultValue) Gets the value of the property ordefaultValueif it is not defined.intgetInteger(IActiveViamProperty prop, int defaultValue) Gets the value of the property ordefaultValueif it is not defined.longgetLong(IActiveViamProperty prop, long defaultValue) Gets the value of the property ordefaultValueif it is not defined.booleanGets the value of the property.doubleGets the value of the property.intGets the value of the property.longGets the value of the property.Gets the value of the property (nevernull).getString(IActiveViamProperty prop, String defaultValue) Gets the value of the property ordefaultValueif it is not defined.voidset(IActiveViamProperty prop, Object value) Sets the value of a property.
-
Method Details
-
getString
Gets the value of the property ordefaultValueif it is not defined.- Parameters:
prop- the property to resolvedefaultValue- the default value to return if no value is found- Returns:
- the value of the property or
defaultValueif it is not defined
-
getRequiredString
Gets the value of the property (nevernull).- Parameters:
prop- the property to resolve- Returns:
- the value of the property as a string
- Throws:
IllegalStateException- if the property is not defined
-
getBoolean
Gets the value of the property ordefaultValueif it is not defined.- Parameters:
prop- the property to resolvedefaultValue- the default value to return if no value is found- Returns:
- the value of the property or
defaultValueif it is not defined
-
getRequiredBoolean
Gets the value of the property.- Parameters:
prop- the property to resolve- Returns:
- the value of the property
- Throws:
IllegalStateException- if the property is not defined
-
getInteger
Gets the value of the property ordefaultValueif it is not defined.- Parameters:
prop- the property to resolvedefaultValue- the default value to return if no value is found- Returns:
- the value of the property or
defaultValueif it is not defined
-
getRequiredInteger
Gets the value of the property.- Parameters:
prop- the property to resolve- Returns:
- the value of the property
- Throws:
IllegalStateException- if the property is not defined
-
getDouble
Gets the value of the property ordefaultValueif it is not defined.- Parameters:
prop- the property to resolvedefaultValue- the default value to return if no value is found- Returns:
- the value of the property or
defaultValueif it is not defined
-
getRequiredDouble
Gets the value of the property.- Parameters:
prop- the property to resolve- Returns:
- the value of the property
- Throws:
IllegalStateException- if the property is not defined
-
getLong
Gets the value of the property ordefaultValueif it is not defined.- Parameters:
prop- the property to resolvedefaultValue- the default value to return if no value is found- Returns:
- the value of the property or
defaultValueif it is not defined
-
getRequiredLong
Gets the value of the property.- Parameters:
prop- the property to resolve- Returns:
- the value of the property
- Throws:
IllegalStateException- if the property is not defined
-
set
Sets the value of a property.- Parameters:
prop- the property to set in the registryvalue- value to set in the registry
-
clear
Resets the value of a property.- Parameters:
prop- the property to clear
-