Record Class EntityDescription
java.lang.Object
java.lang.Record
com.priint.pubserverapi.entitymodel.EntityDescription
- All Implemented Interfaces:
Serializable
public record EntityDescription(String identifier, String label, String description, String entityClass, String entityType, String revision, boolean rootBucket, List<String> tags, List<EntityRelationDescription> relations)
extends Record
implements Serializable
Entity class/type and relationships as defined in the model; no inferred field/filter capabilities.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.Returns the value of theentityClassrecord component.Returns the value of theentityTyperecord 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 theidentifierrecord component.label()Returns the value of thelabelrecord component.Returns the value of therelationsrecord component.revision()Returns the value of therevisionrecord component.booleanReturns the value of therootBucketrecord component.tags()Returns the value of thetagsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EntityDescription
public EntityDescription(String identifier, String label, String description, String entityClass, String entityType, String revision, boolean rootBucket, List<String> tags, List<EntityRelationDescription> relations) Creates an instance of aEntityDescriptionrecord class.- Parameters:
identifier- the value for theidentifierrecord componentlabel- the value for thelabelrecord componentdescription- the value for thedescriptionrecord componententityClass- the value for theentityClassrecord componententityType- the value for theentityTyperecord componentrevision- the value for therevisionrecord componentrootBucket- the value for therootBucketrecord componenttags- the value for thetagsrecord componentrelations- the value for therelationsrecord 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 '=='. -
identifier
Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
entityClass
Returns the value of theentityClassrecord component.- Returns:
- the value of the
entityClassrecord component
-
entityType
Returns the value of theentityTyperecord component.- Returns:
- the value of the
entityTyperecord component
-
revision
Returns the value of therevisionrecord component.- Returns:
- the value of the
revisionrecord component
-
rootBucket
public boolean rootBucket()Returns the value of therootBucketrecord component.- Returns:
- the value of the
rootBucketrecord component
-
tags
Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord component
-
relations
Returns the value of therelationsrecord component.- Returns:
- the value of the
relationsrecord component
-