Interface ReferableSerializer

  • All Known Implementing Classes:
    JsonSerializer

    public interface ReferableSerializer
    Serializer Interface for serialization of referables
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String write​(io.adminshell.aas.v3.model.Referable referable)
      Serializes a given instance of a Referable to string
      String write​(List<io.adminshell.aas.v3.model.Referable> referables)  
    • Method Detail

      • write

        String write​(io.adminshell.aas.v3.model.Referable referable)
              throws SerializationException
        Serializes a given instance of a Referable to string
        Parameters:
        referable - the referable to serialize
        Returns:
        the string representation of the referable
        Throws:
        SerializationException - if serialization fails
      • write

        String write​(List<io.adminshell.aas.v3.model.Referable> referables)
              throws SerializationException
        Parameters:
        referables - the referables to serialize
        Returns:
        the string representation of the list of referables
        Throws:
        SerializationException - if serialization fails