org.hibernate.validator.cfg.context.impl
Class ConfiguredConstraint<A extends java.lang.annotation.Annotation,L extends ConstraintLocation>

java.lang.Object
  extended by org.hibernate.validator.cfg.context.impl.ConfiguredConstraint<A,L>

public class ConfiguredConstraint<A extends java.lang.annotation.Annotation,L extends ConstraintLocation>
extends java.lang.Object

Represents a programmatically configured constraint and meta-data related to its location (bean type etc.).

Author:
Gunnar Morling

Method Summary
static
<A extends java.lang.annotation.Annotation>
ConfiguredConstraint<A,MethodConstraintLocation>
forParameter(ConstraintDef<?,A> constraint, java.lang.reflect.Method method, int parameterIndex)
           
static
<A extends java.lang.annotation.Annotation>
ConfiguredConstraint<A,BeanConstraintLocation>
forProperty(ConstraintDef<?,A> constraint, java.lang.Class<?> beanType, java.lang.reflect.Member member)
           
static
<A extends java.lang.annotation.Annotation>
ConfiguredConstraint<A,MethodConstraintLocation>
forReturnValue(ConstraintDef<?,A> constraint, java.lang.reflect.Method method)
           
static
<A extends java.lang.annotation.Annotation>
ConfiguredConstraint<A,BeanConstraintLocation>
forType(ConstraintDef<?,A> constraint, java.lang.Class<?> beanType)
           
 ConstraintDef<?,A> getConstraint()
           
 java.lang.Class<A> getConstraintType()
           
 L getLocation()
           
 java.util.Map<java.lang.String,java.lang.Object> getParameters()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

forType

public static <A extends java.lang.annotation.Annotation> ConfiguredConstraint<A,BeanConstraintLocation> forType(ConstraintDef<?,A> constraint,
                                                                                                                 java.lang.Class<?> beanType)

forProperty

public static <A extends java.lang.annotation.Annotation> ConfiguredConstraint<A,BeanConstraintLocation> forProperty(ConstraintDef<?,A> constraint,
                                                                                                                     java.lang.Class<?> beanType,
                                                                                                                     java.lang.reflect.Member member)

forParameter

public static <A extends java.lang.annotation.Annotation> ConfiguredConstraint<A,MethodConstraintLocation> forParameter(ConstraintDef<?,A> constraint,
                                                                                                                        java.lang.reflect.Method method,
                                                                                                                        int parameterIndex)

forReturnValue

public static <A extends java.lang.annotation.Annotation> ConfiguredConstraint<A,MethodConstraintLocation> forReturnValue(ConstraintDef<?,A> constraint,
                                                                                                                          java.lang.reflect.Method method)

getConstraint

public ConstraintDef<?,A> getConstraint()

getLocation

public L getLocation()

getConstraintType

public java.lang.Class<A> getConstraintType()

getParameters

public java.util.Map<java.lang.String,java.lang.Object> getParameters()


Copyright © 2011 Oracle Corporation. All Rights Reserved.