Class Page
java.lang.Object
com.iqser.red.service.redaction.v1.server.model.document.nodes.Page
Represents a single page in a document.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPage()
Page
(Integer number, Integer height, Integer width, Integer rotation, List<com.iqser.red.service.redaction.v1.server.model.document.textblock.AtomicTextBlock> textBlocksOnPage, Header header, com.iqser.red.service.redaction.v1.server.model.document.nodes.Footer footer, Set<com.iqser.red.service.redaction.v1.server.model.document.entity.TextEntity> entities, Set<Image> images) -
Method Summary
Modifier and TypeMethodDescriptionstatic Page.PageBuilder
builder()
boolean
Set<com.iqser.red.service.redaction.v1.server.model.document.entity.TextEntity>
com.iqser.red.service.redaction.v1.server.model.document.nodes.Footer
Retrieves the highest SemanticNodes, which appear only on this page.com.iqser.red.service.redaction.v1.server.model.document.textblock.TextBlock
Constructs and returns aTextBlock
representing the concatenated text of all leaf semantic nodes in the main body.List<com.iqser.red.service.redaction.v1.server.model.document.textblock.AtomicTextBlock>
getWidth()
int
hashCode()
void
setEntities
(Set<com.iqser.red.service.redaction.v1.server.model.document.entity.TextEntity> entities) void
setFooter
(com.iqser.red.service.redaction.v1.server.model.document.nodes.Footer footer) void
void
void
void
void
setRotation
(Integer rotation) void
setTextBlocksOnPage
(List<com.iqser.red.service.redaction.v1.server.model.document.textblock.AtomicTextBlock> textBlocksOnPage) void
Retrieves the highest SemanticNodes which are present on the page.toString()
-
Constructor Details
-
Page
public Page()
-
-
Method Details
-
getMainBodyTextBlock
public com.iqser.red.service.redaction.v1.server.model.document.textblock.TextBlock getMainBodyTextBlock()Constructs and returns aTextBlock
representing the concatenated text of all leaf semantic nodes in the main body.- Returns:
- The main body text block.
-
getMainBody
Retrieves the highest SemanticNodes, which appear only on this page. It is achieved by traversing the DocumentTree up, until a SemanticNode's direct parent is no longer exclusively on this page.- Returns:
- A list which contains the highes SemanticNodes, which appear only on this page.
-
streamHighestSemanticNodesOnPage
Retrieves the highest SemanticNodes which are present on the page. There might be multiples, as two or more Main Sections start on a page. This is achieved by traversing up the document tree and returning all SemanticNodes whose direct parent is the Document- Returns:
- A list of the highest SemanticNodes present on this page
-
toString
-
builder
-
getNumber
-
getHeight
-
getWidth
-
getRotation
-
getTextBlocksOnPage
public List<com.iqser.red.service.redaction.v1.server.model.document.textblock.AtomicTextBlock> getTextBlocksOnPage() -
getHeader
-
getEntities
public Set<com.iqser.red.service.redaction.v1.server.model.document.entity.TextEntity> getEntities() -
getImages
-
setNumber
-
setHeight
-
setWidth
-
setRotation
-
setTextBlocksOnPage
public void setTextBlocksOnPage(List<com.iqser.red.service.redaction.v1.server.model.document.textblock.AtomicTextBlock> textBlocksOnPage) -
setHeader
-
setEntities
public void setEntities(Set<com.iqser.red.service.redaction.v1.server.model.document.entity.TextEntity> entities) -
setImages
-
equals
-
hashCode
public int hashCode()
-