@Generated(value="OracleSDKGenerator", comments="API Version: 20211001") public final class KeyValueSelectionEntity extends Entity
This allows the labeler to apply label the highlighted text from OCR, this includes labelled and
unlabelled data.
Note: Objects should always be created or deserialized using the KeyValueSelectionEntity.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the KeyValueSelectionEntity.Builder
, which maintain a
set of all explicitly set fields called KeyValueSelectionEntity.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
KeyValueSelectionEntity.Builder |
Entity.EntityType
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
KeyValueSelectionEntity(String text,
List<Label> labels,
BoundingPolygon boundingPolygon,
BigDecimal rotation,
Float confidence,
BigDecimal pageNumber)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static KeyValueSelectionEntity.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
BoundingPolygon |
getBoundingPolygon() |
Float |
getConfidence()
float value, score from OCR.
|
List<Label> |
getLabels()
A collection of label entities.
|
BigDecimal |
getPageNumber()
Integer value.
|
BigDecimal |
getRotation()
Integer value.
|
String |
getText()
Entity Name.
|
int |
hashCode() |
KeyValueSelectionEntity.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated public KeyValueSelectionEntity(String text, List<Label> labels, BoundingPolygon boundingPolygon, BigDecimal rotation, Float confidence, BigDecimal pageNumber)
public static KeyValueSelectionEntity.Builder builder()
Create a new builder.
public KeyValueSelectionEntity.Builder toBuilder()
public String getText()
Entity Name.
public BoundingPolygon getBoundingPolygon()
public BigDecimal getRotation()
Integer value.
public Float getConfidence()
float value, score from OCR.
public BigDecimal getPageNumber()
Integer value.
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
Copyright © 2016–2024. All rights reserved.