Interface Property

  • All Superinterfaces:
    java.lang.Comparable<Property>
    All Known Implementing Classes:
    PropertyCfg

    public interface Property
    extends java.lang.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:
    PropertyCfg, PropertyProvider, PropertyProviderDefault, InnovatorBatchLoginDefault
    • Method Detail

      • getKey

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

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

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

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