Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * JBoss, Home of Professional Open Source
   * Copyright 2012, Red Hat, Inc. and/or its affiliates, and individual contributors
   * by the @authors tag. See the copyright.txt in the distribution for a
   * full listing of individual contributors.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
  * http://www.apache.org/licenses/LICENSE-2.0
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 package javax.validation.metadata;
 
 import java.util.List;
 import java.util.Set;

Provides common functionality of MethodDescriptor and ConstructorDescriptor.

Author(s):
Gunnar Morling
Since:
1.1
 
 public interface ExecutableDescriptor extends ElementDescriptor {

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.
 
Returns a list with descriptors representing this executable's parameters, in order of their declaration, including synthetic parameters.

Returns:
A list with descriptors representing this executable's parameters. An empty list will be returned if this executable has no parameters, but never null.
 
Returns a descriptor containing cross-parameter constraints of this executable.

Returns:
A descriptor containing cross-parameter constraints of this executable
 
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
 
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
 
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
 
Returns false.

An executable per se does not host constraints, use getParameterDescriptors(), getCrossParameterDescriptor() and getReturnValueDescriptor() to discover constraints.

Returns:
false
	boolean hasConstraints();

Returns an empty Set.

An executable per se does not host constraints, use getParameterDescriptors(), getCrossParameterDescriptor() and getReturnValueDescriptor() to discover constraints.

Returns:
An empty Set
Returns a finder that will always return an empty Set.

An executable per se does not host constraints, use getParameterDescriptors(), getCrossParameterDescriptor() and getReturnValueDescriptor() to discover constraints.

Returns:
Constraint finder object.
New to GrepCode? Check out our FAQ X