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)
IFile
getFile(String name)
Returns the file for the given name.PropertySet
getPropertySet(String name)
Return the named property setPropertySet
getPropertySetForFile(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: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
public IFile getFile(String name)
Description copied from interface:PropertySetSource
Returns the file for the given name.- Specified by:
getFile
in interfacePropertySetSource
-
getPropertySetNames
public Set<String> 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
public PropertySet getPropertySet(String name)
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()
-
-