Record Class DocumentHeadingModel
java.lang.Object
java.lang.Record
org.exoplatform.documents.mcp.model.DocumentHeadingModel
- Record Components:
index- its number, to read its section with read_document_textlevel- its depth, 1 for a top-level headingtitle- its textoffset- where its section starts in the textendOffset- where its section ends: the next heading of the same or a higher level that starts after it, or the end of the textpage- the PDF page, the slide or the sheet it is on, null for a Word document
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentHeadingModel(int index, int level, String title, long offset, long endOffset, Integer page) Creates an instance of aDocumentHeadingModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theendOffsetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.intlevel()Returns the value of thelevelrecord component.longoffset()Returns the value of theoffsetrecord component.page()Returns the value of thepagerecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DocumentHeadingModel
public DocumentHeadingModel(int index, int level, String title, long offset, long endOffset, Integer page) Creates an instance of aDocumentHeadingModelrecord class.- Parameters:
index- the value for theindexrecord componentlevel- the value for thelevelrecord componenttitle- the value for thetitlerecord componentoffset- the value for theoffsetrecord componentendOffset- the value for theendOffsetrecord componentpage- the value for thepagerecord 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. -
index
-
level
-
title
-
offset
-
endOffset
-
page
-