Class JsonStateSection

java.lang.Object
com.scivicslab.actoriac.report.JsonStateSection
All Implemented Interfaces:
ReportSection

public class JsonStateSection extends Object implements ReportSection
Report section for actor JsonState data in YAML format.

Displays collected data from an actor's JsonState as YAML.

Since:
2.15.0
Author:
devteam@scivicslab.com
  • Field Details

  • Constructor Details

    • JsonStateSection

      public JsonStateSection(String actorName, String yamlContent)
      Creates a JsonState section.
      Parameters:
      actorName - the name of the actor whose data is displayed
      yamlContent - the YAML-formatted content from JsonState
  • Method Details

    • getTitle

      public String getTitle()
      Description copied from interface: ReportSection
      Returns the section title.

      If null or empty, the section content is output without a title line.

      Specified by:
      getTitle in interface ReportSection
      Returns:
      the section title, or null for no title
    • getContent

      public String getContent()
      Description copied from interface: ReportSection
      Returns the section content.

      If null or empty, the section is skipped in the report.

      Specified by:
      getContent in interface ReportSection
      Returns:
      the section content