Package com.mindee.parsing.standard
Class BaseField
- java.lang.Object
-
- com.mindee.parsing.standard.BaseField
-
- All Implemented Interfaces:
PositionData
- Direct Known Subclasses:
AmountField,BankAccountDetailsV2Bban,BillOfLadingV1Carrier,BillOfLadingV1CarrierItem,BillOfLadingV1Consignee,BillOfLadingV1NotifyParty,BillOfLadingV1Shipper,BooleanField,CompanyRegistrationField,DateField,EnergyBillV1EnergyConsumer,EnergyBillV1EnergySupplier,EnergyBillV1EnergyUsage,EnergyBillV1MeterDetail,EnergyBillV1Subscription,EnergyBillV1TaxesAndContribution,FinancialDocumentV1LineItem,HealthcareCardV1Copay,InvoiceSplitterV1InvoicePageGroup,InvoiceV4LineItem,LocaleField,NutritionFactsLabelV1AddedSugar,NutritionFactsLabelV1Calorie,NutritionFactsLabelV1Cholesterol,NutritionFactsLabelV1DietaryFiber,NutritionFactsLabelV1Nutrient,NutritionFactsLabelV1Protein,NutritionFactsLabelV1SaturatedFat,NutritionFactsLabelV1ServingSize,NutritionFactsLabelV1Sodium,NutritionFactsLabelV1TotalCarbohydrate,NutritionFactsLabelV1TotalFat,NutritionFactsLabelV1TotalSugar,NutritionFactsLabelV1TransFat,PaymentDetailsField,PayslipV2BankAccountDetail,PayslipV2Employee,PayslipV2Employer,PayslipV2Employment,PayslipV2PayDetail,PayslipV2PayPeriod,PayslipV2Pto,PayslipV2SalaryDetail,PayslipV3BankAccountDetail,PayslipV3Employee,PayslipV3Employer,PayslipV3Employment,PayslipV3PaidTimeOff,PayslipV3PayDetail,PayslipV3PayPeriod,PayslipV3SalaryDetail,ReceiptV5LineItem,ResumeV1Certificate,ResumeV1Education,ResumeV1Language,ResumeV1ProfessionalExperience,ResumeV1SocialNetworksUrl,StringField,TaxField,UsMailV3RecipientAddress,UsMailV3SenderAddress
public abstract class BaseField extends Object implements PositionData
Represent basics of a field.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)PolygongetBoundingBox()The bounding box equivalent of the polygon.DoublegetConfidence()The confidence about the zone of the value extracted.IntegergetPageId()The index of the page where the current field was found.PolygongetPolygon()Define the coordinates of the zone in the page where the value has been found.inthashCode()abstract booleanisEmpty()Whether the field is empty or not.
-
-
-
Method Detail
-
isEmpty
public abstract boolean isEmpty()
Whether the field is empty or not.- Returns:
- true if the field is empty, false otherwise.
-
getBoundingBox
public Polygon getBoundingBox()
The bounding box equivalent of the polygon.- Specified by:
getBoundingBoxin interfacePositionData
-
getPolygon
public Polygon getPolygon()
Define the coordinates of the zone in the page where the value has been found.- Specified by:
getPolygonin interfacePositionData
-
getConfidence
public Double getConfidence()
The confidence about the zone of the value extracted. A value from 0 to 1.
-
getPageId
public Integer getPageId()
The index of the page where the current field was found.
-
canEqual
protected boolean canEqual(Object other)
-
-