Klasse SourceViewModel

Alle implementierten Schnittstellen:

public class SourceViewModel extends Object implements ModelObject
Server side model that provides the data for the source code view of the coverage results. The layout of the associated view is defined corresponding jelly view 'index.jelly'.
Ullrich Hafner
  • Konstruktordetails

    • SourceViewModel

      public SourceViewModel(Run<?,?> owner, String id, edu.hm.hafner.coverage.FileNode fileNode)
      Creates a new source view model instance.
      owner - the owner of this view
      id - the ID that is used to store the coverage sources
      fileNode - the selected file node of the coverage tree
  • Methodendetails

    • getOwner

      public Run<?,?> getOwner()
    • getNode

      public edu.hm.hafner.coverage.FileNode getNode()
    • getSourceFileContent

      public String getSourceFileContent()
      Returns the source file rendered in HTML.
      Gibt zurück:
      the colored source code as HTML document
    • isSourceFileAvailable

      public boolean isSourceFileAvailable()
      Returns whether the source file is available in Jenkins build folder.
      Gibt zurück:
      true if the source file is available, false otherwise
    • getDisplayName

      public String getDisplayName()
      Angegeben von:
      getDisplayName in Schnittstelle ModelObject