|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.nuiton.plugin.AbstractPlugin
org.nuiton.i18n.plugin.AbstractI18nMojo
org.nuiton.i18n.plugin.parser.AbstractI18nParserMojo
org.nuiton.i18n.plugin.parser.impl.ParserXmlMojo
public abstract class ParserXmlMojo
Récupération des chaines à traduire depuis les fichiers xml.
| Nested Class Summary |
|---|
| 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 DocumentBuilder |
builder
|
protected File |
defaultBasedir
default src for an entry. |
protected XPathFactory |
factory
|
protected String |
rules
|
protected XPath |
xpath
|
| Fields inherited from class org.nuiton.i18n.plugin.parser.AbstractI18nParserMojo |
|---|
backupGetter, entries, events, fileTreated, keysModifier, oldLanguage, oldParser, result, safeMode, showTouchedFiles, t0, touchFile, treadedFiles, treateDefaultEntry, verboseLog |
| 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 | |
|---|---|
abstract String |
extract(String i18nString)
Fonction d'extraction de la chaine |
protected abstract String |
getCoreFileRules()
|
File |
getDefaultBasedir()
|
EntityResolver |
getEntityResolver()
|
protected abstract String |
getFileRules()
|
InputSource |
getSystemId(String publicId)
|
void |
init()
|
void |
parseFile(File file)
Parse sur un fichier |
void |
parseLine(File file,
String key)
Parse une partie du fichier |
| Methods inherited from class org.nuiton.i18n.plugin.parser.AbstractI18nParserMojo |
|---|
addDefaultEntry, addParserEvent, doAction, getDefaultExcludes, getDefaultIncludes, getKeyModifierEnd, getKeyModifierStart, getOutGetter, getVerboseLog, isStrictMode, newFileUpdater, parse, parseEntry, removeParserEvent, saveGetterFile |
| Methods inherited from class org.nuiton.i18n.plugin.AbstractI18nMojo |
|---|
addGetter, backupFile, checkBundle, checkPackaging, getArtifactId, getBackupFile, getEncoding, getGetterFile, getI18nFile, getProject, 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.apache.maven.plugin.Mojo |
|---|
getLog, setLog |
| Field Detail |
|---|
protected static final int BUFFER_SIZE
protected File defaultBasedir
protected String rules
protected XPathFactory factory
protected XPath xpath
protected DocumentBuilder builder
| Constructor Detail |
|---|
public ParserXmlMojo()
| Method Detail |
|---|
public abstract String extract(String i18nString)
i18nString - le clef i18n
protected abstract String getFileRules()
protected abstract String getCoreFileRules()
public void init()
throws Exception
init in class AbstractI18nParserMojoExceptionpublic EntityResolver getEntityResolver()
public InputSource getSystemId(String publicId)
public void parseFile(File file)
Parser
file - le fichier à parser
public void parseLine(File file,
String key)
Parser
file - le fichier à parserkey - la ligne à parserpublic File getDefaultBasedir()
getDefaultBasedir in class AbstractI18nParserMojo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||