Record Class DocumentDescriptor

java.lang.Object
java.lang.Record
com.onec.metadata.DocumentDescriptor

public record DocumentDescriptor(String logicalName, String displayTitle, String tableName, Class<?> javaClass, int numberLength, boolean autoNumber, String numberPrefix, String context, List<String> readRoles, List<String> writeRoles, List<AttributeDescriptor> attributes, List<TabularSectionDescriptor> tabularSections, List<String> previousNames) extends Record
  • Constructor Details

    • DocumentDescriptor

      public DocumentDescriptor(String logicalName, String displayTitle, String tableName, Class<?> javaClass, int numberLength, boolean autoNumber, String numberPrefix, String context, List<String> readRoles, List<String> writeRoles, List<AttributeDescriptor> attributes, List<TabularSectionDescriptor> tabularSections)
      Backward-compatible constructor for callers predating previousNames.
    • DocumentDescriptor

      public DocumentDescriptor(String logicalName, String displayTitle, String tableName, Class<?> javaClass, int numberLength, boolean autoNumber, String numberPrefix, String context, List<String> readRoles, List<String> writeRoles, List<AttributeDescriptor> attributes, List<TabularSectionDescriptor> tabularSections, List<String> previousNames)
      Creates an instance of a DocumentDescriptor record class.
      Parameters:
      logicalName - the value for the logicalName record component
      displayTitle - the value for the displayTitle record component
      tableName - the value for the tableName record component
      javaClass - the value for the javaClass record component
      numberLength - the value for the numberLength record component
      autoNumber - the value for the autoNumber record component
      numberPrefix - the value for the numberPrefix record component
      context - the value for the context record component
      readRoles - the value for the readRoles record component
      writeRoles - the value for the writeRoles record component
      attributes - the value for the attributes record component
      tabularSections - the value for the tabularSections record component
      previousNames - the value for the previousNames 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.
    • logicalName

      public String logicalName()
      Returns the value of the logicalName record component.
      Returns:
      the value of the logicalName record component
    • displayTitle

      public String displayTitle()
      Returns the value of the displayTitle record component.
      Returns:
      the value of the displayTitle record component
    • tableName

      public String tableName()
      Returns the value of the tableName record component.
      Returns:
      the value of the tableName record component
    • javaClass

      public Class<?> javaClass()
      Returns the value of the javaClass record component.
      Returns:
      the value of the javaClass record component
    • numberLength

      public int numberLength()
      Returns the value of the numberLength record component.
      Returns:
      the value of the numberLength record component
    • autoNumber

      public boolean autoNumber()
      Returns the value of the autoNumber record component.
      Returns:
      the value of the autoNumber record component
    • numberPrefix

      public String numberPrefix()
      Returns the value of the numberPrefix record component.
      Returns:
      the value of the numberPrefix record component
    • context

      public String context()
      Returns the value of the context record component.
      Returns:
      the value of the context record component
    • readRoles

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

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

      public List<AttributeDescriptor> attributes()
      Returns the value of the attributes record component.
      Returns:
      the value of the attributes record component
    • tabularSections

      public List<TabularSectionDescriptor> tabularSections()
      Returns the value of the tabularSections record component.
      Returns:
      the value of the tabularSections record component
    • previousNames

      public List<String> previousNames()
      Returns the value of the previousNames record component.
      Returns:
      the value of the previousNames record component