org.nuiton.i18n.plugin.parser.impl
Class ParserXmlMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.nuiton.plugin.AbstractPlugin
          extended by org.nuiton.i18n.plugin.AbstractI18nMojo
              extended by org.nuiton.i18n.plugin.parser.AbstractI18nParserMojo
                  extended by org.nuiton.i18n.plugin.parser.impl.ParserXmlMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, I18nParserConfiguration, org.nuiton.plugin.Plugin
Direct Known Subclasses:
ParserValidationMojo

public abstract class ParserXmlMojo
extends AbstractI18nParserMojo

Récupération des chaines à traduire depuis les fichiers xml.

Author:
julien

Nested Class Summary
static class ParserXmlMojo.XmlFileParser
           
 
Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin
org.nuiton.plugin.Plugin.InitState, org.nuiton.plugin.Plugin.Packaging
 
Field Summary
protected static int BUFFER_SIZE
          Taille du buffer pour les lectures/écritures
protected  DocumentBuilderFactory documentBuilderFactory
           
protected  XPathFactory factory
           
protected  String rules
           
 
Fields inherited from class org.nuiton.i18n.plugin.parser.AbstractI18nParserMojo
backupGetter, entries, force, keysModifier, oldLanguage, oldParser, safeMode, showTouchedFiles, t0, treateDefaultEntry
 
Fields inherited from class org.nuiton.i18n.plugin.AbstractI18nMojo
artifactId, bundles, encoding, genSrc, locales, out, project, silent, src, strictMode, verbose
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ParserXmlMojo()
           
 
Method Summary
protected abstract  String getCoreFileRules()
           
protected abstract  String getFileRules()
           
 void init()
           
 FileParser newFileParser()
           
protected abstract  ParserXmlMojo.XmlFileParser newXmlFileParser(XPath xpath, DocumentBuilder builder)
           
 
Methods inherited from class org.nuiton.i18n.plugin.parser.AbstractI18nParserMojo
addDefaultEntry, doAction, getDefaultBasedir, getDefaultExcludes, getDefaultIncludes, getKeyModifierEnd, getKeyModifierStart, getLogEntry, getOutGetter, getResult, isForce, isShowTouchedFiles, isStrictMode, newFileUpdater, saveGetterFile
 
Methods inherited from class org.nuiton.i18n.plugin.AbstractI18nMojo
addGetter, backupFile, checkBundle, checkPackaging, getArtifactId, getBackupFile, getEncoding, getGetterFile, getI18nFile, getProject, isSilent, isVerbose, needGeneration, setEncoding, setProject, setVerbose
 
Methods inherited from class org.nuiton.plugin.AbstractPlugin
acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addTestResourceDir, addUrlToUrlsList, afterExecute, checkResource, checkRunOnceDone, checkSkip, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getTemplate, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, writeFile
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuiton.i18n.plugin.parser.I18nParserConfiguration
getLog, isSilent, isVerbose
 
Methods inherited from interface org.apache.maven.plugin.Mojo
getLog, setLog
 

Field Detail

BUFFER_SIZE

protected static final int BUFFER_SIZE
Taille du buffer pour les lectures/écritures

See Also:
Constant Field Values

rules

protected String rules

factory

protected XPathFactory factory

documentBuilderFactory

protected DocumentBuilderFactory documentBuilderFactory
Constructor Detail

ParserXmlMojo

public ParserXmlMojo()
Method Detail

getFileRules

protected abstract String getFileRules()
Returns:
le fichier des rules

getCoreFileRules

protected abstract String getCoreFileRules()
Returns:
le fichier des rules de base à toujours charger

newXmlFileParser

protected abstract ParserXmlMojo.XmlFileParser newXmlFileParser(XPath xpath,
                                                                DocumentBuilder builder)

init

public void init()
          throws Exception
Overrides:
init in class AbstractI18nParserMojo
Throws:
Exception

newFileParser

public final FileParser newFileParser()
Specified by:
newFileParser in class AbstractI18nParserMojo
Returns:
a new file parser to be used in the parser consumer thread


Copyright © 2007-2010 CodeLutin. All Rights Reserved.