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

org.ocelotds.messaging.ConstraintViolation Maven / Gradle / Ivy

There is a newer version: 2.12.0
Show newest version
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ocelotds.messaging;

/**
 *
 * @author hhfrancois
 */
public class ConstraintViolation {

	String message = null;
	int index = 0;
	String name = null;
	String prop = null;

	public ConstraintViolation(String message) {
		this.message = message;
	}

	public ConstraintViolation() {

	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}
	
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getProp() {
		return prop;
	}

	public void setProp(String prop) {
		this.prop = prop;
	}

	@Override
	public String toString() {
		if (prop != null) {
			return "ConstraintViolation{" + name + "." + prop + " " + message + '}';
		}
		return "ConstraintViolation{" + name + " " + message + '}';
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy