Interface ItemFileParser
@NonNullByDefault
public interface ItemFileParser
ItemFileParser is the interface to implement by any file parser for Item object.- Author:
- Laurent Garnier - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionvoidfinishParsingFileFormat(String modelName) Release the data from a previously started file format parsing.Returns the format of the syntax.getParsedItems(String modelName) Get theItemobjects found when parsing the file format.getParsedMetadata(String modelName) Get theMetadataobjects found when parsing the file format.getParsedStateFormatters(String modelName) Get the state formatters found when parsing the file format.@Nullable StringParse the provided syntax in file format without impacting the item and metadata registries.
-
Method Details
-
getFileFormatParser
String getFileFormatParser()Returns the format of the syntax.- Returns:
- the syntax format
-
startParsingFileFormat
Parse the provided syntax in file format without impacting the item and metadata registries.- Parameters:
syntax- the syntax in file formaterrors- the list to be used to fill the errorswarnings- the list to be used to fill the warnings- Returns:
- the model name used for parsing if the parsing succeeded without errors; null otherwise
-
getParsedItems
Get theItemobjects found when parsing the file format.- Parameters:
modelName- the model name used for parsing- Returns:
- the collection of items
-
getParsedMetadata
Get theMetadataobjects found when parsing the file format.- Parameters:
modelName- the model name used for parsing- Returns:
- the collection of metadata
-
getParsedStateFormatters
Get the state formatters found when parsing the file format.- Parameters:
modelName- the model name used for parsing- Returns:
- the state formatters as a Map per item name
-
finishParsingFileFormat
Release the data from a previously started file format parsing.- Parameters:
modelName- the model name used for parsing
-