Class QualityAnnotation

  • All Implemented Interfaces:
    java.io.Serializable

    public class QualityAnnotation
    extends DataFieldAnnotation
    QualityAnnotation records a quality assessment of the data. It can be attached to the whole asset or a specific data field. Since there are different aspects of quality, the quality dimension characterizes the type of quality it is measuring. Then there is a score. This is an integer and can be used as needed. However, a suggestion is to use it as a percentage score - so a number between 0 and 100 where 100 is the best.
    See Also:
    Serialized Form
    • Constructor Detail

      • QualityAnnotation

        public QualityAnnotation()
        Default constructor
      • QualityAnnotation

        public QualityAnnotation​(QualityAnnotation template)
        Copy clone constructor
        Parameters:
        template - object to copy
    • Method Detail

      • getQualityDimension

        public java.lang.String getQualityDimension()
        Return the type of quality being measured.
        Returns:
        string name
      • setQualityDimension

        public void setQualityDimension​(java.lang.String qualityDimension)
        Set up the type of quality being measured.
        Parameters:
        qualityDimension - string name
      • getQualityScore

        public int getQualityScore()
        Return a quality score between 0 and 100 - 100 is the best.
        Returns:
        int
      • setQualityScore

        public void setQualityScore​(int qualityScore)
        Set up a quality score between 0 and 100 - 100 is the best.
        Parameters:
        qualityScore - int
      • toString

        public java.lang.String toString()
        Standard toString method.
        Overrides:
        toString in class DataFieldAnnotation
        Returns:
        print out of variables in a JSON-style
      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        Compare the values of the supplied object with those stored in the current object.
        Overrides:
        equals in class Annotation
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison
      • hashCode

        public int hashCode()
        Create a hash code for this element type.
        Overrides:
        hashCode in class Annotation
        Returns:
        int hash code