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
 
Constructor Summary
ConstrainedParameter(ConfigurationSource source, MethodConstraintLocation location, String name, Set<MetaConstraint<?>> constraints, boolean isCascading)
          Creates a new parameter meta data object.
 
Method Summary
 MethodConstraintLocation getLocation()
          Returns the location of this constrained element.
 String getParameterName()
           
 String toString()
           
 
Methods inherited from class org.hibernate.validator.internal.metadata.raw.AbstractConstrainedElement
equals, getConstraints, getKind, getSource, 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,
                            MethodConstraintLocation location,
                            String name,
                            Set<MetaConstraint<?>> constraints,
                            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.
isCascading - Whether a cascaded validation of the represented method parameter shall be performed or not.
Method Detail

getLocation

public MethodConstraintLocation 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()

toString

public String toString()
Overrides:
toString in class AbstractConstrainedElement


Copyright © 2012 Oracle Corporation. All Rights Reserved.