From 75e2652924bc780519b912b5c2be73b49b5199dc Mon Sep 17 00:00:00 2001 From: mjudd Date: Fri, 22 Jun 2007 01:13:11 +0000 Subject: [PATCH] Feature Request http://sourceforge.net/tracker/index.php?func=detail&aid=1741222&group_id=176962&atid=879335 --- .../interfaces/PostcodeInterface.java | 59 +++++++++++++++++++ .../interfaces/PostcodeLookupInterface.java | 43 ++++++++++++++ 2 files changed, 102 insertions(+) create mode 100644 base/src/org/adempiere/interfaces/PostcodeInterface.java create mode 100644 base/src/org/adempiere/interfaces/PostcodeLookupInterface.java diff --git a/base/src/org/adempiere/interfaces/PostcodeInterface.java b/base/src/org/adempiere/interfaces/PostcodeInterface.java new file mode 100644 index 0000000000..fd790f9885 --- /dev/null +++ b/base/src/org/adempiere/interfaces/PostcodeInterface.java @@ -0,0 +1,59 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Akuna Ltd. * + * Copyright (C) Contributors * + * * + * This program is free software; you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Michael Judd (mjudd@users.sf.net) * + **********************************************************************/ +package org.adempiere.interfaces; + + +/** + * Interfce for Postcode Lookup Web Service. + * http://sourceforge.net/tracker/index.php?func=detail&aid=1741222&group_id=176962&atid=879335 + * The Postcode Structure + */ +public interface PostcodeInterface +{ + public int size(); + + + public String getAddr(); + public void setAddr(String newAddr); + public String getStreet1(); + public void setStreet1(String newStreet1); + public String getStreet2(); + public void setStreet2(String newStreet2); + public String getStreet3(); + public void setStreet3(String newStreet3); + public String getStreet4(); + public void setStreet4(String newStreet4); + public String getCity(); + public void setCity(String newCity); + public String getRegion(); + public void setRegion(String newRegion); + public String getPostcode(); + public void setPostcode(String newPostcode); + public String getCountry(); + public void setCountry(String newCountry); + public String getCountryCode(); + public void setCountryCode(String newCountryCode); +} \ No newline at end of file diff --git a/base/src/org/adempiere/interfaces/PostcodeLookupInterface.java b/base/src/org/adempiere/interfaces/PostcodeLookupInterface.java new file mode 100644 index 0000000000..266b1c37ad --- /dev/null +++ b/base/src/org/adempiere/interfaces/PostcodeLookupInterface.java @@ -0,0 +1,43 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Akuna Ltd. * + * Copyright (C) Contributors * + * * + * This program is free software; you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Michael Judd (mjudd@users.sf.net) * + **********************************************************************/ + +package org.adempiere.interfaces; + +import java.util.HashMap; + +/** + * Interfce for Postcode Lookup Web Service. + * http://sourceforge.net/tracker/index.php?func=detail&aid=1741222&group_id=176962&atid=879335 + * The Postcode lookup class interface + */ +public interface PostcodeLookupInterface { + public int lookupPostcode(String postcode); + public void setPassword(String password); + public void setClientID(String clientID); + public void setServerUrl(String serverUrl); + public HashMap getPostCodeData(); + public PostcodeLookupInterface newInstance(); +}