Package com.mindee.parsing.standard
Class AddressField
- java.lang.Object
-
- com.mindee.parsing.standard.BaseField
-
- com.mindee.parsing.standard.StringField
-
- com.mindee.parsing.standard.AddressField
-
- All Implemented Interfaces:
PositionData
public final class AddressField extends StringField
Represent a postal address field broken down into its individual components.
-
-
Constructor Summary
Constructors Constructor Description AddressField(String value, Double confidence, Polygon polygon)Address field constructor only containing the value.AddressField(String value, String rawValue, String streetNumber, String streetName, String poBox, String addressComplement, String city, String postalCode, String state, String country, Double confidence, Polygon polygon, Integer pageId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAddressComplement()Additional address complement.StringgetCity()City or locality.StringgetCountry()Country.StringgetPoBox()PO-box number.StringgetPostalCode()Postal or ZIP code.StringgetRawValue()The address exactly as it appears on the document.StringgetState()State, province or region.StringgetStreetName()Street name.StringgetStreetNumber()Street number.-
Methods inherited from class com.mindee.parsing.standard.StringField
getValue, isEmpty, toString
-
Methods inherited from class com.mindee.parsing.standard.BaseField
canEqual, equals, getBoundingBox, getConfidence, getPageId, getPolygon, hashCode
-
-
-
-
Method Detail
-
getRawValue
public String getRawValue()
The address exactly as it appears on the document.- Overrides:
getRawValuein classStringField
-
getStreetNumber
public String getStreetNumber()
Street number.
-
getStreetName
public String getStreetName()
Street name.
-
getPoBox
public String getPoBox()
PO-box number.
-
getAddressComplement
public String getAddressComplement()
Additional address complement.
-
getCity
public String getCity()
City or locality.
-
getPostalCode
public String getPostalCode()
Postal or ZIP code.
-
getState
public String getState()
State, province or region.
-
getCountry
public String getCountry()
Country.
-
-