Class DataClassAnnotation
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.discovery.properties.PropertyBase
-
- org.odpi.openmetadata.frameworks.discovery.properties.Annotation
-
- org.odpi.openmetadata.frameworks.discovery.properties.DataFieldAnnotation
-
- org.odpi.openmetadata.frameworks.discovery.properties.DataClassAnnotation
-
- All Implemented Interfaces:
Serializable
public class DataClassAnnotation extends DataFieldAnnotation
DataClassAnnotation recommends a data class that potentially matches this data field.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.frameworks.discovery.properties.PropertyBase
CURRENT_AUDIT_HEADER_VERSION
-
-
Constructor Summary
Constructors Constructor Description DataClassAnnotation()Default constructorDataClassAnnotation(DataClassAnnotation template)Copy clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.List<String>getCandidateDataClassGUIDs()Return the identifiers of data classes that seem to match the values in this data field.longgetMatchingValues()Return the count of matching values that match the specification of these data classes.longgetNonMatchingValues()Return the count of values that do not match the specification of these data classes.inthashCode()Create a hash code for this element type.voidsetCandidateDataClassGUIDs(List<String> candidateDataClassGUIDs)Set up the identifiers of data classes that seem to match the values in this data field.voidsetMatchingValues(long matchingValues)Set up the count of matching values that match the specification of these data classes.voidsetNonMatchingValues(long nonMatchingValues)Set up the count of values that do not match the specification of these data classes.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.discovery.properties.Annotation
getAdditionalProperties, getAnalysisStep, getAnnotationStatus, getAnnotationType, getConfidenceLevel, getExplanation, getExpression, getJsonProperties, getNumAttachedAnnotations, getReviewComment, getReviewDate, getSteward, getSummary, setAdditionalProperties, setAnalysisStep, setAnnotationStatus, setAnnotationType, setConfidenceLevel, setExplanation, setExpression, setJsonProperties, setNumAttachedAnnotations, setReviewComment, setReviewDate, setSteward, setSummary
-
Methods inherited from class org.odpi.openmetadata.frameworks.discovery.properties.PropertyBase
getElementHeader, getExtendedProperties, getHeaderVersion, getTypeName, setElementHeader, setExtendedProperties, setHeaderVersion, setTypeName
-
-
-
-
Constructor Detail
-
DataClassAnnotation
public DataClassAnnotation()
Default constructor
-
DataClassAnnotation
public DataClassAnnotation(DataClassAnnotation template)
Copy clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getCandidateDataClassGUIDs
public List<String> getCandidateDataClassGUIDs()
Return the identifiers of data classes that seem to match the values in this data field.- Returns:
- list of unique identifiers for data classes
-
setCandidateDataClassGUIDs
public void setCandidateDataClassGUIDs(List<String> candidateDataClassGUIDs)
Set up the identifiers of data classes that seem to match the values in this data field.- Parameters:
candidateDataClassGUIDs- list of guids
-
getMatchingValues
public long getMatchingValues()
Return the count of matching values that match the specification of these data classes.- Returns:
- long
-
setMatchingValues
public void setMatchingValues(long matchingValues)
Set up the count of matching values that match the specification of these data classes.- Parameters:
matchingValues- long
-
getNonMatchingValues
public long getNonMatchingValues()
Return the count of values that do not match the specification of these data classes.- Returns:
- long
-
setNonMatchingValues
public void setNonMatchingValues(long nonMatchingValues)
Set up the count of values that do not match the specification of these data classes.- Parameters:
nonMatchingValues- long
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classDataFieldAnnotation- Returns:
- print out of variables in a JSON-style
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classAnnotation- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Create a hash code for this element type.- Overrides:
hashCodein classAnnotation- Returns:
- int hash code
-
-