Package org.appng.api.model
Interface Properties
-
- All Known Implementing Classes:
PersistentPropertyHolder
,PlatformProperties
,PropertyHolder
public interface Properties
Everywhere in appNG where something needs to be configurable,Properties
come into operation. Based upon simple key-value-pairs, they offer the ability to provide default-values and type-conversion.- Author:
- Matthias Müller
- See Also:
Property
,Site.getProperties()
,Application.getProperties()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
getBlob(String name)
Returns the byte-value of the givenProperty
.Boolean
getBoolean(String name)
Boolean
getBoolean(String name, Boolean defaultValue)
String
getClob(String name)
Returns the string-value of the givenProperty
.String
getClob(String name, String defaultValue)
Returns the string-value of the givenProperty
(if existing), or the default-value.String
getDescriptionFor(String name)
Returns the description for theProperty
with the given name, if anyDouble
getDouble(String name)
Double
getDouble(String name, Double defaultValue)
Float
getFloat(String name)
Float
getFloat(String name, Float defaultValue)
Integer
getInteger(String name)
Integer
getInteger(String name, Integer defaultValue)
List<String>
getList(String name, String delimiter)
List<String>
getList(String name, String defaultValue, String delimiter)
Properties
getPlainProperties()
Takes thisProperties
and transforms it into some (plain, old, uncool)Properties
.Properties
getProperties(String name)
Returns someProperties
parsed from the givenProperty
(if existing).Set<String>
getPropertyNames()
Returns allProperty
names.String
getString(String name)
Returns the string-value of the givenProperty
.String
getString(String name, String defaultValue)
Returns the string-value of the givenProperty
(if existing), or the default-value.boolean
propertyExists(String name)
Checks whether theProperty
with the given name exists.
-
-
-
Method Detail
-
getString
String getString(String name, String defaultValue)
Returns the string-value of the givenProperty
(if existing), or the default-value.
-
getClob
String getClob(String name, String defaultValue)
Returns the string-value of the givenProperty
(if existing), or the default-value.
-
getPropertyNames
Set<String> getPropertyNames()
Returns allProperty
names.- Returns:
- all
Property
names
-
propertyExists
boolean propertyExists(String name)
Checks whether theProperty
with the given name exists.
-
getPlainProperties
Properties getPlainProperties()
Takes thisProperties
and transforms it into some (plain, old, uncool)Properties
.- Returns:
- some
Properties
-
getProperties
Properties getProperties(String name)
Returns someProperties
parsed from the givenProperty
(if existing).- Parameters:
name
- the name of theProperty
- Returns:
- some
Properties
, ornull
if no suchProperty
exists.
-
-