- All Known Implementing Classes:
FieldSpec,NoFieldMapping
Defines a mapping of a field or a property in a class to its corresponding representation.
This sealed interface serves as a contract for different types of field or property mappings in the API. It can represent either a specific field or property mapping, or signify the absence of any mapping.
The implementations of this interface are:
- FieldSpec: Represents a specification for mapping a particular field or property.
- NoFieldMapping: Represents a state where no field mapping is defined.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic FieldSpecShortcut forfield(String).static FieldSpecCreates a newFieldSpecconfigured for field-level access of the specified field name.static FieldSpecShortcut forproperty(String).static FieldSpecCreates a newFieldSpecBuilderconfigured for property access of the specified property name.
-
Method Details
-
f
Shortcut forfield(String). Creates a newFieldSpecconfigured for field-level access of the specified field name.- Parameters:
field- the name of the field/property in a class- Returns:
- this
FieldSpecBuilderfor further chaining
-
field
Creates a newFieldSpecconfigured for field-level access of the specified field name.- Parameters:
field- the name of the field/property in a class- Returns:
- this
FieldSpecBuilderfor further chaining
-
p
Shortcut forproperty(String). Creates a newFieldSpecBuilderconfigured for property access of the specified property name.- Parameters:
property- the name of the property in a class- Returns:
- this
FieldSpecBuilderfor further chaining
-
property
Creates a newFieldSpecBuilderconfigured for property access of the specified property name.- Parameters:
property- the name of the property in a class- Returns:
- this
FieldSpecBuilderfor further chaining
-