Class 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
    • Constructor Summary

      Constructors 
      Constructor Description
      Properties​(java.lang.String key, org.apache.wicket.util.value.ValueMap strings)
      Construct
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.wicket.util.value.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,
                          org.apache.wicket.util.value.ValueMap strings)
        Construct
        Parameters:
        key - The key
        strings - Properties values
    • Method Detail

      • getAll

        public final org.apache.wicket.util.value.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()