// Path: noark-extraction-validator/src/main/java/com/documaster/validator/storage/model/BaseItem.java
// public class BaseItem {
// 
// 	private Map<String, Object> values;
// 
// 	public Map<String, Object> getValues() {
// 
// 		if (values == null) {
// 			values = new LinkedHashMap<>();
// 		}
// 		return values;
// 	}
// 
// 	public BaseItem add(String name, Object value) {
// 
// 		getValues().put(name.toLowerCase(), value);
// 		return this;
// 	}
// 
// 	@Override
// 	public String toString() {
// 
// 		StringBuilder builder = new StringBuilder("Item [");
// 
// 		for (Map.Entry<String, Object> entry : values.entrySet()) {
// 			builder.append(String.format(" {%s, %s} ", entry.getKey(), entry.getValue()));
// 		}
// 
// 		builder.append(" ]");
// 
// 		return builder.toString();
// 	}
// }


import java.util.ArrayList;
import java.util.List;
import com.documaster.validator.storage.model.BaseItem;
/**
 * Noark Extraction Validator
 * Copyright (C) 2017, Documaster AS
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.documaster.validator.validation.collector;



public class ValidationResult {

	private String id;
	private String title;
	private String description;
	private String groupName;

	private List<BaseItem> summary = new ArrayList<>();
	private List<BaseItem> information = new ArrayList<>();
	private List<BaseItem> warnings = new ArrayList<>();
	private List<BaseItem> errors = new ArrayList<>();

	private ValidationStatus code;

	public ValidationResult(String id, String title, String description, String groupName) {

		this.id = id;
		this.title = title;
		this.description = description;
		this.groupName = groupName;
	}

	public String getId() {

		return id;
	}

	public String getTitle() {

		return title;
	}

	public String getDescription() {

// Path: noark-extraction-validator/src/main/java/com/documaster/validator/storage/model/BaseItem.java
// public class BaseItem {
// 
// 	private Map<String, Object> values;
// 
// 	public Map<String, Object> getValues() {
// 
// 		if (values == null) {
// 			values = new LinkedHashMap<>();
// 		}
// 		return values;
// 	}
// 
// 	public BaseItem add(String name, Object value) {
// 
// 		getValues().put(name.toLowerCase(), value);
// 		return this;
// 	}
// 
// 	@Override
// 	public String toString() {
// 
// 		StringBuilder builder = new StringBuilder("Item [");
// 
// 		for (Map.Entry<String, Object> entry : values.entrySet()) {
// 			builder.append(String.format(" {%s, %s} ", entry.getKey(), entry.getValue()));
// 		}
// 
// 		builder.append(" ]");
// 
// 		return builder.toString();
// 	}
// }


// Path: noark-extraction-validator/src/main/java/com/documaster/validator/validation/collector/ValidationResult.java
import java.util.ArrayList;
import java.util.List;
import com.documaster.validator.storage.model.BaseItem;

/**
 * Noark Extraction Validator
 * Copyright (C) 2017, Documaster AS
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.documaster.validator.validation.collector;



public class ValidationResult {

	private String id;
	private String title;
	private String description;
	private String groupName;

	private List<BaseItem> summary = new ArrayList<>();
	private List<BaseItem> information = new ArrayList<>();
	private List<BaseItem> warnings = new ArrayList<>();
	private List<BaseItem> errors = new ArrayList<>();

	private ValidationStatus code;

	public ValidationResult(String id, String title, String description, String groupName) {

		this.id = id;
		this.title = title;
		this.description = description;
		this.groupName = groupName;
	}

	public String getId() {

		return id;
	}

	public String getTitle() {

		return title;
	}

	public String getDescription() {

		return description;