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

io.github.paulmarcelinbejan.toolbox.validathor.info.Info Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
package io.github.paulmarcelinbejan.toolbox.validathor.info;

import io.github.paulmarcelinbejan.toolbox.validathor.utils.ValidathorUtils;
import lombok.Getter;
import lombok.ToString;

/**
 * Info holder
 */
@Getter
@ToString
public class Info {
	
	public Info(Object outerObject, String outerObjectToString, 
			Class toValidateClass, String toValidateName, Object toValidateValue) {

		this.outerObject = outerObject;
		this.outerObjectToString = outerObjectToString;
		this.toValidateClass = toValidateClass;
		this.toValidateName = toValidateName;
		this.toValidateValue = toValidateValue;
		
		is_ToValidateClass_InstanceOf_ParametrizedType = ValidathorUtils.isParameterizedType(toValidateClass);
	}
	
	/**
	 * the outer object of the toValidateValue
	 */
	private Object outerObject;
	
	/**
	 * outerObject.toString()
	 */
	private String outerObjectToString;
	
	/**
	 * the class to be validated
	 */
	private Class toValidateClass;
	
	/**
	 * true if toValidateClass is an instanceOf ParametrizedType
	 */
	private boolean is_ToValidateClass_InstanceOf_ParametrizedType;
	
	/**
	 * the name of the field to be validated
	 */
	private String toValidateName;
	
	/**
	 * the value of the field to be validated
	 */
	private Object toValidateValue;
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy