Interface ModelSourceTransformer

All Known Implementing Classes:
AbstractModelSourceTransformer, DefaultModelSourceTransformer

public interface ModelSourceTransformer
The ModelSourceTransformer is a way to transform the local pom while streaming the input. The transform(XmlPullParser, Path, TransformerContext) method uses a Path on purpose, to ensure the local pom is the original source.
Since:
4.0.0
Author:
Robert Scholte, Guillaume Nodet
  • Method Summary

    Modifier and Type
    Method
    Description
    org.codehaus.plexus.util.xml.pull.XmlPullParser
    transform(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, Path pomFile, TransformerContext context)
     
  • Method Details

    • transform

      org.codehaus.plexus.util.xml.pull.XmlPullParser transform(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, Path pomFile, TransformerContext context) throws IOException, TransformerException
      Parameters:
      pomFile - the pom file, cannot be null
      context - the context, cannot be null
      Returns:
      the InputStream for the ModelReader
      Throws:
      IOException - if an I/O error occurs
      TransformerException - if the transformation fails