Record Class InboundMappingContextSpecification
java.lang.Object
java.lang.Record
com.evolveum.midpoint.model.impl.lens.projector.focus.inbounds.prep.InboundMappingContextSpecification
- Record Components:
typeIdentification- For what object type we evaluate the mappings. Note that we are interested in the "top-level" type here: even if we are technically evaluating a mapping for `association/xyz` object type, we are interested in the type of (e.g.) `account/default` in which the association resides. Should be non-null in reasonable cases; only for really broken (unclassified, or without-resource)LensProjectionContexts it may be null. See the typology of projection contexts inProjectionContextKey.associationTypeName- If the mapping is defined and evaluated in the context of an association, this is the name of the association. Whether it should be present also for inner-level mappings defined e.g. as part ofAssociationSynchronizationExpressionEvaluatorType, is currently an open question.shadowTag- If the mapping is evaluated in the context of a multi-account resource, this is the shadow tag.
- All Implemented Interfaces:
Serializable
public record InboundMappingContextSpecification(@Nullable ResourceObjectTypeIdentification typeIdentification, @Nullable QName associationTypeName, @Nullable String shadowTag)
extends Record
implements Serializable
Background information for value provenance metadata (
MappingSpecificationType) for inbound mappings.
In other words, it describes the context in which inbound mappings are evaluated: object type, association type, shadow tag.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInboundMappingContextSpecification(@Nullable ResourceObjectTypeIdentification typeIdentification, @Nullable QName associationTypeName, @Nullable String shadowTag) Creates an instance of aInboundMappingContextSpecificationrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable QNameReturns the value of theassociationTypeNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of theshadowTagrecord component.final StringtoString()Returns a string representation of this record class.@Nullable ResourceObjectTypeIdentificationReturns the value of thetypeIdentificationrecord component.
-
Constructor Details
-
InboundMappingContextSpecification
public InboundMappingContextSpecification(@Nullable @Nullable ResourceObjectTypeIdentification typeIdentification, @Nullable @Nullable QName associationTypeName, @Nullable @Nullable String shadowTag) Creates an instance of aInboundMappingContextSpecificationrecord class.- Parameters:
typeIdentification- the value for thetypeIdentificationrecord componentassociationTypeName- the value for theassociationTypeNamerecord componentshadowTag- the value for theshadowTagrecord 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). -
typeIdentification
Returns the value of thetypeIdentificationrecord component.- Returns:
- the value of the
typeIdentificationrecord component
-
associationTypeName
Returns the value of theassociationTypeNamerecord component.- Returns:
- the value of the
associationTypeNamerecord component
-
shadowTag
Returns the value of theshadowTagrecord component.- Returns:
- the value of the
shadowTagrecord component
-