Package com.onec.metadata
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 Summary
ConstructorsConstructorDescriptionDocumentDescriptor(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 predatingpreviousNames.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 aDocumentDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.booleanReturns the value of theautoNumberrecord component.context()Returns the value of thecontextrecord component.Returns 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.Class<?> Returns the value of thejavaClassrecord component.Returns the value of thelogicalNamerecord component.intReturns the value of thenumberLengthrecord component.Returns the value of thenumberPrefixrecord component.Returns the value of thepreviousNamesrecord component.Returns the value of thereadRolesrecord component.Returns the value of thetableNamerecord component.Returns the value of thetabularSectionsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewriteRolesrecord component.
-
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 predatingpreviousNames. -
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 aDocumentDescriptorrecord class.- Parameters:
logicalName- the value for thelogicalNamerecord componentdisplayTitle- the value for thedisplayTitlerecord componenttableName- the value for thetableNamerecord componentjavaClass- the value for thejavaClassrecord componentnumberLength- the value for thenumberLengthrecord componentautoNumber- the value for theautoNumberrecord componentnumberPrefix- the value for thenumberPrefixrecord componentcontext- the value for thecontextrecord componentreadRoles- the value for thereadRolesrecord componentwriteRoles- the value for thewriteRolesrecord componentattributes- the value for theattributesrecord componenttabularSections- the value for thetabularSectionsrecord componentpreviousNames- the value for thepreviousNamesrecord 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 '=='. -
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
-
tableName
Returns the value of thetableNamerecord component.- Returns:
- the value of the
tableNamerecord component
-
javaClass
Returns the value of thejavaClassrecord component.- Returns:
- the value of the
javaClassrecord component
-
numberLength
public int numberLength()Returns the value of thenumberLengthrecord component.- Returns:
- the value of the
numberLengthrecord component
-
autoNumber
public boolean autoNumber()Returns the value of theautoNumberrecord component.- Returns:
- the value of the
autoNumberrecord component
-
numberPrefix
Returns the value of thenumberPrefixrecord component.- Returns:
- the value of the
numberPrefixrecord component
-
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
readRoles
Returns the value of thereadRolesrecord component.- Returns:
- the value of the
readRolesrecord component
-
writeRoles
Returns the value of thewriteRolesrecord component.- Returns:
- the value of the
writeRolesrecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-
tabularSections
Returns the value of thetabularSectionsrecord component.- Returns:
- the value of the
tabularSectionsrecord component
-
previousNames
Returns the value of thepreviousNamesrecord component.- Returns:
- the value of the
previousNamesrecord component
-