Package gw.internal.gosu.properties
Class PropertiesPropertySet
- java.lang.Object
-
- gw.internal.gosu.properties.PropertiesPropertySet
-
- All Implemented Interfaces:
PropertySet
public class PropertiesPropertySet extends Object implements PropertySet
A property set based on an underlyingPropertiesobject. Knows how to finds Properties files within a module and to converts them into PropertySet objects.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPropertiesPropertySet.SourceKnows how to find all the property files in a module and create PropertiesPropertySets from them.
-
Constructor Summary
Constructors Constructor Description PropertiesPropertySet(String name, Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getKeys()The set of keys which can be used to look up values in this property setStringgetName()The name of the property set, which will be used as the name of the typeStringgetValue(String key)Get the value corresponding to the given key
-
-
-
Constructor Detail
-
PropertiesPropertySet
public PropertiesPropertySet(String name, Properties properties)
-
-
Method Detail
-
getKeys
public Set<String> getKeys()
Description copied from interface:PropertySetThe set of keys which can be used to look up values in this property set- Specified by:
getKeysin interfacePropertySet- Returns:
- a non null set containing the keys
-
getName
public String getName()
Description copied from interface:PropertySetThe name of the property set, which will be used as the name of the type- Specified by:
getNamein interfacePropertySet- Returns:
- a non null name
-
getValue
public String getValue(String key)
Description copied from interface:PropertySetGet the value corresponding to the given key- Specified by:
getValuein interfacePropertySet- Parameters:
key- the key, never null- Returns:
- the value corresponding to the given key or null if there is no corresponding value
-
-