public final class ArtifactAstSerializerProvider extends Object
ArtifactAsts.| Constructor and Description |
|---|
ArtifactAstSerializerProvider() |
| Modifier and Type | Method and Description |
|---|---|
ArtifactAstDeserializer |
getDeserializer()
This method returns an
ArtifactAstDeserializer able to handle all formats known by the
ArtifactAstSerializerFactory. |
ArtifactAstSerializer |
getSerializer(String format)
This method returns a serializer for a given desired output format.
|
public final ArtifactAstSerializer getSerializer(String format) throws IllegalArgumentException
ArtifactAstSerializerFactory. Valid values for format strings are defined as static constants in
ArtifactAstSerializerFactory class.
A serializer instance returned by this provider may not be thread-safe so it should no be used for serializing many
ArtifactAsts at once.
format - the id of the serialization format, defined as constants in ArtifactAstSerializerFactoryIllegalArgumentException - if the specified format is null or if no matching serializer for the given format is found
in the ArtifactAstSerializerFactorypublic final ArtifactAstDeserializer getDeserializer()
ArtifactAstDeserializer able to handle all formats known by the
ArtifactAstSerializerFactory.
A deserializer instance returned by this provider may not be thread-safe so it should no be used for deserializing many
ArtifactAsts at once.
ArtifactAstDeserializerCopyright © 2021 MuleSoft, Inc.. All rights reserved.