Class AbstractXMLTychoMapping

    • Field Detail

      • FACTORY

        private static final javax.xml.parsers.DocumentBuilderFactory FACTORY
    • Constructor Detail

      • AbstractXMLTychoMapping

        public AbstractXMLTychoMapping()
    • Method Detail

      • initModel

        protected void initModel​(org.apache.maven.model.Model model,
                                 java.io.Reader artifactReader,
                                 java.io.File artifactFile)
                          throws org.apache.maven.model.io.ModelParseException,
                                 java.io.IOException
        Specified by:
        initModel in class AbstractTychoMapping
        Throws:
        org.apache.maven.model.io.ModelParseException
        java.io.IOException
      • initModelFromXML

        protected abstract void initModelFromXML​(org.apache.maven.model.Model model,
                                                 org.w3c.dom.Element xml,
                                                 java.io.File artifactFile)
                                          throws org.apache.maven.model.io.ModelParseException,
                                                 java.io.IOException
        Throws:
        org.apache.maven.model.io.ModelParseException
        java.io.IOException
      • getRequiredXMLAttributeValue

        protected static java.lang.String getRequiredXMLAttributeValue​(org.w3c.dom.Element element,
                                                                       java.lang.String attributeName)
                                                                throws org.apache.maven.model.io.ModelParseException
        Throws:
        org.apache.maven.model.io.ModelParseException
      • getXMLAttributeValue

        protected static java.lang.String getXMLAttributeValue​(org.w3c.dom.Element element,
                                                               java.lang.String attributeName)
      • getPriority

        public float getPriority()
        Specified by:
        getPriority in interface org.sonatype.maven.polyglot.mapping.Mapping
        Overrides:
        getPriority in class AbstractTychoMapping