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

io.github.mmm.marshall.tvm.xml.TvmXmlFormatProvider Maven / Gradle / Ivy

There is a newer version: 0.9.10
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.tvm.xml;

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.tvm.xml.impl.TvmXmlFormat;

/**
 * Implementation of {@link StructuredFormatProvider} for XML using TeaVM.
 *
 * @since 1.0.0
 */
public class TvmXmlFormatProvider implements StructuredTextFormatProvider {

  @Override
  public String getId() {

    return StructuredFormat.ID_XML;
  }

  @Override
  public StructuredTextFormat create() {

    return TvmXmlFormat.of();
  }

  @Override
  public StructuredTextFormat create(MarshallingConfig config) {

    if (config == null) {
      return TvmXmlFormat.of();
    }
    return new TvmXmlFormat(config);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy