Class YamlModelReader

java.lang.Object
org.sonatype.maven.polyglot.io.ModelReaderSupport
org.sonatype.maven.polyglot.yaml.YamlModelReader
All Implemented Interfaces:
org.apache.maven.model.io.ModelReader

@Component(role=org.apache.maven.model.io.ModelReader.class, hint="yaml") public class YamlModelReader extends org.sonatype.maven.polyglot.io.ModelReaderSupport
YAML model reader.
Since:
0.7
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.yaml.snakeyaml.Yaml
     

    Fields inherited from interface org.apache.maven.model.io.ModelReader

    INPUT_SOURCE, IS_STRICT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.maven.model.Model
    read(Reader input, Map<String,?> options)
     

    Methods inherited from class org.sonatype.maven.polyglot.io.ModelReaderSupport

    getCharset, read, read

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • yaml

      private final org.yaml.snakeyaml.Yaml yaml
  • Constructor Details

    • YamlModelReader

      public YamlModelReader()
  • Method Details

    • read

      public org.apache.maven.model.Model read(Reader input, Map<String,?> options) throws IOException, org.apache.maven.model.io.ModelParseException
      Throws:
      IOException
      org.apache.maven.model.io.ModelParseException