org.hibernate.validator.cfg.defs
Class URLDef

java.lang.Object
  extended by org.hibernate.validator.cfg.ConstraintDef<URL>
      extended by org.hibernate.validator.cfg.defs.URLDef

public class URLDef
extends ConstraintDef<URL>

Author:
Hardy Ferentschik

Field Summary
 
Fields inherited from class org.hibernate.validator.cfg.ConstraintDef
beanType, constraintType, elementType, mapping, parameters, property
 
Constructor Summary
URLDef(Class<?> beanType, String property, ElementType elementType, ConstraintMapping mapping)
           
 
Method Summary
 URLDef groups(Class<?>... groups)
           
 URLDef host(String host)
           
 URLDef message(String message)
           
 URLDef payload(Class<? extends javax.validation.Payload>... payload)
           
 URLDef port(int port)
           
 URLDef protocol(String protocol)
           
 
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

URLDef

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

message

public URLDef message(String message)
Overrides:
message in class ConstraintDef<URL>

groups

public URLDef groups(Class<?>... groups)
Overrides:
groups in class ConstraintDef<URL>

payload

public URLDef payload(Class<? extends javax.validation.Payload>... payload)
Overrides:
payload in class ConstraintDef<URL>

protocol

public URLDef protocol(String protocol)

host

public URLDef host(String host)

port

public URLDef port(int port)


Copyright © 2011 Oracle Corporation. All Rights Reserved.