Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'othersrc/otdt-examples/OTSample-ordersystem-src/src/org/eclipse/objectteams/samples/ordersystem/data/Address.java')
-rw-r--r--othersrc/otdt-examples/OTSample-ordersystem-src/src/org/eclipse/objectteams/samples/ordersystem/data/Address.java94
1 files changed, 94 insertions, 0 deletions
diff --git a/othersrc/otdt-examples/OTSample-ordersystem-src/src/org/eclipse/objectteams/samples/ordersystem/data/Address.java b/othersrc/otdt-examples/OTSample-ordersystem-src/src/org/eclipse/objectteams/samples/ordersystem/data/Address.java
new file mode 100644
index 000000000..1e99bd803
--- /dev/null
+++ b/othersrc/otdt-examples/OTSample-ordersystem-src/src/org/eclipse/objectteams/samples/ordersystem/data/Address.java
@@ -0,0 +1,94 @@
+/**********************************************************************
+ * This file is part of "Object Teams Development Tooling"-Software
+ *
+ * Copyright 2004, 2010 Technical University Berlin, Germany, and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * $Id: Address.java 23502 2010-02-08 18:33:32Z stephan $
+ *
+ * Please visit http://www.eclipse.org/objectteams for updates and contact.
+ *
+ * Contributors:
+ * Technical University Berlin - Initial API and implementation
+ **********************************************************************/
+package org.eclipse.objectteams.samples.ordersystem.data;
+
+/**
+ * @author Dehla
+ *
+ */
+public class Address {
+
+ @SuppressWarnings("unused") private int id;
+
+ private String street;
+ private String postalcode;
+ private String city;
+ private String country;
+
+ public Address(String street, String postalcode, String city, String country) {
+ this.street = street;
+ this.postalcode = postalcode;
+ this.city = city;
+ this.country = country;
+ }
+
+ Address() {}
+
+
+ /**
+ * @return Returns the city.
+ */
+ public String getCity() {
+ return city;
+ }
+ /**
+ * @param city The city to set.
+ */
+ public void setCity(String city) {
+ this.city = city;
+ }
+ /**
+ * @return Returns the country.
+ */
+ public String getCountry() {
+ return country;
+ }
+ /**
+ * @param country The country to set.
+ */
+ public void setCountry(String country) {
+ this.country = country;
+ }
+ /**
+ * @return Returns the postalcode.
+ */
+ public String getPostalcode() {
+ return postalcode;
+ }
+ /**
+ * @param postalcode The postalcode to set.
+ */
+ public void setPostalcode(String postalcode) {
+ this.postalcode = postalcode;
+ }
+ /**
+ * @return Returns the street.
+ */
+ public String getStreet() {
+ return street;
+ }
+ /**
+ * @param street The street to set.
+ */
+ public void setStreet(String street) {
+ this.street = street;
+ }
+
+ public String toString() {
+ return street + ", " + postalcode + " " + city + ", " + country;
+ }
+}

Back to the top