Class Annotation

java.lang.Object
org.spdx.maven.Annotation

public class Annotation extends Object
Simple class to hold an SPDX Annotation.
Author:
Gary O'Neall
See Also:
  • Constructor Details

    • Annotation

      public Annotation()
      Create a default (empty) annotation
  • Method Details

    • getAnnotationType

      public String getAnnotationType()
      Returns:
      the annotationType
    • setAnnotationType

      public void setAnnotationType(String annotationType)
      Parameters:
      annotationType - the annotationType to set
    • getAnnotationDate

      public String getAnnotationDate()
      Returns:
      the annotationDate
    • setAnnotationDate

      public void setAnnotationDate(String annotationDate)
      Parameters:
      annotationDate - the annotationDate to set
    • getAnnotator

      public String getAnnotator()
      Returns:
      the annotator
    • setAnnotator

      public void setAnnotator(String annotator)
      Parameters:
      annotator - the annotator to set
    • getAnnotationComment

      public String getAnnotationComment()
      Returns:
      the annotationComment
    • setAnnotationComment

      public void setAnnotationComment(String annotationComment)
      Parameters:
      annotationComment - the annotationComment to set
    • toSpdxAnnotation

      public Annotation toSpdxAnnotation(SpdxDocument spdxDoc) throws org.apache.maven.plugin.MojoExecutionException
      Parameters:
      spdxDoc - SPDX document which will contain the annotation
      Returns:
      an SPDX model version of the annotation
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • logInfo

      public void logInfo()