public final class ArtifactAstSerializerProvider extends Object
ArtifactAsts.| Constructor and Description |
|---|
ArtifactAstSerializerProvider() |
ArtifactAstSerializerProvider(Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
ArtifactAstDeserializer |
getDeserializer()
This method returns an
ArtifactAstDeserializer able to handle all formats known by the
ArtifactAstSerializerFactory. |
ArtifactAstDeserializer |
getDeserializer(boolean populateGenerationInformation)
This method returns an
ArtifactAstDeserializer able to handle all formats known by the
ArtifactAstSerializerFactory. |
ArtifactAstSerializer |
getSerializer(String format,
String version)
This method returns a serializer for a given desired output format.
|
public ArtifactAstSerializerProvider()
public ArtifactAstSerializerProvider(Executor executor)
public final ArtifactAstSerializer getSerializer(String format, String version) 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 ArtifactAstSerializerFactoryversion - the desired serializer versionIllegalArgumentException - 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.
ArtifactAstDeserializerpublic final ArtifactAstDeserializer getDeserializer(boolean populateGenerationInformation)
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 © 2022 MuleSoft, Inc.. All rights reserved.