Interface PropertySet

  • All Known Implementing Classes:
    EmptyPropertySet, PropertiesPropertySet, SystemPropertiesPropertySet

    public interface PropertySet
    Basic interface that describes a set of properties - could be a Properties object or a resource bundle or any other set of key/value string pairs. The PropertiesTypeLoader builds types on this basic interface
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> getKeys()
      The set of keys which can be used to look up values in this property set
      java.lang.String getName()
      The name of the property set, which will be used as the name of the type
      java.lang.String getValue​(java.lang.String key)
      Get the value corresponding to the given key
    • Method Detail

      • getName

        java.lang.String getName()
        The name of the property set, which will be used as the name of the type
        Returns:
        a non null name
      • getKeys

        java.util.Set<java.lang.String> getKeys()
        The set of keys which can be used to look up values in this property set
        Returns:
        a non null set containing the keys
      • getValue

        java.lang.String getValue​(java.lang.String key)
        Get the value corresponding to the given key
        Parameters:
        key - the key, never null
        Returns:
        the value corresponding to the given key or null if there is no corresponding value