Package org.spdx.maven
Class Annotation
java.lang.Object
org.spdx.maven.Annotation
Simple class to hold an SPDX Annotation.
- Author:
- Gary O'Neall
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
logInfo()
void
setAnnotationComment
(String annotationComment) void
setAnnotationDate
(String annotationDate) void
setAnnotationType
(String annotationType) void
setAnnotator
(String annotator) toSpdxAnnotation
(SpdxDocument spdxDoc)
-
Constructor Details
-
Annotation
public Annotation()Create a default (empty) annotation
-
-
Method Details
-
getAnnotationType
- Returns:
- the annotationType
-
setAnnotationType
- Parameters:
annotationType
- the annotationType to set
-
getAnnotationDate
- Returns:
- the annotationDate
-
setAnnotationDate
- Parameters:
annotationDate
- the annotationDate to set
-
getAnnotator
- Returns:
- the annotator
-
setAnnotator
- Parameters:
annotator
- the annotator to set
-
getAnnotationComment
- Returns:
- the annotationComment
-
setAnnotationComment
- 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()
-