// Path: gtfs-validation-lib/src/main/java/com/conveyal/gtfs/model/ValidationResult.java
// public class ValidationResult implements Serializable {
// 
// 	/**
// 	 * 
// 	 */
// 	private static final long serialVersionUID = 1L;
// 
// 	private static Logger _log = Logger.getLogger(ValidationResult.class.getName());
// 			
// 	public Set<InvalidValue> invalidValues = new TreeSet<InvalidValue>();
// 	
// 	public void add(InvalidValue iv) {
// //		_log.info(iv.toString());
// 		invalidValues.add(iv);
// 	}
// 	
// 	public void append(ValidationResult vr) {
// 		invalidValues.addAll(vr.invalidValues);
// 	}
// 	
// 	public String toString(){
// 		StringBuilder sb = new StringBuilder();
// 		for (InvalidValue iv: invalidValues){
// 			sb.append(iv);
// 		}
// 		return sb.toString();
// 	}
// 	
// 		
// 	public boolean containsBoth(String one, String two, String type){
// 		for (InvalidValue iv: invalidValues){
// 			if (iv.problemDescription.contains(one) 
// 					&& iv.problemDescription.contains(two)
// 					&& iv.affectedEntity == type)	{
// 				return true;
// 			}
// 		}
// 		return false;
// 	}
// }


import java.awt.geom.Rectangle2D;
import java.io.Serializable;
import java.util.Collection;
import java.util.Date;
import com.conveyal.gtfs.model.ValidationResult;
import com.fasterxml.jackson.annotation.JsonProperty;
package com.conveyal.gtfs.validator.json;



/**
 * A class to hold all of the results of a validation on a single feed.
 * Not to be confused with {@link com.conveyal.gtfs.model.ValidationResult}, which holds all instances of
 * a particular type of error.
 * @author mattwigway
 *
 */
public class FeedValidationResult implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/** Were we able to load the GTFS at all (note that this should only indicate corrupted files,
	 * not missing ones; that should raise an exception instead.)
	 */
        @JsonProperty
	public LoadStatus loadStatus;
	
	/**
	 * Additional description of why the feed failed to load.
	 */
	public String loadFailureReason;
	
	/**
	 * The name of the feed on the file system
	 */
	public String feedFileName;
	
	/**
	 * All of the agencies in the feed
	 */
	public Collection<String> agencies;
	
// Path: gtfs-validation-lib/src/main/java/com/conveyal/gtfs/model/ValidationResult.java
// public class ValidationResult implements Serializable {
// 
// 	/**
// 	 * 
// 	 */
// 	private static final long serialVersionUID = 1L;
// 
// 	private static Logger _log = Logger.getLogger(ValidationResult.class.getName());
// 			
// 	public Set<InvalidValue> invalidValues = new TreeSet<InvalidValue>();
// 	
// 	public void add(InvalidValue iv) {
// //		_log.info(iv.toString());
// 		invalidValues.add(iv);
// 	}
// 	
// 	public void append(ValidationResult vr) {
// 		invalidValues.addAll(vr.invalidValues);
// 	}
// 	
// 	public String toString(){
// 		StringBuilder sb = new StringBuilder();
// 		for (InvalidValue iv: invalidValues){
// 			sb.append(iv);
// 		}
// 		return sb.toString();
// 	}
// 	
// 		
// 	public boolean containsBoth(String one, String two, String type){
// 		for (InvalidValue iv: invalidValues){
// 			if (iv.problemDescription.contains(one) 
// 					&& iv.problemDescription.contains(two)
// 					&& iv.affectedEntity == type)	{
// 				return true;
// 			}
// 		}
// 		return false;
// 	}
// }


// Path: gtfs-validator-json/src/main/java/com/conveyal/gtfs/validator/json/FeedValidationResult.java
import java.awt.geom.Rectangle2D;
import java.io.Serializable;
import java.util.Collection;
import java.util.Date;
import com.conveyal.gtfs.model.ValidationResult;
import com.fasterxml.jackson.annotation.JsonProperty;

package com.conveyal.gtfs.validator.json;



/**
 * A class to hold all of the results of a validation on a single feed.
 * Not to be confused with {@link com.conveyal.gtfs.model.ValidationResult}, which holds all instances of
 * a particular type of error.
 * @author mattwigway
 *
 */
public class FeedValidationResult implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/** Were we able to load the GTFS at all (note that this should only indicate corrupted files,
	 * not missing ones; that should raise an exception instead.)
	 */
        @JsonProperty
	public LoadStatus loadStatus;
	
	/**
	 * Additional description of why the feed failed to load.
	 */
	public String loadFailureReason;
	
	/**
	 * The name of the feed on the file system
	 */
	public String feedFileName;
	
	/**
	 * All of the agencies in the feed
	 */
	public Collection<String> agencies;
	
	public ValidationResult routes;