|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.tigris.scarab.util.build.l10nchecker.L10nInspector
Scarab language checker.
A L10nInspector represents a class that is reading a property file (see
setReference(String)) containing l10n properties as a reference and then
running through a given list of other property files to check if all
localisations that are needed are given.
A property language files that need to be checked against can be passed the
reference file can be set by checkFile(String).
The results can be retrieved by using the get* methods.
| Constructor Summary | |
L10nInspector()
Create a standard instance |
|
| Method Summary | |
int |
checkFile(java.lang.String filename)
Check an language file. |
java.util.List |
getErrors()
Function to return only the errors that occured during parsing |
java.util.List |
getInfos()
Generate a list of information messages generated during processing. |
java.util.List |
getMessages()
Return the messages collected. |
java.util.List |
getWarnings()
Return a list of warnings generated during processing |
boolean |
hasErrors()
Check if the parsing/checking resulted in errors. |
static void |
main(java.lang.String[] args)
Main line. |
int |
setReference(java.lang.String aRefFile)
Set the reference file to be used. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public L10nInspector()
throws org.apache.oro.text.regex.MalformedPatternException
| Method Detail |
public int setReference(java.lang.String aRefFile)
throws java.io.IOException
aRefFile - The file to be used as a reference
java.io.IOException - In case the file cannot be read.public java.util.List getErrors()
public java.util.List getWarnings()
public java.util.List getInfos()
public java.util.List getMessages()
public boolean hasErrors()
public int checkFile(java.lang.String filename)
throws java.io.IOException
TODO: Sophisticated exception handling
java.io.IOExceptionpublic static void main(java.lang.String[] args)
The pathes here are hardcoded, please change accordingly if you want to use the test main code
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||