Class ArgumentSerialization

java.lang.Object
org.tweetyproject.web.util.ArgumentSerialization

public final class ArgumentSerialization extends Object
Utility for serializing arguments as strings.
Author:
Oleksandr Dzhychko
  • Method Details

    • from

      public static String from(Argument argument)
      Serialize argument object to string
      Parameters:
      argument - some argument
      Returns:
      string of argument name
    • fromCollection

      public static List<String> fromCollection(Collection<Argument> arguments)
      Serialize a set of arguments to strings
      Parameters:
      arguments - a set of arguments
      Returns:
      list of argument strings
    • fromCollectionOfCollections

      public static List<List<String>> fromCollectionOfCollections(List<Collection<Argument>> collectionsOfArguments)
      Serialize a set of sets of arguments to strings
      Parameters:
      collectionsOfArguments - a set of sets of arguments
      Returns:
      corresponding list of lists of strings