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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addAllLocalResourceFilesByExtensionInternal
(String relativePath, IDirectory dir, String extension, List<Pair<String, IFile>> results) private static String
appendResourceNameToPath
(String relativePath, String resourceName) private static void
closeSafely
(InputStream inputStream) findAllFilesByExtension
(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 sourceprivate static boolean
isValidTypeName
(String typeName)
-
Field Details
-
EXTENSION
- See Also:
-
_module
-
_filesByTypeName
-
-
Constructor Details
-
Source
-
-
Method Details
-
findAllFilesByExtension
-
addAllLocalResourceFilesByExtensionInternal
-
appendResourceNameToPath
-
getPropertySetForFile
Description copied from interface:PropertySetSource
Return the property set for the given file- Specified by:
getPropertySetForFile
in 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:PropertySetSource
Returns the file for the given name.- Specified by:
getFile
in interfacePropertySetSource
-
getPropertySetNames
Description copied from interface:PropertySetSource
The names of all the property sets available from this source- Specified by:
getPropertySetNames
in interfacePropertySetSource
- Returns:
- a non null set of property set names
-
getPropertySet
Description copied from interface:PropertySetSource
Return the named property set- Specified by:
getPropertySet
in 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()
-
isValidTypeName
-
closeSafely
-