public class Annotation extends RdfModelObject implements Comparable<Annotation>
| Modifier and Type | Class and Description |
|---|---|
static class |
Annotation.AnnotationType |
| Modifier and Type | Field and Description |
|---|---|
static Map<Annotation.AnnotationType,String> |
ANNOTATION_TYPE_TO_TAG
Deprecated.
|
static Map<String,Annotation.AnnotationType> |
TAG_TO_ANNOTATION_TYPE
Deprecated.
|
model, modelContainer, node, refreshOnGet, resource| Constructor and Description |
|---|
Annotation(IModelContainer modelContainer,
org.apache.jena.graph.Node annotationNode) |
Annotation(String annotator,
Annotation.AnnotationType annotationType,
String date,
String comment) |
| Modifier and Type | Method and Description |
|---|---|
Annotation |
clone() |
int |
compareTo(Annotation o) |
boolean |
equivalent(IRdfModel o)
Returns true if the compare object contains properties which would be equal if they were contained in the same RDF Model
|
String |
getAnnotationDate() |
Annotation.AnnotationType |
getAnnotationType() |
String |
getAnnotationTypeTag() |
String |
getAnnotator() |
String |
getComment() |
void |
getPropertiesFromModel()
Fetch all of the properties from the model and populate the local Java properties
|
org.apache.jena.rdf.model.Resource |
getType(org.apache.jena.rdf.model.Model model) |
String |
getUri(IModelContainer modelContainer)
Get the URI for this RDF object.
|
void |
populateModel()
Populate the model from the properties
|
void |
setAnnotationDate(String date) |
void |
setAnnotationType(Annotation.AnnotationType annotationType) |
void |
setAnnotator(String annotator) |
void |
setComment(String comment) |
List<String> |
verify() |
addPropertyUriValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, arraysEquivalent, createResource, createResource, equals, equivalentConsideringNull, findAnnotationPropertyValues, findAnyLicenseInfoPropertyValue, findAnyLicenseInfoPropertyValues, findChecksumPropertyValue, findCreationInfoPropertyValue, findDuplicateResource, findElementPropertyValue, findExternalDocRefPropertyValues, findExternalDocRefPropertyValues, findExternalRefPropertyValues, findIntPropertyValue, findMultipleChecksumPropertyValues, findMultipleDoapPropertyValues, findMultipleElementPropertyValues, findMultiplePropertyValues, findReferenceTypePropertyValue, findRelationshipPropertyValues, findReviewPropertyValues, findSinglePointerPropertyValue, findSinglePropertyValue, findStartEndPointerPropertyValues, findUriPropertyValue, findUriPropertyValues, findVerificationCodePropertyValue, getNode, hashCode, isRefreshOnGet, removePropertyValue, resourcesEqual, setMultipleObjectsForSameNode, setPropertyUriValue, setPropertyUriValues, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setSingleObjectForSameNode@Deprecated public static final Map<Annotation.AnnotationType,String> ANNOTATION_TYPE_TO_TAG
@Deprecated public static final Map<String,Annotation.AnnotationType> TAG_TO_ANNOTATION_TYPE
public Annotation(String annotator, Annotation.AnnotationType annotationType, String date, String comment)
public Annotation(IModelContainer modelContainer, org.apache.jena.graph.Node annotationNode) throws InvalidSPDXAnalysisException
InvalidSPDXAnalysisExceptionpublic void getPropertiesFromModel()
throws InvalidSPDXAnalysisException
RdfModelObjectgetPropertiesFromModel in class RdfModelObjectInvalidSPDXAnalysisExceptionpublic org.apache.jena.rdf.model.Resource getType(org.apache.jena.rdf.model.Model model)
getType in class RdfModelObjectpublic void populateModel()
throws InvalidSPDXAnalysisException
populateModel in class RdfModelObjectInvalidSPDXAnalysisExceptionpublic Annotation.AnnotationType getAnnotationType()
public void setAnnotationType(Annotation.AnnotationType annotationType) throws InvalidSPDXAnalysisException
annotationType - the annotationType to setInvalidSPDXAnalysisExceptionpublic String getAnnotator()
public void setAnnotator(String annotator)
annotator - the annotator to setpublic String getComment()
public void setComment(String comment)
comment - the comment to setpublic String getAnnotationDate()
public void setAnnotationDate(String date) throws InvalidSPDXAnalysisException
date - the date to setInvalidSPDXAnalysisExceptionpublic String getUri(IModelContainer modelContainer)
RdfModelObjectgetUri in class RdfModelObjectpublic Annotation clone()
public boolean equivalent(IRdfModel o)
IRdfModelequivalent in interface IRdfModelpublic String getAnnotationTypeTag()
public int compareTo(Annotation o)
compareTo in interface Comparable<Annotation>Copyright © 2018 Linux Foundation. All Rights Reserved.