Record Class ExternalTestDataReference
java.lang.Object
java.lang.Record
com.shaft.capture.model.ExternalTestDataReference
- Record Components:
id- stable data identifierlogicalName- reviewer-friendly field namesource- external data sourcerelativePath- optional sanitized data-file pathjsonPointer- optional JSON pointer within the data fileclassification- privacy classification
public record ExternalTestDataReference(String id, String logicalName, ExternalTestDataReference.DataSource source, String relativePath, String jsonPointer, ExternalTestDataReference.DataClassification classification)
extends Record
Reference to external test data without retaining the original value.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeterministic privacy classifications.static enumExternal data sources supported by generated tests. -
Constructor Summary
ConstructorsConstructorDescriptionExternalTestDataReference(String id, String logicalName, ExternalTestDataReference.DataSource source, String relativePath, String jsonPointer, ExternalTestDataReference.DataClassification classification) Creates an immutable external test-data reference. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassificationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of thejsonPointerrecord component.Returns the value of thelogicalNamerecord component.Returns the value of therelativePathrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExternalTestDataReference
public ExternalTestDataReference(String id, String logicalName, ExternalTestDataReference.DataSource source, String relativePath, String jsonPointer, ExternalTestDataReference.DataClassification classification) Creates an immutable external test-data reference.
-
-
Method Details
-
toString
-
hashCode
-
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). -
id
-
logicalName
Returns the value of thelogicalNamerecord component.- Returns:
- the value of the
logicalNamerecord component
-
source
-
relativePath
Returns the value of therelativePathrecord component.- Returns:
- the value of the
relativePathrecord component
-
jsonPointer
Returns the value of thejsonPointerrecord component.- Returns:
- the value of the
jsonPointerrecord component
-
classification
Returns the value of theclassificationrecord component.- Returns:
- the value of the
classificationrecord component
-