起初我以为 com.google.appengine.api.datastore.PostalAddress
类会提供某种方法来验证用户在 App Engine 应用中输入的地址,但我什至没有知道如何实例化此类 - 它没有公共(public)构造函数。
是否有可在 App Engine 应用中使用的 Java 库来验证用户输入的邮政地址?
最佳答案
I don't even know how to instantiate this class - it doesn't have a public constructor.
它似乎有一个 public constructor .
Is there a Java library that could be used in an App Engine app to validate postal addresses entered by users?
我认为这在很大程度上取决于什么被认为是有效的邮政地址。验证在一个字符串中提供的地址相对困难,因为例如要验证邮政编码,您首先必须知道国家/地区以确定邮政编码是否有效。
关于用于验证用户在 App Engine 应用程序中输入的邮政地址的 Java 库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3622546/