Package gw.internal.gosu.properties
Class PropertiesPropertySet.Source
- java.lang.Object
-
- gw.internal.gosu.properties.PropertiesPropertySet.Source
-
- All Implemented Interfaces:
PropertySetSource
- Enclosing class:
- PropertiesPropertySet
public static class PropertiesPropertySet.Source extends Object implements PropertySetSource
Knows how to find all the property files in a module and create PropertiesPropertySets from them.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Pair<String,IFile>>findAllFilesByExtension(String extension)IFilegetFile(String name)Returns the file for the given name.PropertySetgetPropertySet(String name)Return the named property setPropertySetgetPropertySetForFile(IFile file)Return the property set for the given fileSet<String>getPropertySetNames()The names of all the property sets available from this source
-
-
-
Constructor Detail
-
Source
public Source(IModule module)
-
-
Method Detail
-
getPropertySetForFile
public PropertySet getPropertySetForFile(IFile file)
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
public IFile getFile(String name)
Description copied from interface:PropertySetSourceReturns the file for the given name.- Specified by:
getFilein interfacePropertySetSource
-
getPropertySetNames
public Set<String> 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
public PropertySet getPropertySet(String name)
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()
-
-