Interface Property

All Superinterfaces:
Comparable<Property>
All Known Implementing Classes:
PropertyCfg

public interface Property extends Comparable<Property>
A property is a combination of a key and a value pair that a user can provide either when starting or running an application. Properties should be configured and read using a property provider.

NOTE: There are no spaces between the equals sign and the values; this is done to avoid incorrect command line parsing when the property is given as a command line argument. If a value contains a blank, the whole pair must be enclosed within quotation marks.

Example:

  de.mid.xyz=value
  de.mid.innovator.inohost=host.9000 "de.mid.innovator.model=MID Demo"
 
Author:
borschet
See Also:
  • Method Details

    • getKey

      String getKey()
      Returns:
      The name of the key
    • getDefaultValue

      Object getDefaultValue()
      Returns:
      The default value that was previously configured as a (castable) object.
    • getDefaultAsString

      String getDefaultAsString()
      Returns:
      The default value as string.
    • getDescription

      String getDescription()
      Returns:
      A (hopefully) helpful description that was configured, which a user can view.