/**
* Copyright 1999-2009 The Pegadi Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.pegadi.sources;
import java.util.ArrayList;
import java.util.List;
public class Source implements java.io.Serializable {
int ID;
String name;
List<PhoneNumber> phoneNumbers;
String email;
String url;
String address;
String postNumber;
String postAddress;
String position;
String notes;
int organizationID;
List<Contact> contacts ;
public Source() {
ID=-1;
organizationID=-1;
contacts = new ArrayList<Contact>();
phoneNumbers = new ArrayList<PhoneNumber>();
}
public void setID(int ID) {
this.ID=ID;
}
public int getID() {
return ID;
}
public List<PhoneNumber> getPhoneNumbers() {
return phoneNumbers;
}
public void addPhoneNumber(PhoneNumber number) {
phoneNumbers.add(number);
}
public void setPhoneNumbers(List<PhoneNumber> numbers) {
phoneNumbers = numbers;
}
public void setName(String name) {
this.name=name;
}
public String getName() {
return name ;
}
public void setEmail(String email ) {
this.email=email;
}
public String getEmail() {
return email ;
}
public void setURL(String url) {
this.url=url;
}
public String getURL() {
return url;
}
public void setAddress(String address) {
this.address=address;
}
public String getAddress() {
return address;
}
public void setPostNumber(String postNumber) {
this.postNumber=postNumber;
}
public String getPostNumber() {
return postNumber;
}
public void setPostAddress(String postAddress) {
this.postAddress=postAddress;
}
public String getPostAddress() {
return postAddress;
}
public void setPosition(String position) {
this.position=position;
}
public String getPosition() {
return position;
}
public void setNotes(String notes) {
this.notes=notes;
}
public String getNotes() {
return notes;
}
public void setOrganizationID(int organizationID) {
this.organizationID=organizationID;
}
public int getOrganizationID() {
return organizationID;
}
public String toString() {
return ID +", "+
name +", "+
email +", "+
url +", "+
address +", "+
postNumber +", "+
postAddress +", "+
position +", "+
notes +", ";
}
public void setContacts(List<Contact> contacts) {
this.contacts=contacts;
}
public List<Contact> getContacts() {
return contacts;
}
}