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

jakarta.validation.metadata.ParameterDescriptor Maven / Gradle / Ivy

There is a newer version: 11.0.0-M4
Show newest version
/*
 * Jakarta Bean Validation API
 *
 * License: Apache License, Version 2.0
 * See the license.txt file in the root directory or .
 */
package jakarta.validation.metadata;

/**
 * Describes a validated method or constructor parameter.
 *
 * @author Gunnar Morling
 * @since 1.1
 */
public interface ParameterDescriptor extends ElementDescriptor, CascadableDescriptor,
		ContainerDescriptor {

	/**
	 * Returns this parameter's index within the parameter array of the method
	 * or constructor holding it.
	 *
	 * @return this parameter's index
	 */
	int getIndex();

	/**
	 * Returns this parameter's name as retrieved by the current parameter name
	 * resolver.
	 *
	 * @return this parameter's name
	 */
	String getName();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy