javax.validation
Interface PropertyDescriptor

All Superinterfaces:
ElementDescriptor

public interface PropertyDescriptor
extends ElementDescriptor

Describes a Java Bean property hosting validation constraints. Constraints placed on the attribute and the getter of a given property are all referenced by this object.

Author:
Emmanuel Bernard

Method Summary
 java.lang.String getPropertyName()
          Name of the property acording to the Java Bean specification.
 boolean isCascaded()
          Is the property marked by the @Valid annotation.
 
Methods inherited from interface javax.validation.ElementDescriptor
getConstraintDescriptors, getType, hasConstraints
 

Method Detail

isCascaded

boolean isCascaded()
Is the property marked by the @Valid annotation.

Returns:
true if the annotation is present, false otherwise.

getPropertyName

java.lang.String getPropertyName()
Name of the property acording to the Java Bean specification.

Returns:
property name.


Copyright © 2007-2009. All Rights Reserved.