Class PropertiesPropertySet.Source

  • All Implemented Interfaces:
    PropertySetSource
    Enclosing class:
    PropertiesPropertySet

    public static class PropertiesPropertySet.Source
    extends java.lang.Object
    implements PropertySetSource
    Knows how to find all the property files in a module and create PropertiesPropertySets from them.
    • Constructor Detail

      • Source

        public Source​(IModule module)
    • Method Detail

      • findAllFilesByExtension

        public java.util.List<Pair<java.lang.String,​IFile>> findAllFilesByExtension​(java.lang.String extension)
      • addAllLocalResourceFilesByExtensionInternal

        private void addAllLocalResourceFilesByExtensionInternal​(java.lang.String relativePath,
                                                                 IDirectory dir,
                                                                 java.lang.String extension,
                                                                 java.util.List<Pair<java.lang.String,​IFile>> results)
      • appendResourceNameToPath

        private static java.lang.String appendResourceNameToPath​(java.lang.String relativePath,
                                                                 java.lang.String resourceName)
      • getPropertySetNames

        public java.util.Set<java.lang.String> getPropertySetNames()
        Description copied from interface: PropertySetSource
        The names of all the property sets available from this source
        Specified by:
        getPropertySetNames in interface PropertySetSource
        Returns:
        a non null set of property set names
      • isValidTypeName

        private static boolean isValidTypeName​(java.lang.String typeName)
      • closeSafely

        private static void closeSafely​(java.io.InputStream inputStream)