org.hibernate.validator.metadata
Class ParameterMetaData
java.lang.Object
org.hibernate.validator.metadata.ParameterMetaData
- All Implemented Interfaces:
- Iterable<MethodMetaConstraint<?>>
public class ParameterMetaData
- extends Object
- implements Iterable<MethodMetaConstraint<?>>
Contains constraint-related meta-data for one method parameter.
- Author:
- Gunnar Morling
ParameterMetaData
public ParameterMetaData(int index,
Class<?> type,
String name,
List<MethodMetaConstraint<?>> constraints,
boolean isCascading)
getType
public Class<?> getType()
getIndex
public int getIndex()
getParameterName
public String getParameterName()
isCascading
public boolean isCascading()
isConstrained
public boolean isConstrained()
- Whether this parameter is constrained or not. This is the case, if this
parameter has at least one constraint or a cascaded validation shall be
performed for it.
- Returns:
True
, if this parameter is constrained,
false
otherwise.
iterator
public Iterator<MethodMetaConstraint<?>> iterator()
- Specified by:
iterator
in interface Iterable<MethodMetaConstraint<?>>
merge
public ParameterMetaData merge(ParameterMetaData otherMetaData)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2007-2011 Red Hat Middleware, LLC. All Rights Reserved