org.hibernate.validator.metadata
Class MethodMetaConstraint<A extends java.lang.annotation.Annotation>
java.lang.Object
org.hibernate.validator.metadata.MetaConstraint<A>
org.hibernate.validator.metadata.MethodMetaConstraint<A>
public class MethodMetaConstraint<A extends java.lang.annotation.Annotation>
- extends MetaConstraint<A>
A MetaConstraint implementation that represents a method parameter or return value constraint.
- Author:
- Gunnar Morling
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
MethodMetaConstraint
public MethodMetaConstraint(ConstraintDescriptorImpl<A> constraintDescriptor,
java.lang.reflect.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,
java.lang.reflect.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 © 2011 Oracle Corporation. All Rights Reserved.