Class Annotation
java.lang.Object
org.odpi.openmetadata.frameworks.surveyaction.properties.PropertyBase
org.odpi.openmetadata.frameworks.surveyaction.properties.Annotation
- Direct Known Subclasses:
DataFieldAnnotation,ResourceMeasureAnnotation,SchemaAnalysisAnnotation
Annotation is used to record information gleaned from a survey action service. The subtypes contain more detail.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.surveyaction.properties.PropertyBase
CURRENT_AUDIT_HEADER_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor used by subclassesAnnotation(Annotation template) Copy/clone Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the additional properties for the Annotation.Return a description of the analysis step that the survey action service was in when it created the annotation.Return the current status of the annotation.List<org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataElement>Return the list of elements that are linked to this annotation via the AssociatedAnnotation relationship.Return the informal name for the type of annotation.intReturn the confidence level of the survey action service that the annotation is correct.Return the explanation for the annotation.Return the expression that represent the relationship between the annotation and the asset.Return the JSON properties associated with the annotation.Return any comments made by the steward during the review.Return the date that this annotation was reviewed.Return the name of the steward that reviewed the annotation.Return the summary description for the annotation.inthashCode()Create a hash code for this element type.voidsetAdditionalProperties(Map<String, String> additionalProperties) Set up the additional properties for the Annotation.voidsetAnalysisStep(String analysisStep) Set up a description of the analysis step that the survey action service was in when it created the annotation.voidsetAnnotationStatus(AnnotationStatus annotationStatus) Set up the current status of the annotation.voidsetAnnotationSubjects(List<org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataElement> annotationSubjects) Set up the list of elements that are linked to this annotation via the AssociatedAnnotation relationship.voidsetAnnotationType(String annotationType) Set up the informal name for the type of annotation.voidsetConfidenceLevel(int confidenceLevel) Set up the confidence level of the survey action service that the annotation is correct.voidsetExplanation(String explanation) Set up the explanation for the annotation.voidsetExpression(String expression) Set up the expression that represent the relationship between the annotation and the asset.voidsetJsonProperties(String jsonProperties) Set up the JSON properties associated with the annotation.voidsetReviewComment(String reviewComment) Set up any comments made by the steward during the review.voidsetReviewDate(Date reviewDate) Set up the date that this annotation was reviewed.voidsetSteward(String steward) Set up the name of the steward that reviewed the annotation.voidsetSummary(String summary) Set up the summary description for the annotation.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.surveyaction.properties.PropertyBase
getElementHeader, getExtendedProperties, getHeaderVersion, getOpenMetadataTypeName, setElementHeader, setExtendedProperties, setHeaderVersion, setOpenMetadataTypeName
-
Constructor Details
-
Annotation
public Annotation()Default constructor used by subclasses -
Annotation
Copy/clone Constructor- Parameters:
template- template object to copy.
-
-
Method Details
-
getAnnotationType
Return the informal name for the type of annotation.- Returns:
- String annotation type
-
setAnnotationType
Set up the informal name for the type of annotation.- Parameters:
annotationType- String annotation type
-
getSummary
Return the summary description for the annotation.- Returns:
- String summary of annotation
-
setSummary
Set up the summary description for the annotation.- Parameters:
summary- String summary of annotation
-
getConfidenceLevel
public int getConfidenceLevel()Return the confidence level of the survey action service that the annotation is correct.- Returns:
- int confidence level
-
setConfidenceLevel
public void setConfidenceLevel(int confidenceLevel) Set up the confidence level of the survey action service that the annotation is correct.- Parameters:
confidenceLevel- int confidence level
-
getExpression
Return the expression that represent the relationship between the annotation and the asset.- Returns:
- String expression
-
setExpression
Set up the expression that represent the relationship between the annotation and the asset.- Parameters:
expression- String expression
-
getExplanation
Return the explanation for the annotation.- Returns:
- String explanation
-
setExplanation
Set up the explanation for the annotation.- Parameters:
explanation- explanation
-
getAnalysisStep
Return a description of the analysis step that the survey action service was in when it created the annotation.- Returns:
- String analysis step
-
setAnalysisStep
Set up a description of the analysis step that the survey action service was in when it created the annotation.- Parameters:
analysisStep- analysis step
-
getJsonProperties
Return the JSON properties associated with the annotation.- Returns:
- String JSON properties of annotation
-
setJsonProperties
Set up the JSON properties associated with the annotation.- Parameters:
jsonProperties- JSON properties of annotation
-
getAnnotationSubjects
public List<org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataElement> getAnnotationSubjects()Return the list of elements that are linked to this annotation via the AssociatedAnnotation relationship.- Returns:
- open metadata elements
-
setAnnotationSubjects
public void setAnnotationSubjects(List<org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataElement> annotationSubjects) Set up the list of elements that are linked to this annotation via the AssociatedAnnotation relationship.- Parameters:
annotationSubjects- open metadata elements
-
getAnnotationStatus
Return the current status of the annotation.- Returns:
- AnnotationStatus current status of annotation
-
setAnnotationStatus
Set up the current status of the annotation.- Parameters:
annotationStatus- current status of annotation
-
getReviewDate
Return the date that this annotation was reviewed. If no review has taken place then this property is null.- Returns:
- Date review date
-
setReviewDate
Set up the date that this annotation was reviewed. If no review has taken place then this property is null.- Parameters:
reviewDate- review date
-
getSteward
Return the name of the steward that reviewed the annotation.- Returns:
- String steward's name.
-
setSteward
Set up the name of the steward that reviewed the annotation.- Parameters:
steward- steward's name.
-
getReviewComment
Return any comments made by the steward during the review.- Returns:
- String review comment
-
setReviewComment
Set up any comments made by the steward during the review.- Parameters:
reviewComment- review comment
-
getAdditionalProperties
Return the additional properties for the Annotation.- Returns:
- properties map
-
setAdditionalProperties
Set up the additional properties for the Annotation.- Parameters:
additionalProperties- properties map
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Create a hash code for this element type.
-