Class TeslaModelTranslator

java.lang.Object
org.sonatype.maven.polyglot.TeslaModelTranslator

@Component(role=TeslaModelTranslator.class) public class TeslaModelTranslator extends Object
Translates between polyglot model formats.
Since:
0.7
Author:
Jason Dillon
  • Field Details

    • log

      @Requirement protected org.codehaus.plexus.logging.Logger log
  • Constructor Details

    • TeslaModelTranslator

      public TeslaModelTranslator()
  • Method Details

    • translate

      public void translate(File input, File output) throws IOException, org.apache.maven.model.io.ModelParseException
      Throws:
      IOException
      org.apache.maven.model.io.ModelParseException
    • translate

      public void translate(File input, Map<String,?> inputOptions, File output, Map<String,?> outputOptions) throws IOException, org.apache.maven.model.io.ModelParseException
      Throws:
      IOException
      org.apache.maven.model.io.ModelParseException
    • translate

      public void translate(URL input, URL output) throws IOException, org.apache.maven.model.io.ModelParseException
      Throws:
      IOException
      org.apache.maven.model.io.ModelParseException
    • translate

      public void translate(URL input, Map<String,?> inputOptions, URL output, Map<String,?> outputOptions) throws IOException, org.apache.maven.model.io.ModelParseException
      Throws:
      IOException
      org.apache.maven.model.io.ModelParseException
    • translate

      public void translate(InputStream input, Map<String,?> inputOptions, OutputStream output, Map<String,?> outputOptions) throws IOException, org.apache.maven.model.io.ModelParseException
      Throws:
      IOException
      org.apache.maven.model.io.ModelParseException
    • translate

      public void translate(Reader input, Map<String,?> inputOptions, Writer output, Map<String,?> outputOptions) throws IOException, org.apache.maven.model.io.ModelParseException
      Throws:
      IOException
      org.apache.maven.model.io.ModelParseException