Class AbstractParserXmlMojo.XmlFileParser

java.lang.Object
org.nuiton.i18n.plugin.parser.AbstractFileParser
org.nuiton.i18n.plugin.parser.impl.AbstractParserXmlMojo.XmlFileParser
All Implemented Interfaces:
FileParser
Enclosing class:
AbstractParserXmlMojo

public abstract static class AbstractParserXmlMojo.XmlFileParser extends AbstractFileParser
  • Constructor Details

    • XmlFileParser

      public XmlFileParser(org.apache.maven.plugin.logging.Log log, String encoding, org.nuiton.io.SortedProperties oldParser, Pattern acceptKeyPattern, boolean showTouchedFiles, String rules, XPath xpath, DocumentBuilder builder, Map<String,String> namespaces, boolean verbose)
  • Method Details

    • extract

      public abstract String extract(String i18nString)
      Fonction d'extraction de la chaine
      Parameters:
      i18nString - le clef i18n
      Returns:
      la chaine
    • prepareFile

      public File prepareFile(File file) throws IOException
      To prepare the file (if any thing to be done before scanning it).
      Overrides:
      prepareFile in class AbstractFileParser
      Parameters:
      file - the incoming file
      Returns:
      the real file to process
      Throws:
      IOException - if any IO problem while preparing file
      Since:
      2.0
    • parseFile

      public void parseFile(File file) throws IOException
      Description copied from interface: FileParser
      Parse sur un fichier
      Parameters:
      file - le fichier à parser
      Throws:
      IOException - if any pb
    • parseLine

      public void parseLine(File file, String key) throws IOException
      Description copied from interface: FileParser
      Parse une partie du fichier
      Parameters:
      file - le fichier à parser
      key - la ligne à parser
      Throws:
      IOException - if any pb
    • fileToDocument

      protected Document fileToDocument(File fileToProcess) throws SAXException, IOException
      Throws:
      SAXException
      IOException