org.nuiton.i18n.plugin.parser
Interface FileParser

All Known Implementing Classes:
AbstractFileParser, ParserJavaMojo.JavaFileParser, ParserXmlMojo.XmlFileParser

public interface FileParser

the contract of a i18n file parser.

Since:
1.2
Author:
tchemit

Method Summary
 void destroy()
          clean file parser.
 org.apache.maven.plugin.logging.Log getLog()
          maven logger to use.
 org.nuiton.io.SortedProperties getResult()
          TODO As we do not used anylonger old language, we should directly TODO use only a set of keys, no need to keep i18n value...
 boolean isShowTouchedFiles()
           
 boolean isTouched()
           
 void parseFile(File file)
          Parse sur un fichier
 void parseLine(File file, String line)
          Parse une partie du fichier
 

Method Detail

getLog

org.apache.maven.plugin.logging.Log getLog()
maven logger to use.

Returns:
the logger

isShowTouchedFiles

boolean isShowTouchedFiles()
Returns:
true if should print on logger when file is touched

isTouched

boolean isTouched()
Returns:
true if file was touched (says contains at least one i18n key)

getResult

org.nuiton.io.SortedProperties getResult()
TODO As we do not used anylonger old language, we should directly TODO use only a set of keys, no need to keep i18n value...

Returns:
the results of i18n keys found for the given file

parseFile

void parseFile(File file)
               throws IOException
Parse sur un fichier

Parameters:
file - le fichier à parser
Throws:
IOException - if any pb

parseLine

void parseLine(File file,
               String line)
               throws IOException
Parse une partie du fichier

Parameters:
file - le fichier à parser
line - la ligne à parser
Throws:
IOException - if any pb

destroy

void destroy()
clean file parser.



Copyright © 2007-2010 CodeLutin. All Rights Reserved.