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

javax.validation.metadata.MethodType Maven / Gradle / Ivy

The newest version!
/*
 * Bean Validation API
 *
 * License: Apache License, Version 2.0
 * See the license.txt file in the root directory or .
 */
package javax.validation.metadata;

/**
 * Represents the type of a method: getter or non getter.
 *
 * @author Emmanuel Bernard
 * @since 1.1
 */
public enum MethodType {

	/**
	 * A method following the getter pattern. A getter according to the
	 * JavaBeans specification is a method whose:
	 * 
    *
  • name starts with get, has a return type but no parameter
  • *
  • name starts with is, has a return type and is returning {@code boolean}.
  • *
*/ GETTER, /** * A method that does not follow the getter pattern. A getter according to the * JavaBeans specification is a method whose: *
    *
  • name starts with get, has a return type but no parameter
  • *
  • name starts with is, has a return type and is returning {@code boolean}.
  • *
*/ NON_GETTER }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy