All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.mmm.marshall.snakeyaml.SnakeYamlFormatProvider Maven / Gradle / Ivy

There is a newer version: 0.9.11
Show newest version
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
 * http://www.apache.org/licenses/LICENSE-2.0 */
package io.github.mmm.marshall.snakeyaml;

import io.github.mmm.marshall.AbstractStructuredFormatProvider;
import io.github.mmm.marshall.MarshallingConfig;
import io.github.mmm.marshall.StructuredFormat;
import io.github.mmm.marshall.StructuredFormatProvider;
import io.github.mmm.marshall.StructuredTextFormat;
import io.github.mmm.marshall.StructuredTextFormatProvider;
import io.github.mmm.marshall.snakeyaml.impl.SnakeYamlFormat;

/**
 * Implementation of {@link StructuredFormatProvider} for JSON.
 *
 * @since 1.0.0
 */
public class SnakeYamlFormatProvider extends AbstractStructuredFormatProvider implements StructuredTextFormatProvider {

  @Override
  public String getId() {

    return StructuredFormat.ID_YAML;
  }

  @Override
  public String[] getAliases() {

    return new String[] { "yaml", "yml" };
  }

  @Override
  public StructuredTextFormat create() {

    return SnakeYamlFormat.of();
  }

  @Override
  public StructuredTextFormat create(MarshallingConfig config) {

    return SnakeYamlFormat.of(config);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy