Package org.apache.wicket.resource
Class Properties
- java.lang.Object
-
- org.apache.wicket.resource.Properties
-
public final class Properties extends Object
Kind of like java.util.Properties but based on Wicket's ValueMap and thus benefiting from all its nice build-in type converters and without parent properties.- Author:
- Juergen Donnerstag
-
-
Field Summary
Fields Modifier and Type Field Description static Properties
EMPTY_PROPERTIES
Empty Properties
-
Constructor Summary
Constructors Constructor Description Properties(String key, ValueMap strings)
Construct
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueMap
getAll()
Get direct access to all values from the properties file.String
getString(String key)
Get the property value identified by its 'key'.String
toString()
-
-
-
Field Detail
-
EMPTY_PROPERTIES
public static final Properties EMPTY_PROPERTIES
Empty Properties
-
-
Constructor Detail
-
Properties
public Properties(String key, ValueMap strings)
Construct- Parameters:
key
- The keystrings
- Properties values
-
-
Method Detail
-
getAll
public final ValueMap getAll()
Get direct access to all values from the properties file.- Returns:
- map
-
getString
public final String getString(String key)
Get the property value identified by its 'key'.- Parameters:
key
-- Returns:
- property message
-
toString
public final String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-