Package su.onno.metadata
Record Class ReferenceTargetDescriptor
java.lang.Object
java.lang.Record
su.onno.metadata.ReferenceTargetDescriptor
public record ReferenceTargetDescriptor(String kind, String logicalName, String displayTitle, String javaTypeName)
extends Record
One catalog/document type allowed by a polymorphic reference field.
-
Constructor Summary
ConstructorsConstructorDescriptionReferenceTargetDescriptor(String kind, String logicalName, String displayTitle, String javaTypeName) Creates an instance of aReferenceTargetDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisplayTitlerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thejavaTypeNamerecord component.kind()Returns the value of thekindrecord component.Returns the value of thelogicalNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReferenceTargetDescriptor
public ReferenceTargetDescriptor(String kind, String logicalName, String displayTitle, String javaTypeName) Creates an instance of aReferenceTargetDescriptorrecord class.- Parameters:
kind- the value for thekindrecord componentlogicalName- the value for thelogicalNamerecord componentdisplayTitle- the value for thedisplayTitlerecord componentjavaTypeName- the value for thejavaTypeNamerecord 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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
logicalName
Returns the value of thelogicalNamerecord component.- Returns:
- the value of the
logicalNamerecord component
-
displayTitle
Returns the value of thedisplayTitlerecord component.- Returns:
- the value of the
displayTitlerecord component
-
javaTypeName
Returns the value of thejavaTypeNamerecord component.- Returns:
- the value of the
javaTypeNamerecord component
-