private static class TranslationCheck.ResourceBundle extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
baseName
Bundle base name.
|
private java.lang.String |
extension
Common extension of files which are included in the resource bundle.
|
private java.util.Set<java.io.File> |
files
Set of files which are included in the resource bundle.
|
private java.lang.String |
path
Common path of files which are included in the resource bundle.
|
| Constructor and Description |
|---|
ResourceBundle(java.lang.String baseName,
java.lang.String path,
java.lang.String extension)
Creates a ResourceBundle object with specific base name, common files extension.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(java.io.File file)
Adds a file into resource bundle.
|
boolean |
containsFile(java.lang.String fileNameRegexp)
Checks whether a resource bundle contains a file which name matches file name regexp.
|
java.lang.String |
getBaseName()
Returns the bundle base name.
|
java.lang.String |
getExtension()
Returns the common extension of files which are included in the resource bundle.
|
java.util.Set<java.io.File> |
getFiles()
Returns the set of files which are included in the resource bundle.
|
java.lang.String |
getPath()
Returns the common path of files which are included in the resource bundle.
|
private final java.lang.String baseName
private final java.lang.String extension
private final java.lang.String path
private final java.util.Set<java.io.File> files
ResourceBundle(java.lang.String baseName, java.lang.String path, java.lang.String extension)
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.public java.lang.String getBaseName()
public java.lang.String getPath()
public java.lang.String getExtension()
public java.util.Set<java.io.File> getFiles()
public void addFile(java.io.File file)
file - file which should be added into resource bundle.public boolean containsFile(java.lang.String fileNameRegexp)
fileNameRegexp - file name regexp.Copyright © 2001-2022. All Rights Reserved.