net.sf.sfac.lang
Class LocalizedStringTracker

java.lang.Object
  extended by net.sf.sfac.lang.LocalizedStringTracker

public class LocalizedStringTracker
extends Object

Tracker of the LanguageSupportImpl usage.
This tracker records which strings defined by the LanguageSupportImpl are used and which strings are not defined in the LanguageSupportImpl.

Author:
Olivier Berlanger

Field Summary
 String[] bundleNames
          Name of the bundle known by the LanguageSupport
 String reportFileName
          full name of the file used to write the string tracking report.
 Map<String,net.sf.sfac.lang.LocalizedStringTracker.StringUsageInfo> usage
           
 
Constructor Summary
LocalizedStringTracker(String newReportFileName)
           
 
Method Summary
 void init(String[] managerBundleNames)
           
 void loadAll()
           
 void saveAll()
           
 void stringDefined(String bundleName, String key, String value)
           
 void stringNotFound(String key, String defaultValue, int nbrParams)
           
 void stringUsed(String bundleName, String key, String value, int nbrParams)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reportFileName

public String reportFileName
full name of the file used to write the string tracking report.


bundleNames

public String[] bundleNames
Name of the bundle known by the LanguageSupport


usage

public Map<String,net.sf.sfac.lang.LocalizedStringTracker.StringUsageInfo> usage
Constructor Detail

LocalizedStringTracker

public LocalizedStringTracker(String newReportFileName)
Method Detail

stringDefined

public void stringDefined(String bundleName,
                          String key,
                          String value)

init

public void init(String[] managerBundleNames)

stringUsed

public void stringUsed(String bundleName,
                       String key,
                       String value,
                       int nbrParams)

stringNotFound

public void stringNotFound(String key,
                           String defaultValue,
                           int nbrParams)

saveAll

public void saveAll()
             throws IOException
Throws:
IOException

loadAll

public void loadAll()


Copyright © 2011. All Rights Reserved.