org.apache.wicket.resource
Class Properties

java.lang.Object
  extended by 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
static Properties EMPTY_PROPERTIES
          Empty Properties
 
Constructor Summary
Properties(String key, ValueMap strings)
          Construct
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 key
strings - 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 class Object
See Also:
Object.toString()


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.