Class InventoryParser.ParseResult

java.lang.Object
com.scivicslab.turingworkflow.plugins.inventory.InventoryParser.ParseResult
Enclosing class:
InventoryParser

public static class InventoryParser.ParseResult extends Object
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 Details

    • ParseResult

      public ParseResult(InventoryParser.Inventory inventory, List<String> warnings)
      Constructs a new ParseResult.
      Parameters:
      inventory - the parsed inventory
      warnings - list of warning messages
  • Method Details

    • getInventory

      public InventoryParser.Inventory getInventory()
      Gets the parsed inventory.
      Returns:
      the inventory
    • getWarnings

      public List<String> 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