package org.opentdc.wtt.file;

import java.util.ArrayList;
import java.util.List;

import org.opentdc.wtt.CompanyModel;

public class WttCompany {
	private CompanyModel companyModel;
	private ArrayList<WttProject> projects;

	public WttCompany() {
	}
	
	public CompanyModel getCompanyModel() {
		return companyModel;
	}
	
	public void setCompanyModel(CompanyModel companyModel) {
		this.companyModel = companyModel;
	}
	
	public List<WttProject> getProjects() {
		return projects;
	}
	
	public void setProjects(ArrayList<WttProject> projects) {
		this.projects = projects;
	}
	
	public void addProject(WttProject p) {
		this.projects.add(p);
	}
	
	public boolean removeProject(WttProject p) {
		return this.projects.remove(p);
	}
}

package org.opentdc.wtt.file;

import java.util.ArrayList;
import java.util.List;

import org.opentdc.wtt.CompanyModel;

public class WttCompany {
	private CompanyModel companyModel;
	private ArrayList<WttProject> projects;

	public WttCompany() {
		projects = new ArrayList<WttProject>();
	}
	
	public CompanyModel getCompanyModel() {
		return companyModel;
	}
	
	public void setCompanyModel(CompanyModel companyModel) {
		this.companyModel = companyModel;
	}
	
	public List<WttProject> getProjects() {
		return projects;
	}
	
	public void setProjects(ArrayList<WttProject> projects) {
		this.projects = projects;
	}
	
	public void addProject(WttProject p) {
		this.projects.add(p);
	}
	
	public boolean removeProject(WttProject p) {
		return this.projects.remove(p);
	}
	
	public void setTitle(String title) {
		companyModel.setTitle(title);
	}

	public void setDescription(String description) {
		companyModel.setDescription(description);
	}
}

initialize projects, add setters for Title and Description