Class Marker

    • Field Detail

      • EMPTY_FEATURE_ID

        public static final int EMPTY_FEATURE_ID
        The empty feature id constant.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Marker

        public Marker()
    • Method Detail

      • getCreatedAt

        public long getCreatedAt()
        Gets created at.
        Returns:
        the createdAt
      • getExtraInfo

        public Map<String,​String> getExtraInfo()
        Gets extra info. Please note that some values are stored in the compressed format, so use or Map#getOrDefault(Object, Object) to access decompressed values. Direct access to map entries may give you compressed values so use with caution
        Returns:
        the extraInfo
      • getMessage

        public String getMessage()
        Gets message.
        Returns:
        the message
      • getCheckId

        public String getCheckId()
        Returns check id.
        Returns:
        check id, not null
      • setCheckId

        public void setCheckId​(String checkId)
        Sets check id.
        Parameters:
        check - id, not null
      • getSourceType

        public String getSourceType()
        Returns source type.
        Returns:
        the source type, not
      • setCreatedAt

        public void setCreatedAt​(long createdAt)
        Sets created at.
        Parameters:
        createdAt - the createdAt to set
      • setExtraInfo

        public void setExtraInfo​(Map<String,​String> extraInfo)
        Sets extra info.
        Parameters:
        extraInfo - the extraInfo to set
      • setMessage

        public void setMessage​(String message)
        Sets message.
        Parameters:
        message - the message to set
      • setSourceType

        public void setSourceType​(String sourceType)
        Sets source type.
        Parameters:
        sourceType - the source type to set
      • getFeatureId

        public int getFeatureId()
        Gets the feature identifier.
        Returns:
        the feature identifier.
      • setFeatureId

        public void setFeatureId​(int featureId)
        Sets the feature identifier.
        Parameters:
        featureId - the feature identifier to set.
      • getSeverity

        public MarkerSeverity getSeverity()
        Returns:
        the severity
      • setSeverity

        public void setSeverity​(MarkerSeverity severity)
        Parameters:
        severity - the severity to set
      • getMarkerId

        public abstract String getMarkerId()
        Gets marker id. Id should be unique for bm model
        Returns:
        marker id, never null
      • getSourceObjectId

        public Object getSourceObjectId()
        Gets the context object id that was used during the generation of the marker. This identifier is used to clear all markers related to the source object during the next validation ( each validation performs full replacement of check-related markers for a particular source)
        Returns:
        the sourceObjectId The identifier of the source object, can be null
      • setSourceObjectId

        public void setSourceObjectId​(Object sourceObjectId)
        Sets the source object identifier
        Parameters:
        sourceObjectId - The sourceObjectId to set, can be null
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object