org.hibernate.validator.metadata
Class MethodMetaConstraint<A extends Annotation>
java.lang.Object
org.hibernate.validator.metadata.MetaConstraint<A>
org.hibernate.validator.metadata.MethodMetaConstraint<A>
public class MethodMetaConstraint<A extends Annotation>
- extends MetaConstraint<A>
A MetaConstraint
implementation that represents a method parameter or return value constraint.
- Author:
- Gunnar Morling
MethodMetaConstraint
public MethodMetaConstraint(ConstraintDescriptorImpl<A> constraintDescriptor,
Method method,
int parameterIndex)
- Creates a new
MethodMetaConstraint
representing a method
parameter constraint.
- Parameters:
constraintDescriptor
- The descriptor for this constraint.method
- The method hosting this constraint.parameterIndex
- The index of the parameter hosting this constraint.
MethodMetaConstraint
public MethodMetaConstraint(ConstraintDescriptorImpl<A> constraintDescriptor,
Method method)
- Creates a new
MethodMetaConstraint
representing a method
return value constraint.
- Parameters:
constraintDescriptor
- The descriptor for this constraint.method
- The method hosting this constraint.
MethodMetaConstraint
public MethodMetaConstraint(ConstraintDescriptorImpl<A> constraintDescriptor,
MethodConstraintLocation location)
- Creates a new
MethodMetaConstraint
representing a method
parameter constraint.
- Parameters:
constraintDescriptor
- The descriptor for this constraint.location
- The location of this constraint.
Copyright © 2007-2011 Red Hat Middleware, LLC. All Rights Reserved