Class TranslationCheck.ResourceBundle

    • Field Detail

      • extension

        private final String extension
        Common extension of files which are included in the resource bundle.
      • path

        private final String path
        Common path of files which are included in the resource bundle.
      • files

        private final Set<File> files
        Set of files which are included in the resource bundle.
    • Constructor Detail

      • ResourceBundle

        ResourceBundle​(String baseName,
                       String path,
                       String extension)
        Creates a ResourceBundle object with specific base name, common files extension.
        Parameters:
        baseName - bundle base name.
        path - common path of files which are included in the resource bundle.
        extension - common extension of files which are included in the resource bundle.
    • Method Detail

      • getBaseName

        public String getBaseName()
        Returns the bundle base name.
        Returns:
        the bundle base name
      • getPath

        public String getPath()
        Returns the common path of files which are included in the resource bundle.
        Returns:
        the common path of files
      • getExtension

        public String getExtension()
        Returns the common extension of files which are included in the resource bundle.
        Returns:
        the common extension of files
      • getFiles

        public Set<FilegetFiles()
        Returns the set of files which are included in the resource bundle.
        Returns:
        the set of files
      • addFile

        public void addFile​(File file)
        Adds a file into resource bundle.
        Parameters:
        file - file which should be added into resource bundle.
      • containsFile

        public boolean containsFile​(String fileNameRegexp)
        Checks whether a resource bundle contains a file which name matches file name regexp.
        Parameters:
        fileNameRegexp - file name regexp.
        Returns:
        true if a resource bundle contains a file which name matches file name regexp.