public abstract class AbstractParserXmlMojo extends AbstractI18nParserMojo
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractParserXmlMojo.XmlFileParser |
| Modifier and Type | Field and Description |
|---|---|
protected static int |
BUFFER_SIZE
Taille du buffer pour les lectures/écritures
|
protected DocumentBuilderFactory |
documentBuilderFactory
Document builder factory to load xml files.
|
protected XPathFactory |
factory
XPath factory used to detect i18n keys in xml files.
|
protected Map<String,String> |
namespaces
Defines namespaces mapping if needed.
|
protected String |
rules
available rules to detect i18n keys in xml files.
|
protected String[] |
userRulesFiles
Extra rules files to use for detecting i18n keys in xml validation files.
|
acceptKeyFormat, acceptPattern, backupGetter, cp, entries, force, oldLanguage, oldParser, showTouchedFiles, src, strictMode, t0, treateDefaultEntryartifactId, outbundles, encoding, locales, mavenSession, project, silent, verbose| Constructor and Description |
|---|
AbstractParserXmlMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
getCoreRuleFile() |
protected List<String> |
getRulefiles()
Obtain the list of files which define rules to apply.
|
String[] |
getUserRuleFiles() |
void |
init() |
protected String |
loadRules(List<String> files) |
protected String |
loadRulesFile(String fileRules) |
FileParser |
newFileParser(Pattern acceptPattern) |
protected abstract AbstractParserXmlMojo.XmlFileParser |
newXmlFileParser(XPath xpath,
DocumentBuilder builder) |
addDefaultEntry, doAction, getDefaultBasedir, getDefaultExcludes, getDefaultIncludes, getLogEntry, getOutGetter, getResult, isForce, isShowTouchedFiles, isStrictMode, newFileUpdater, onEnterEntry, saveGetterFileaddGetter, getGetterFile, needGenerationbackupFile, checkBundle, checkPackaging, failsIfAnyKeyMissingInBundle, failsIfAnyKeyMissingValue, getBackupFile, getEncoding, getProject, isSilent, isVerbose, setEncoding, setProject, setVerboseacceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addUrlToUrlsList, afterExecute, checkEncoding, checkResource, checkRunOnceDone, checkSkip, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getRootProject, getTemplate, hasClassPath, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, needInvoke, needInvoke, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, writeFilegetLog, getPluginContext, setLog, setPluginContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLog, isSilent, isVerboseprotected static final int BUFFER_SIZE
protected String rules
protected XPathFactory factory
protected DocumentBuilderFactory documentBuilderFactory
@Parameter protected String[] userRulesFiles
coreRulesFile is not defined, then you must
fill this parameter.protected abstract String getCoreRuleFile()
protected abstract AbstractParserXmlMojo.XmlFileParser newXmlFileParser(XPath xpath, DocumentBuilder builder)
protected List<String> getRulefiles()
public void init()
throws Exception
init in class AbstractI18nParserMojoExceptionpublic final String[] getUserRuleFiles()
public final FileParser newFileParser(Pattern acceptPattern)
newFileParser in class AbstractI18nParserMojoacceptPattern - optional pattern to accept incoming keysprotected String loadRulesFile(String fileRules) throws IOException
IOExceptionCopyright © 2007–2020 CodeLutin. All rights reserved.