// 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;
// 	}
// }


import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.ccoe.build.core.filter.model.Filter;
/*
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 class ErrorClassifier {
	private UDCFilterFactory factory;
	public void setFactory(UDCFilterFactory factory) {
		this.factory = factory;
		filters.addAll(factory.getFilters());
		Logger.getLogger(ErrorClassifier.class.getName()).log(Level.INFO, 
				"Load " + filters.size() + " filter rules");
	}

// 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/ErrorClassifier.java
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.ccoe.build.core.filter.model.Filter;

/*
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 class ErrorClassifier {
	private UDCFilterFactory factory;
	public void setFactory(UDCFilterFactory factory) {
		this.factory = factory;
		filters.addAll(factory.getFilters());
		Logger.getLogger(ErrorClassifier.class.getName()).log(Level.INFO, 
				"Load " + filters.size() + " filter rules");
	}

	protected  List<Filter> filters = new ArrayList<Filter>();