Class PropertyStringParser

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getProperty​(java.lang.String key)
      Returns the property associated with the specified key, or null if no such property exists.
      java.lang.String getProperty​(java.lang.String key, java.lang.String defaultValue)
      Returns the property associated with the specified key, or the specified default value if no such property exists.
      void setProperty​(java.lang.String key, java.lang.String value)
      Sets the property with the specified key to the specified value.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PropertyStringParser

        public PropertyStringParser()
    • Method Detail

      • setProperty

        public void setProperty​(java.lang.String key,
                                java.lang.String value)
        Sets the property with the specified key to the specified value.
        Parameters:
        key - the key of the property to set.
        value - the value to associated with the specified key.
        See Also:
        Properties.setProperty(String,String)
      • getProperty

        public java.lang.String getProperty​(java.lang.String key)
        Returns the property associated with the specified key, or null if no such property exists.
        Parameters:
        key - the key of the desired property
        Returns:
        the property associated with the specified key, or null if no such property exists.
      • getProperty

        public java.lang.String getProperty​(java.lang.String key,
                                            java.lang.String defaultValue)
        Returns the property associated with the specified key, or the specified default value if no such property exists.
        Parameters:
        key - the key of the desired property
        defaultValue - the default value to return if no such property exists
        Returns:
        the requested property, or the specified default value if no such property exists.