org.tynamo.descriptor.annotation
Class PossibleValuesAnnotationHandler
java.lang.Object
org.tynamo.descriptor.annotation.AbstractAnnotationHandler
org.tynamo.descriptor.annotation.PossibleValuesAnnotationHandler
- All Implemented Interfaces:
- DescriptorAnnotationHandler<PossibleValues,TynamoPropertyDescriptor>
public class PossibleValuesAnnotationHandler
- extends AbstractAnnotationHandler
- implements DescriptorAnnotationHandler<PossibleValues,TynamoPropertyDescriptor>
Creates a PossibleValuesDescriptorExtension using the
information retrieved from a PossibleValues annotation.
- Author:
- pruggia
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PossibleValuesAnnotationHandler
public PossibleValuesAnnotationHandler()
decorateFromAnnotation
public TynamoPropertyDescriptor decorateFromAnnotation(PossibleValues annotation,
TynamoPropertyDescriptor descriptor)
- Creates a
PossibleValuesDescriptorExtension and adds it to the
property descriptor.
- Specified by:
decorateFromAnnotation in interface DescriptorAnnotationHandler<PossibleValues,TynamoPropertyDescriptor>
- Parameters:
annotation - Annotation added to the property. It cannot be null.descriptor - The property descriptor. It cannot be null.
- Returns:
- Returns descriptor, with the possible values extension.
Copyright © 2004-2009. All Rights Reserved.