Class PropertiesPropertySet

  • All Implemented Interfaces:
    PropertySet

    public class PropertiesPropertySet
    extends Object
    implements PropertySet
    A property set based on an underlying Properties object. Knows how to finds Properties files within a module and to converts them into PropertySet objects.
    • Constructor Detail

      • PropertiesPropertySet

        public PropertiesPropertySet​(String name,
                                     Properties properties)
    • Method Detail

      • getKeys

        public Set<String> getKeys()
        Description copied from interface: PropertySet
        The set of keys which can be used to look up values in this property set
        Specified by:
        getKeys in interface PropertySet
        Returns:
        a non null set containing the keys
      • getName

        public String getName()
        Description copied from interface: PropertySet
        The name of the property set, which will be used as the name of the type
        Specified by:
        getName in interface PropertySet
        Returns:
        a non null name
      • getValue

        public String getValue​(String key)
        Description copied from interface: PropertySet
        Get the value corresponding to the given key
        Specified by:
        getValue in interface PropertySet
        Parameters:
        key - the key, never null
        Returns:
        the value corresponding to the given key or null if there is no corresponding value