|
RbUtils 0.13 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ktc.rbutils.api.i18n.AbstractLocalized
org.ktc.rbutils.api.audit.AbstractProcessor
org.ktc.rbutils.api.audit.AbstractMainProcessor
org.ktc.rbutils.rb.check.MainChecker
public class MainChecker
Checks a set of Java RessourceBundle files using a set of Properties files.
Field Summary |
---|
Fields inherited from class org.ktc.rbutils.api.audit.AbstractMainProcessor |
---|
DEFAULT_PROPERTIES_EXTENSION, DEFAULT_RECURSIVE_CHECK, filesAlreadyAdded, filesList, recursiveCheck, root, srcRBextension |
Fields inherited from class org.ktc.rbutils.api.audit.AbstractProcessor |
---|
loggers |
Fields inherited from class org.ktc.rbutils.api.i18n.AbstractLocalized |
---|
classResource |
Constructor Summary | |
---|---|
MainChecker(File root)
Constructs a checker with recursive check in directories and default valid extension for properties files. |
|
MainChecker(File root,
String srcRBextension)
Constructs a checker with recursive check in directories. |
Method Summary | |
---|---|
void |
addConsoleLogger()
Adds a ConsoleLogger to this MainProcesor. |
protected void |
finalizeCheckerInitialization()
Finalizes initialization as AbstractMainProcessor.finalizeInitialization() does and
also validates the provided filechecker (class loading and extends the default class). |
int |
process()
Launches the check of the properties source files against the runtime files (properties or class files). |
void |
setFileCheckerClassname(String fileCheckerClassname)
Sets the name of the class to be used as FileChecker. |
protected void |
validateFileChecker()
Validates the FileChecker. |
Methods inherited from class org.ktc.rbutils.api.audit.AbstractMainProcessor |
---|
addFiles, finalizeInitialization, fireException, fireProcessEnded, fireProcessStarted, getErrorsCount, getExtension, getProcessedFilesCount, setExtension, setFilesAlreadyAdded, setMessagesLocale |
Methods inherited from class org.ktc.rbutils.api.audit.AbstractProcessor |
---|
addLogger, addLoggers |
Methods inherited from class org.ktc.rbutils.api.i18n.AbstractLocalized |
---|
getMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.ktc.rbutils.api.audit.Processor |
---|
addLogger, addLoggers |
Constructor Detail |
---|
public MainChecker(File root) throws FileNotFoundException
root
- the root directory for the RB check.
NullArgumentException
- if root
is
null
.
FileNotFoundException
- if root
does not exist.
NotDirectoryException
- if root
is not a
directory.public MainChecker(File root, String srcRBextension) throws FileNotFoundException
root
- the root directory for the RB check.srcRBextension
- valid extension for properties files.
NullArgumentException
- if root
is
null
.
FileNotFoundException
- if root
does not exist.
NotDirectoryException
- if root
is not a
directory.Method Detail |
---|
public int process() throws ClassNotFoundException
ClassNotFoundException
- if the provided class can not be load.
ClassCastException
- if the provided class does not extend the default one.protected void finalizeCheckerInitialization() throws ClassNotFoundException
AbstractMainProcessor.finalizeInitialization()
does and
also validates the provided filechecker (class loading and extends the default class).
ClassNotFoundException
- if the provided file checker class can not be load.
ClassCastException
- if the provided file checker class does not extend the default
one.protected void validateFileChecker() throws ClassNotFoundException
If not set, uses the default one. Then, try to get an instance of the Class specified by this class name. Finally, tests if this class extends this of the default file checker.
ClassNotFoundException
- if the provided class can not be load.
ClassCastException
- if the provided class does not extend the default one.public void addConsoleLogger()
public void setFileCheckerClassname(String fileCheckerClassname)
null
, the default FileChecker will be
used.
fileCheckerClassname
- the name of the class to be used as FileChecker.
|
Back to the RbUtils Home Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |