Record Class PathViolation
java.lang.Object
java.lang.Record
org.odpi.openmetadata.adapters.connectors.surveyaction.surveyfolder.layout.PathViolation
- Record Components:
violationType- the kind of violationoffendingPath- path of the file or directory that breaks the layout, relative to the directory that was checked. For a missing file or directory, this is the directory where it is missing (an empty string for the checked directory itself).expectedPattern- the name pattern (or patterns) expected at the offending path
public record PathViolation(PathViolationType violationType, String offendingPath, String expectedPattern)
extends Record
PathViolation describes one place where a directory tree breaks its layout.
-
Constructor Summary
ConstructorsConstructorDescriptionPathViolation(PathViolationType violationType, String offendingPath, String expectedPattern) Creates an instance of aPathViolationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpectedPatternrecord component.Return a description of the violation.final inthashCode()Returns a hash code value for this object.Returns the value of theoffendingPathrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theviolationTyperecord component.
-
Constructor Details
-
PathViolation
Creates an instance of aPathViolationrecord class.- Parameters:
violationType- the value for theviolationTyperecord componentoffendingPath- the value for theoffendingPathrecord componentexpectedPattern- the value for theexpectedPatternrecord component
-
-
Method Details
-
getDescription
Return a description of the violation.- Returns:
- text
-
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). -
violationType
Returns the value of theviolationTyperecord component.- Returns:
- the value of the
violationTyperecord component
-
offendingPath
Returns the value of theoffendingPathrecord component.- Returns:
- the value of the
offendingPathrecord component
-
expectedPattern
Returns the value of theexpectedPatternrecord component.- Returns:
- the value of the
expectedPatternrecord component
-