org.hibernate.validator.cfg.defs
Class LengthDef

java.lang.Object
  extended by org.hibernate.validator.cfg.ConstraintDef<Length>
      extended by org.hibernate.validator.cfg.defs.LengthDef

public class LengthDef
extends ConstraintDef<Length>

Author:
Hardy Ferentschik

Field Summary
 
Fields inherited from class org.hibernate.validator.cfg.ConstraintDef
beanType, constraintType, elementType, mapping, parameters, property
 
Constructor Summary
LengthDef(Class<?> beanType, String property, ElementType elementType, ConstraintMapping mapping)
           
 
Method Summary
 LengthDef groups(Class<?>... groups)
           
 LengthDef max(int max)
           
 LengthDef message(String message)
           
 LengthDef min(int min)
           
 LengthDef payload(Class<? extends Payload>... payload)
           
 
Methods inherited from class org.hibernate.validator.cfg.ConstraintDef
addParameter, constraint, property, toString, type, valid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LengthDef

public LengthDef(Class<?> beanType,
                 String property,
                 ElementType elementType,
                 ConstraintMapping mapping)
Method Detail

message

public LengthDef message(String message)
Overrides:
message in class ConstraintDef<Length>

groups

public LengthDef groups(Class<?>... groups)
Overrides:
groups in class ConstraintDef<Length>

payload

public LengthDef payload(Class<? extends Payload>... payload)
Overrides:
payload in class ConstraintDef<Length>

min

public LengthDef min(int min)

max

public LengthDef max(int max)


Copyright © 2007-2010 Red Hat Middleware, LLC. All Rights Reserved