Interface ReferableDeserializer
-
- All Known Implementing Classes:
JsonDeserializer
public interface ReferableDeserializerDeserializer Interface for deserialization of referables
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends io.adminshell.aas.v3.model.Referable>
TreadReferable(String referable, Class<T> outputClass)Deserializes a given string into an instance of the given Referable<T extends io.adminshell.aas.v3.model.Referable>
List<T>readReferables(String referables, Class<T> outputClass)Deserializes a given string into an instance of a list of the given Referables
-
-
-
Method Detail
-
readReferable
<T extends io.adminshell.aas.v3.model.Referable> T readReferable(String referable, Class<T> outputClass) throws DeserializationException
Deserializes a given string into an instance of the given Referable- Type Parameters:
T- type of the returned element- Parameters:
referable- a string representation of the ReferableoutputClass- most specific class of the given Referable- Returns:
- an instance of the referable
- Throws:
DeserializationException
-
readReferables
<T extends io.adminshell.aas.v3.model.Referable> List<T> readReferables(String referables, Class<T> outputClass) throws DeserializationException
Deserializes a given string into an instance of a list of the given Referables- Type Parameters:
T- type of the returned element- Parameters:
referables- a string representation of an array of ReferablesoutputClass- most specific class of the given Referable- Returns:
- an instance of a list of the referables
- Throws:
DeserializationException
-
-