org.apache.bval.jsr303
Class ConstraintDefaults

java.lang.Object
  extended by org.apache.bval.jsr303.ConstraintDefaults

public class ConstraintDefaults
extends Object

Description: Provides access to the default constraints/validator implementation classes built into the framework. These are configured in DefaultConstraints.properties.


Field Summary
protected  Map<String,Class<? extends ConstraintValidator<?,?>>[]> defaultConstraints
          The default constraint data stored herein.
 
Constructor Summary
ConstraintDefaults()
          Create a new ConstraintDefaults instance.
 
Method Summary
 Map<String,Class<? extends ConstraintValidator<?,?>>[]> getDefaultConstraints()
          Get the default constraint data.
<A extends Annotation>
Class<? extends ConstraintValidator<A,?>>[]
getValidatorClasses(Class<A> annotationType)
          Get the default validator implementation types for the specified constraint annotation type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultConstraints

protected Map<String,Class<? extends ConstraintValidator<?,?>>[]> defaultConstraints
The default constraint data stored herein.

Constructor Detail

ConstraintDefaults

public ConstraintDefaults()
Create a new ConstraintDefaults instance.

Method Detail

getDefaultConstraints

public Map<String,Class<? extends ConstraintValidator<?,?>>[]> getDefaultConstraints()
Get the default constraint data.

Returns:
String-keyed map

getValidatorClasses

public <A extends Annotation> Class<? extends ConstraintValidator<A,?>>[] getValidatorClasses(Class<A> annotationType)
Get the default validator implementation types for the specified constraint annotation type.

Parameters:
annotationType -
Returns:
array of ConstraintValidator implementation classes


Copyright © 2010-2012 Apache Software Foundation. All Rights Reserved.