Object YamlProvider
-
- All Implemented Interfaces:
-
it.unibo.alchemist.boundary.AlchemistModelProvider
public class YamlProvider implements AlchemistModelProvider
Loads YAML files via SnakeYAML.
-
-
Field Summary
Fields Modifier and Type Field Description private final Regex
fileExtensions
public final static YamlProvider
INSTANCE
-
Method Summary
Modifier and Type Method Description Map<String, Object>
from(String input)
Reads input from a String. Map<String, Object>
from(Reader input)
Reads input from a Reader. Map<String, Object>
from(InputStream input)
Reads input from an InputStream. Map<String, Object>
from(URL input)
Reads input from a URL. Regex
getFileExtensions()
A Regex matching the file extensions supported by this provider. -
-
Method Detail
-
from
Map<String, Object> from(InputStream input)
Reads input from an InputStream.
-
getFileExtensions
Regex getFileExtensions()
A Regex matching the file extensions supported by this provider.
-
-
-
-