Class InventoryParser.ParseResult
java.lang.Object
com.scivicslab.turingworkflow.plugins.inventory.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.
- Since:
- 1.0
-
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.
-
Constructor Details
-
ParseResult
Constructs a new ParseResult.- Parameters:
inventory- the parsed inventorywarnings- list of warning messages
-
-
Method Details
-
getInventory
Gets the parsed inventory.- Returns:
- the inventory
-
getWarnings
Gets the list of warnings generated during parsing.- Returns:
- list of warning messages (may be empty)
-
hasWarnings
public boolean hasWarnings()Checks if any warnings were generated.- Returns:
- true if there are warnings
-