Package gw.internal.gosu.properties
Class PropertiesPropertySet.Source
java.lang.Object
gw.internal.gosu.properties.PropertiesPropertySet.Source
- All Implemented Interfaces:
PropertySetSource
- Enclosing class:
PropertiesPropertySet
Knows how to find all the property files in a module and create PropertiesPropertySets
from them.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindAllFilesByExtension(String extension) Returns the file for the given name.getPropertySet(String name) Return the named property setgetPropertySetForFile(IFile file) Return the property set for the given fileThe names of all the property sets available from this source
-
Constructor Details
-
Source
-
-
Method Details
-
findAllFilesByExtension
-
getPropertySetForFile
Description copied from interface:PropertySetSourceReturn the property set for the given file- Specified by:
getPropertySetForFilein interfacePropertySetSource- Parameters:
file- the name of the file- Returns:
- a property set, or null if the name is not in the set returned by
PropertySetSource.getPropertySetNames()
-
getFile
Description copied from interface:PropertySetSourceReturns the file for the given name.- Specified by:
getFilein interfacePropertySetSource
-
getPropertySetNames
Description copied from interface:PropertySetSourceThe names of all the property sets available from this source- Specified by:
getPropertySetNamesin interfacePropertySetSource- Returns:
- a non null set of property set names
-
getPropertySet
Description copied from interface:PropertySetSourceReturn the named property set- Specified by:
getPropertySetin interfacePropertySetSource- Parameters:
name- the name of the property set- Returns:
- a property set, or null if the name is not in the set returned by
PropertySetSource.getPropertySetNames()
-