public class ResourceBundle extends Object
ResourceBundle represents one bundle of ResourceFiles.| Constructor and Description |
|---|
ResourceBundle(DashboardConfiguration config,
String svnUrl,
String repoId,
String localBasePath,
String checkoutDirectory)
Instantiates a new resource bundle.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(ResourceFile file)
Adds the file.
|
Map<String,Properties> |
getAllProperties()
Gets the all properties.
|
ResourceFile |
getByLanguage(String language)
Gets the by language.
|
ResourceFile |
getDefaultFile()
Gets the default file.
|
String |
getId()
Gets the id.
|
List<String> |
getLanguages()
Gets the languages.
|
String |
getLocaleBasePath()
Gets the locale base path.
|
String |
getMavenCoordinates()
Gets the maven coordinates.
|
String |
getProjectName()
Gets the project name.
|
String |
getRepoId()
Gets the repo id.
|
ReportModel |
getReport(org.apache.maven.plugin.logging.Log log)
Gets the report.
|
String |
getSvnUrl()
Gets the svn url.
|
BundleModel |
toBundleModel(org.apache.maven.plugin.logging.Log log,
List<String> allLanguages,
List<String> includeVariants)
To bundle model.
|
String |
toString() |
public ResourceBundle(DashboardConfiguration config, String svnUrl, String repoId, String localBasePath, String checkoutDirectory)
config - the configsvnUrl - the svn urlrepoId - the repo idlocalBasePath - the local base pathcheckoutDirectory - the base checkout directorypublic String getRepoId()
public String getSvnUrl()
public String getLocaleBasePath()
public void addFile(ResourceFile file)
file - the filepublic ResourceFile getDefaultFile()
public ResourceFile getByLanguage(String language)
language - the languagepublic Map<String,Properties> getAllProperties()
public String getProjectName()
public String getMavenCoordinates()
public ReportModel getReport(org.apache.maven.plugin.logging.Log log)
log - the logpublic String getId()
public BundleModel toBundleModel(org.apache.maven.plugin.logging.Log log, List<String> allLanguages, List<String> includeVariants)
log - the logallLanguages - the languages to include in the reportincludeVariants - the languages, that should not be handled as variantsCopyright © 2013-2015. All Rights Reserved.