Package gw.internal.gosu.properties
Class PropertiesPropertySet
java.lang.Object
gw.internal.gosu.properties.PropertiesPropertySet
- All Implemented Interfaces:
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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Knows how to find all the property files in a module and create PropertiesPropertySets from them. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKeys()
The set of keys which can be used to look up values in this property setgetName()
The name of the property set, which will be used as the name of the typegetStringPropertyNames
(Properties properties) Get the value corresponding to the given key
-
Field Details
-
_name
-
_keys
-
_properties
-
-
Constructor Details
-
PropertiesPropertySet
-
-
Method Details
-
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 interfacePropertySet
- Returns:
- a non null set containing the keys
-
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 interfacePropertySet
- Returns:
- a non null name
-
getValue
Description copied from interface:PropertySet
Get the value corresponding to the given key- Specified by:
getValue
in interfacePropertySet
- Parameters:
key
- the key, never null- Returns:
- the value corresponding to the given key or null if there is no corresponding value
-
getStringPropertyNames
-