javax.validation.metadata

Interface ExecutableDescriptor

    • Method Detail

      • getName

        String getName()
        Returns the method name in case this descriptor represents a method or the non-qualified name of the declaring class in case this descriptor represents a constructor.
        Returns:
        the name of the executable represented by this descriptor
      • getParameterDescriptors

        List<ParameterDescriptor> getParameterDescriptors()
        Returns a list of descriptors representing this executable's parameters, in the order of their declaration, including synthetic parameters.
        Returns:
        a list of descriptors representing this executable's parameters; an empty list will be returned if this executable has no parameters, but never null
      • getCrossParameterDescriptor

        CrossParameterDescriptor getCrossParameterDescriptor()
        Returns a descriptor containing the cross-parameter constraints of this executable.
        Returns:
        a descriptor containing the cross-parameter constraints of this executable
      • getReturnValueDescriptor

        ReturnValueDescriptor getReturnValueDescriptor()
        Returns a descriptor for this executable's return value.

        An executable without return value will return a descriptor representing void. This descriptor will have no constraint associated.

        Returns:
        a descriptor for this executable's return value
      • hasConstrainedParameters

        boolean hasConstrainedParameters()
        Returns true if the executable parameters are constrained either:
        • because of a constraint on at least one of the parameters
        • because of a cascade on at least one of the parameters (via Valid)
        • because of at least one cross-parameter constraint

        Also returns false if there is no parameter.

        Returns:
        true if the executable parameters are constrained
      • hasConstrainedReturnValue

        boolean hasConstrainedReturnValue()
        Returns true if the executable return value is constrained either:
        • because of a constraint on the return value
        • because validation is cascaded on the return value (via Valid)

        Also returns false if there is no return value.

        Returns:
        true if the executable return value is constrained

Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/validation/metadata/executabledescriptor.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : https://docs.oracle.com/en/java/, Interface ExecutableDescriptor

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.