public class PropertyDescriptorImpl extends ElementDescriptorImpl implements PropertyDescriptor
ElementDescriptor.ConstraintFinder
Constructor and Description |
---|
PropertyDescriptorImpl(Class<?> returnType,
boolean cascaded,
String property,
BeanMetaData<?> beanMetaData) |
Modifier and Type | Method and Description |
---|---|
String |
getPropertyName()
Name of the property acording to the Java Bean specification.
|
boolean |
isCascaded()
Is the property marked by the
@Valid annotation. |
addConstraintDescriptor, findConstraints, getConstraintDescriptors, getElementClass, getMetaDataBean, hasConstraints
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findConstraints, getConstraintDescriptors, getElementClass, hasConstraints
public PropertyDescriptorImpl(Class<?> returnType, boolean cascaded, String property, BeanMetaData<?> beanMetaData)
public boolean isCascaded()
PropertyDescriptor
@Valid
annotation.isCascaded
in interface PropertyDescriptor
true
if the annotation is present, false
otherwise.public String getPropertyName()
PropertyDescriptor
getPropertyName
in interface PropertyDescriptor
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.