org.apache.wicket.resource
Class Properties

java.lang.Object
  extended by org.apache.wicket.resource.Properties

public final class Properties
extends java.lang.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(java.lang.String key, ValueMap strings)
          Construct
 
Method Summary
 ValueMap getAll()
          Get direct access to all values from the properties file.
 java.lang.String getString(java.lang.String key)
          Get the property value identified by its 'key'.
 java.lang.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(java.lang.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 java.lang.String getString(java.lang.String key)
Get the property value identified by its 'key'.

Parameters:
key -
Returns:
property message

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


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