org.hibernate.validator.metadata
Class MethodMetaConstraint<A extends Annotation>

java.lang.Object
  extended by org.hibernate.validator.metadata.MetaConstraint<A>
      extended by 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

Field Summary
 
Fields inherited from class org.hibernate.validator.metadata.MetaConstraint
location
 
Constructor Summary
MethodMetaConstraint(ConstraintDescriptorImpl<A> constraintDescriptor, Method method)
          Creates a new MethodMetaConstraint representing a method return value constraint.
MethodMetaConstraint(ConstraintDescriptorImpl<A> constraintDescriptor, MethodConstraintLocation location)
          Creates a new MethodMetaConstraint representing a method parameter constraint.
MethodMetaConstraint(ConstraintDescriptorImpl<A> constraintDescriptor, Method method, int parameterIndex)
          Creates a new MethodMetaConstraint representing a method parameter constraint.
 
Method Summary
 
Methods inherited from class org.hibernate.validator.metadata.MetaConstraint
equals, getDescriptor, getElementType, getGroupList, getLocation, hashCode, toString, typeOfAnnotatedElement, validateConstraint
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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