Class InventoryParser.ParseResult
java.lang.Object
com.scivicslab.actoriac.InventoryParser.ParseResult
- Enclosing class:
InventoryParser
Result of parsing an inventory file.
Contains the parsed inventory and any warnings generated during parsing. Warnings should be logged by the caller using the appropriate logging mechanism.
- Author:
- devteam@scivicslab.com
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParseResult(InventoryParser.Inventory inventory, List<String> warnings) Constructs a new ParseResult. -
Method Summary
Modifier and TypeMethodDescriptionGets the parsed inventory.Gets the list of warnings generated during parsing.booleanChecks if any warnings were generated.
-
Field Details
-
inventory
-
warnings
-
-
Constructor Details
-
ParseResult
Constructs a new ParseResult.- Parameters:
inventory- the parsed inventorywarnings- list of warning messages
-
-
Method Details
-
getInventory
-
getWarnings
Gets the list of warnings generated during parsing.- Returns:
- list of warning messages (may be empty)
-
hasWarnings
Checks if any warnings were generated.- Returns:
- true if there are warnings
-