javax.validation.metadata
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.

Author:
Emmanuel Bernard

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.validation.metadata.ElementDescriptor
ElementDescriptor.ConstraintFinder
 
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.metadata.ElementDescriptor
findConstraints, getConstraintDescriptors, getElementClass, 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.


Submit a bug or feature

Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.

Generated on 10-February-2011 12:41


Spec-Zone.ru - all specs in one place



free hit counter