Record Class EntityMetadata.ModelParameter
java.lang.Object
java.lang.Record
io.fluxzero.sdk.modeling.EntityMetadata.ModelParameter
- Record Components:
associationProperty- explicit payload/metadata property qualifier, ornullfor automatic matchingassociationExcludeMetadata- whether the explicit qualifier must ignore message metadata
- Enclosing class:
EntityMetadata
public static record EntityMetadata.ModelParameter(Parameter parameter, Class<?> modelType, boolean entityWrapped, boolean graphWrapped, boolean collectionWrapped, String associationProperty, boolean associationExcludeMetadata)
extends Record
A model value,
Entity<Model>, Graph<Model> or ordered graph collection parameter needed by a
handler.-
Constructor Summary
ConstructorsConstructorDescriptionModelParameter(Parameter parameter, Class<?> modelType, boolean entityWrapped, boolean graphWrapped, boolean collectionWrapped, String associationProperty, boolean associationExcludeMetadata) Creates an instance of aModelParameterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theassociationExcludeMetadatarecord component.Returns the value of theassociationPropertyrecord component.booleanReturns the value of thecollectionWrappedrecord component.booleanReturns the value of theentityWrappedrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thegraphWrappedrecord component.final inthashCode()Returns a hash code value for this object.Class<?> Returns the value of themodelTyperecord component.Returns the value of theparameterrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelParameter
public ModelParameter(Parameter parameter, Class<?> modelType, boolean entityWrapped, boolean graphWrapped, boolean collectionWrapped, String associationProperty, boolean associationExcludeMetadata) Creates an instance of aModelParameterrecord class.- Parameters:
parameter- the value for theparameterrecord componentmodelType- the value for themodelTyperecord componententityWrapped- the value for theentityWrappedrecord componentgraphWrapped- the value for thegraphWrappedrecord componentcollectionWrapped- the value for thecollectionWrappedrecord componentassociationProperty- the value for theassociationPropertyrecord componentassociationExcludeMetadata- the value for theassociationExcludeMetadatarecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
parameter
Returns the value of theparameterrecord component.- Returns:
- the value of the
parameterrecord component
-
modelType
Returns the value of themodelTyperecord component.- Returns:
- the value of the
modelTyperecord component
-
entityWrapped
public boolean entityWrapped()Returns the value of theentityWrappedrecord component.- Returns:
- the value of the
entityWrappedrecord component
-
graphWrapped
public boolean graphWrapped()Returns the value of thegraphWrappedrecord component.- Returns:
- the value of the
graphWrappedrecord component
-
collectionWrapped
public boolean collectionWrapped()Returns the value of thecollectionWrappedrecord component.- Returns:
- the value of the
collectionWrappedrecord component
-
associationProperty
Returns the value of theassociationPropertyrecord component.- Returns:
- the value of the
associationPropertyrecord component
-
associationExcludeMetadata
public boolean associationExcludeMetadata()Returns the value of theassociationExcludeMetadatarecord component.- Returns:
- the value of the
associationExcludeMetadatarecord component
-