Package org.tweetyproject.web.util
Class ArgumentSerialization
java.lang.Object
org.tweetyproject.web.util.ArgumentSerialization
Utility for serializing arguments as strings.
- Author:
- Oleksandr Dzhychko
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringSerialize argument object to stringfromCollection(Collection<Argument> arguments) Serialize a set of arguments to stringsfromCollectionOfCollections(List<Collection<Argument>> collectionsOfArguments) Serialize a set of sets of arguments to strings
-
Method Details
-
from
Serialize argument object to string- Parameters:
argument- some argument- Returns:
- string of argument name
-
fromCollection
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
-