Package dk.gtz.graphedit.model
Record Class ModelLint
java.lang.Object
java.lang.Record
dk.gtz.graphedit.model.ModelLint
- Record Components:
modelKey
- The key of the related model (seeIBufferContainer
)lintIdentifier
- Unique identifier for the type of lintseverity
- The severity level of the linttitle
- A very brief headline describing the lintmessage
- A detailed message displayed to the userlintDescription
- A general description of what this kind of lint representsaffectedElements
- A list of which syntactic elements should be highlightedaffectedRegions
- A list of regions in the graph that should be highlighted
public record ModelLint(String modelKey, String lintIdentifier, ModelLintSeverity severity, String title, String message, Optional<String> lintDescription, List<UUID> affectedElements, List<List<ModelPoint>> affectedRegions)
extends Record
Model object of a lint.
A Lint is a special kind of diagnostic annotation that can provide smart meta-insights about sections of a graph.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaffectedElements
record component.Returns the value of theaffectedRegions
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelintDescription
record component.Returns the value of thelintIdentifier
record component.message()
Returns the value of themessage
record component.modelKey()
Returns the value of themodelKey
record component.severity()
Returns the value of theseverity
record component.title()
Returns the value of thetitle
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ModelLint
public ModelLint(String modelKey, String lintIdentifier, ModelLintSeverity severity, String title, String message, Optional<String> lintDescription, List<UUID> affectedElements, List<List<ModelPoint>> affectedRegions) Creates an instance of aModelLint
record class.- Parameters:
modelKey
- the value for themodelKey
record componentlintIdentifier
- the value for thelintIdentifier
record componentseverity
- the value for theseverity
record componenttitle
- the value for thetitle
record componentmessage
- the value for themessage
record componentlintDescription
- the value for thelintDescription
record componentaffectedElements
- the value for theaffectedElements
record componentaffectedRegions
- the value for theaffectedRegions
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
modelKey
Returns the value of themodelKey
record component.- Returns:
- the value of the
modelKey
record component
-
lintIdentifier
Returns the value of thelintIdentifier
record component.- Returns:
- the value of the
lintIdentifier
record component
-
severity
Returns the value of theseverity
record component.- Returns:
- the value of the
severity
record component
-
title
Returns the value of thetitle
record component.- Returns:
- the value of the
title
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-
lintDescription
Returns the value of thelintDescription
record component.- Returns:
- the value of the
lintDescription
record component
-
affectedElements
Returns the value of theaffectedElements
record component.- Returns:
- the value of the
affectedElements
record component
-
affectedRegions
Returns the value of theaffectedRegions
record component.- Returns:
- the value of the
affectedRegions
record component
-