// Path: core/src/main/java/com/ccoe/build/core/filter/model/Category.java
// @XmlAccessorType(XmlAccessType.FIELD)
// public class Category {
// 	@XmlAttribute
// 	private String name;
// 	
// 	@XmlElement(name="filter")
// 	private List<Filter> filters = new ArrayList<Filter>();
// 
// 	public String getName() {
// 		return name;
// 	}
// 
// 	public void setName(String name) {
// 		this.name = name;
// 	}
// 	
// 	public List<Filter> getFilter() {
// 		return this.filters;
// 	}
// }
// 
// Path: core/src/main/java/com/ccoe/build/core/filter/model/Filter.java
// @XmlAccessorType(XmlAccessType.FIELD)
// public class Filter {
// 	@XmlAttribute
// 	private String name;
// 	
// 	@XmlAttribute
// 	private String description;
// 	
// 	private String category;
// 
// 	@XmlElement(name="cause")
// 	private List<Cause> cause = new ArrayList<Cause>();
// 	
// 	public List<Cause> getCause() {
// 		return this.cause;
// 	}
// 
// 	public String getName() {
// 		return name;
// 	}
// 
// 	public void setName(String name) {
// 		this.name = name;
// 	}
// 	
// 	public String getDescription() {
// 		return description;
// 	}
// 
// 	public void setDescription(String description) {
// 		this.description= description;
// 	}
// 
// 	public String getCategory() {
// 		return category;
// 	}
// 
// 	public void setCategory(String category) {
// 		this.category = category;
// 	}
// 	
// 	public void setCauses(List<Cause> lsCause){
// 		this.cause = lsCause;
// 	}
// }
// 
// Path: core/src/main/java/com/ccoe/build/core/filter/model/Filters.java
// @XmlRootElement(name = "filters")
// public class Filters {
// 	@XmlElement(name="category")
// 	List<Category> categories = new ArrayList<Category>();
// 	
// 	public List<Category> getCategory() {
// 		return this.categories;
// 	}
// }


import com.ccoe.build.core.filter.model.Category;
import com.ccoe.build.core.filter.model.Filter;
import com.ccoe.build.core.filter.model.Filters;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
/*
Copyright [2013-2014] eBay Software Foundation

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 com.ccoe.build.core.filter;




public abstract class FilterFactory {
	
	public final static String BASE_FILTER_LIST_IN_GIT = "https://github.com/eBay/mTracker/raw/master/core/src/main/resources";
	
	public abstract URL getRemoteFilterURL();
	public abstract URL getLocalFilterURL();
	
// Path: core/src/main/java/com/ccoe/build/core/filter/model/Category.java
// @XmlAccessorType(XmlAccessType.FIELD)
// public class Category {
// 	@XmlAttribute
// 	private String name;
// 	
// 	@XmlElement(name="filter")
// 	private List<Filter> filters = new ArrayList<Filter>();
// 
// 	public String getName() {
// 		return name;
// 	}
// 
// 	public void setName(String name) {
// 		this.name = name;
// 	}
// 	
// 	public List<Filter> getFilter() {
// 		return this.filters;
// 	}
// }
// 
// Path: core/src/main/java/com/ccoe/build/core/filter/model/Filter.java
// @XmlAccessorType(XmlAccessType.FIELD)
// public class Filter {
// 	@XmlAttribute
// 	private String name;
// 	
// 	@XmlAttribute
// 	private String description;
// 	
// 	private String category;
// 
// 	@XmlElement(name="cause")
// 	private List<Cause> cause = new ArrayList<Cause>();
// 	
// 	public List<Cause> getCause() {
// 		return this.cause;
// 	}
// 
// 	public String getName() {
// 		return name;
// 	}
// 
// 	public void setName(String name) {
// 		this.name = name;
// 	}
// 	
// 	public String getDescription() {
// 		return description;
// 	}
// 
// 	public void setDescription(String description) {
// 		this.description= description;
// 	}
// 
// 	public String getCategory() {
// 		return category;
// 	}
// 
// 	public void setCategory(String category) {
// 		this.category = category;
// 	}
// 	
// 	public void setCauses(List<Cause> lsCause){
// 		this.cause = lsCause;
// 	}
// }
// 
// Path: core/src/main/java/com/ccoe/build/core/filter/model/Filters.java
// @XmlRootElement(name = "filters")
// public class Filters {
// 	@XmlElement(name="category")
// 	List<Category> categories = new ArrayList<Category>();
// 	
// 	public List<Category> getCategory() {
// 		return this.categories;
// 	}
// }


// Path: core/src/main/java/com/ccoe/build/core/filter/FilterFactory.java
import com.ccoe.build.core.filter.model.Category;
import com.ccoe.build.core.filter.model.Filter;
import com.ccoe.build.core.filter.model.Filters;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;

/*
Copyright [2013-2014] eBay Software Foundation

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 com.ccoe.build.core.filter;




public abstract class FilterFactory {
	
	public final static String BASE_FILTER_LIST_IN_GIT = "https://github.com/eBay/mTracker/raw/master/core/src/main/resources";
	
	public abstract URL getRemoteFilterURL();
	public abstract URL getLocalFilterURL();
	
	protected void marshal(File reportFile,  Filters filters){