Class AnnotationMatchProperties
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipBeanProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.LabeledRelationshipProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.surveyreports.AnnotationMatchProperties
AnnotationMatchProperties is used to link an annotation from a data class and identify how closely it matches.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipBeanProperties
typeName -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor used by subclassesCopy/clone Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the method used to create the match.intReturn the level of match - 0 means no match, 100 means perfect match.inthashCode()Create a hash code for this element type.voidSet up the method used to create the match.voidsetThreshold(int threshold) Set up the level of match - 0 means no match, 100 means perfect match.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.LabeledRelationshipProperties
getDescription, getLabel, setDescription, setLabelMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipBeanProperties
getExtendedProperties, getTypeName, setExtendedProperties, setTypeNameMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties
getEffectiveFrom, getEffectiveTo, setEffectiveFrom, setEffectiveTo
-
Constructor Details
-
AnnotationMatchProperties
public AnnotationMatchProperties()Default constructor used by subclasses -
AnnotationMatchProperties
Copy/clone Constructor- Parameters:
template- template object to copy.
-
-
Method Details
-
getMethod
Return the method used to create the match.- Returns:
- string
-
setMethod
Set up the method used to create the match.- Parameters:
method- string
-
getThreshold
public int getThreshold()Return the level of match - 0 means no match, 100 means perfect match.- Returns:
- int
-
setThreshold
public void setThreshold(int threshold) Set up the level of match - 0 means no match, 100 means perfect match.- Parameters:
threshold- int
-
toString
Standard toString method.- Overrides:
toStringin classLabeledRelationshipProperties- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classLabeledRelationshipProperties- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Create a hash code for this element type.- Overrides:
hashCodein classLabeledRelationshipProperties- Returns:
- int hash code
-