@NoImplement
public interface ArtifactAstDeserializer
InputStream created using an ArtifactAstSerializer into an
ArtifactAst.
The content of the InputStream might have been generated in different ways, depending on the
ArtifactAstSerializer used, each requiring a specific deserialization process to be determined by the implementation.
If the deserializer cannot handle this input stream, an IllegalArgumentException will be thrown.
ExtensionModel related information must be provided by the client code. This means that in order to deserialize, such
information is required and must be presented as an input of the deserialization method.
| Modifier and Type | Method and Description |
|---|---|
ArtifactAst |
deserialize(InputStream artifactAstInputStream,
ExtensionModelResolver extensionModelResolver)
Given an
InputStream created by serializing an ArtifactAst with an ArtifactAstSerializer and an
ExtensionModelResolver able to provide the required ExtensionModels, this method deserializes the
InputStream into an ArtifactAst. |
ArtifactAst deserialize(InputStream artifactAstInputStream, ExtensionModelResolver extensionModelResolver) throws IllegalArgumentException, IOException
InputStream created by serializing an ArtifactAst with an ArtifactAstSerializer and an
ExtensionModelResolver able to provide the required ExtensionModels, this method deserializes the
InputStream into an ArtifactAst.artifactAstInputStream - the input stream generated by an ArtifactAstSerializerextensionModelResolver - an ExtensionModelResolver able to provide the ExtensionModels required by this
serialized ArtifactAstIllegalArgumentException - if this deserializer cannot perform a deserialization with the given InputStream
and/or ExtensionModelResolverIOException - if the input stream could not be readCopyright © 2022 MuleSoft, Inc.. All rights reserved.