Class McpResult

java.lang.Object
net.sourceforge.plantuml.mcp.McpResult

public class McpResult extends Object
  • Constructor Details

    • McpResult

      public McpResult(Diagram diagram)
    • McpResult

      public McpResult(Diagram diagram, String svg)
  • Method Details

    • badInput

      public static McpResult badInput()
    • noAtStart

      public static McpResult noAtStart()
    • isOk

      public boolean isOk()
      Returns:
      true if the source parsed without error
    • getDiagramType

      public String getDiagramType()
      Returns:
      the detected diagram type when OK (e.g. "SequenceDiagram"), or null when not applicable
    • getLineCount

      public int getLineCount()
      Returns:
      the number of source lines of the checked diagram
    • getWarnings

      public List<String> getWarnings()
      Returns:
      the non-fatal warnings, never null (possibly empty)
    • getErrorLineNumber

      public int getErrorLineNumber()
      Returns:
      the 1-based line of the error, or -1 when isOk() is true
    • getErrorMessage

      public String getErrorMessage()
      Returns:
      the error message, or null when isOk() is true
    • getErrorLine

      public String getErrorLine()
    • getErrorContext

      public String getErrorContext()
      Returns:
      the offending source line, or null when not available
    • getSvg

      public String getSvg()