Record Class MustSupportExtension
java.lang.Object
java.lang.Record
org.fhirfrog.frog.profilecompiler.model.MustSupportExtension
public record MustSupportExtension(String elementId, String parentPath, String url, boolean mandatory)
extends Record
A must-support extension slot (algorithm.md §3.1):
elementId is the extension element's
own id (e.g. "Patient.extension:indigenousStatus"), parentPath is the resource-
type-prefix-stripped path of the element the extension sits on ("" for a root-level
extension), and url is the extension definition's canonical URL with any
|version suffix stripped. mandatory is the extension slot's own min > 0.-
Constructor Summary
ConstructorsConstructorDescriptionMustSupportExtension(String elementId, String parentPath, String url, boolean mandatory) Creates an instance of aMustSupportExtensionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theelementIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of themandatoryrecord component.Returns the value of theparentPathrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
MustSupportExtension
Creates an instance of aMustSupportExtensionrecord class.- Parameters:
elementId- the value for theelementIdrecord componentparentPath- the value for theparentPathrecord componenturl- the value for theurlrecord componentmandatory- the value for themandatoryrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
elementId
Returns the value of theelementIdrecord component.- Returns:
- the value of the
elementIdrecord component
-
parentPath
Returns the value of theparentPathrecord component.- Returns:
- the value of the
parentPathrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
mandatory
public boolean mandatory()Returns the value of themandatoryrecord component.- Returns:
- the value of the
mandatoryrecord component
-