All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.pelle.mango.client.base.db.vos.Result Maven / Gradle / Ivy

The newest version!
/**
 * Copyright (c) 2013 Christian Pelster.
 * 
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     Christian Pelster - initial API and implementation
 */
package io.pelle.mango.client.base.db.vos;

import io.pelle.mango.client.base.messages.IValidationMessage;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@SuppressWarnings("serial")
public class Result implements Serializable
{
	private Type value;
	
	private List validationMessages = new ArrayList();

	public Result()
	{
	}

	public List getValidationMessages()
	{
		return validationMessages;
	}

	public Type getValue()
	{
		return value;
	}

	public void setValidationMessages(List validationMessages)
	{
		this.validationMessages = validationMessages;
	}

	public void setValue(Type value)
	{
		this.value = value;
	}

	public boolean isOk() {
		return validationMessages.isEmpty();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy