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 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 a EntityDescription record class.
      Parameters:
      identifier - the value for the identifier record component
      label - the value for the label record component
      description - the value for the description record component
      entityClass - the value for the entityClass record component
      entityType - the value for the entityType record component
      revision - the value for the revision record component
      rootBucket - the value for the rootBucket record component
      tags - the value for the tags record component
      relations - the value for the relations record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • identifier

      public String identifier()
      Returns the value of the identifier record component.
      Returns:
      the value of the identifier record component
    • label

      public String label()
      Returns the value of the label record component.
      Returns:
      the value of the label record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • entityClass

      public String entityClass()
      Returns the value of the entityClass record component.
      Returns:
      the value of the entityClass record component
    • entityType

      public String entityType()
      Returns the value of the entityType record component.
      Returns:
      the value of the entityType record component
    • revision

      public String revision()
      Returns the value of the revision record component.
      Returns:
      the value of the revision record component
    • rootBucket

      public boolean rootBucket()
      Returns the value of the rootBucket record component.
      Returns:
      the value of the rootBucket record component
    • tags

      public List<String> tags()
      Returns the value of the tags record component.
      Returns:
      the value of the tags record component
    • relations

      public List<EntityRelationDescription> relations()
      Returns the value of the relations record component.
      Returns:
      the value of the relations record component