public interface Properties
Properties
come into operation. Based upon
simple key-value-pairs, they offer the ability to provide default-values and type-conversion.Property
,
Site.getProperties()
,
Application.getProperties()
Modifier and Type | Method and Description |
---|---|
byte[] |
getBlob(String name)
Returns the byte-value of the given
Property . |
Boolean |
getBoolean(String name)
|
Boolean |
getBoolean(String name,
Boolean defaultValue) |
String |
getClob(String name)
Returns the string-value of the given
Property . |
String |
getClob(String name,
String defaultValue)
Returns the string-value of the given
Property (if existing), or the default-value. |
String |
getDescriptionFor(String name)
Returns the description for the
Property with the given name, if any |
Double |
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 this
Properties and transforms it into some (plain, old, uncool) Properties . |
Properties |
getProperties(String name)
Returns some
Properties parsed from the given Property (if existing). |
Set<String> |
getPropertyNames()
Returns all
Property names. |
String |
getString(String name)
Returns the string-value of the given
Property . |
String |
getString(String name,
String defaultValue)
Returns the string-value of the given
Property (if existing), or the default-value. |
boolean |
propertyExists(String name)
Checks whether the
Property with the given name exists. |
String getString(String name, String defaultValue)
Property
(if existing), or the default-value.String getClob(String name, String defaultValue)
Property
(if existing), or the default-value.Set<String> getPropertyNames()
Property
names.Property
namesboolean propertyExists(String name)
Property
with the given name exists.Properties getPlainProperties()
Properties
and transforms it into some (plain, old, uncool) Properties
.Properties
Properties getProperties(String name)
Properties
parsed from the given Property
(if existing).name
- the name of the Property
Properties
, or null
if no such Property
exists.Copyright © 2011–2017 aiticon GmbH. All rights reserved.