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

com.microsoft.kiota.serialization.SerializationWriterFactory Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package com.microsoft.kiota.serialization;

import jakarta.annotation.Nonnull;

/** Defines the contract for a factory that creates SerializationWriter instances. */
public interface SerializationWriterFactory {
    /**
     * Gets the content type this factory creates serialization writers for.
     * @return the content type this factory creates serialization writers for.
     */
    @Nonnull String getValidContentType();

    /**
     * Creates a new SerializationWriter instance for the given content type.
     * @param contentType the content type to create a serialization writer for.
     * @return a new SerializationWriter instance for the given content type.
     */
    @Nonnull SerializationWriter getSerializationWriter(@Nonnull final String contentType);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy