org.hibernate.validator.internal.metadata.raw
Class ConstrainedParameter

java.lang.Object
  extended by org.hibernate.validator.internal.metadata.raw.AbstractConstrainedElement
      extended by org.hibernate.validator.internal.metadata.raw.ConstrainedParameter
All Implemented Interfaces:
Iterable<MetaConstraint<?>>, ConstrainedElement

public class ConstrainedParameter
extends AbstractConstrainedElement

Contains constraint-related meta-data for one method parameter.

Author:
Gunnar Morling

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.hibernate.validator.internal.metadata.raw.ConstrainedElement
ConstrainedElement.ConstrainedElementKind
 
Field Summary
 
Fields inherited from class org.hibernate.validator.internal.metadata.raw.AbstractConstrainedElement
constraints, groupConversions, isCascading, location, source
 
Constructor Summary
ConstrainedParameter(ConfigurationSource source, ExecutableConstraintLocation location, String name, Set<MetaConstraint<?>> constraints, Map<Class<?>,Class<?>> groupConversions, boolean isCascading)
          Creates a new parameter meta data object.
 
Method Summary
 ExecutableConstraintLocation getLocation()
          Returns the location of this constrained element.
 String getParameterName()
           
 ConstrainedParameter merge(ConstrainedParameter other)
          Creates a new constrained parameter object by merging this and the given other parameter.
 String toString()
           
 
Methods inherited from class org.hibernate.validator.internal.metadata.raw.AbstractConstrainedElement
equals, getConstraints, getGroupConversions, getKind, hashCode, isCascading, isConstrained, iterator
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstrainedParameter

public ConstrainedParameter(ConfigurationSource source,
                            ExecutableConstraintLocation location,
                            String name,
                            Set<MetaConstraint<?>> constraints,
                            Map<Class<?>,Class<?>> groupConversions,
                            boolean isCascading)
Creates a new parameter meta data object.

Parameters:
source - The source of meta data.
location - The location of the represented method parameter.
name - The name of the represented parameter.
constraints - The constraints of the represented method parameter, if any.
groupConversions - The group conversions of the represented method parameter, if any.
isCascading - Whether a cascaded validation of the represented method parameter shall be performed or not.
Method Detail

getLocation

public ExecutableConstraintLocation getLocation()
Description copied from interface: ConstrainedElement
Returns the location of this constrained element.

Specified by:
getLocation in interface ConstrainedElement
Overrides:
getLocation in class AbstractConstrainedElement
Returns:
The location of this constrained element.

getParameterName

public String getParameterName()

merge

public ConstrainedParameter merge(ConstrainedParameter other)
Creates a new constrained parameter object by merging this and the given other parameter.

Parameters:
other - The parameter to merge.
Returns:
A merged parameter.

toString

public String toString()
Overrides:
toString in class AbstractConstrainedElement


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