Record Class DocumentOutlineModel
java.lang.Object
java.lang.Record
org.exoplatform.documents.mcp.model.DocumentOutlineModel
- Record Components:
id- the document idname- the document titletotalChars- the length of the document's texttruncated- true when the text was cut at the most characters read from one document, so the outline misses the headings past itheadings- the headings, in the order they appear
public record DocumentOutlineModel(String id, String name, long totalChars, boolean truncated, List<DocumentHeadingModel> headings)
extends Record
A document's outline, as
get_document_outline returns it.-
Constructor Summary
ConstructorsConstructorDescriptionDocumentOutlineModel(String id, String name, long totalChars, boolean truncated, List<DocumentHeadingModel> headings) Creates an instance of aDocumentOutlineModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.headings()Returns the value of theheadingsrecord component.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalCharsrecord component.booleanReturns the value of thetruncatedrecord component.
-
Constructor Details
-
DocumentOutlineModel
public DocumentOutlineModel(String id, String name, long totalChars, boolean truncated, List<DocumentHeadingModel> headings) Creates an instance of aDocumentOutlineModelrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componenttotalChars- the value for thetotalCharsrecord componenttruncated- the value for thetruncatedrecord componentheadings- the value for theheadingsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
id
-
name
-
totalChars
public long totalChars()Returns the value of thetotalCharsrecord component.- Returns:
- the value of the
totalCharsrecord component
-
truncated
-
headings
-