org.hibernate.validator.internal.metadata.raw
Class ConstrainedParameter
java.lang.Object
org.hibernate.validator.internal.metadata.raw.AbstractConstrainedElement
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
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.
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()
toString
public String toString()
- Overrides:
toString in class AbstractConstrainedElement
Copyright © 2007-2013 Red Hat Middleware, LLC. All Rights Reserved