org.tynamo.descriptor.annotation
Class PossibleValuesAnnotationHandler

java.lang.Object
  extended by org.tynamo.descriptor.annotation.AbstractAnnotationHandler
      extended by 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

Constructor Summary
PossibleValuesAnnotationHandler()
           
 
Method Summary
 TynamoPropertyDescriptor decorateFromAnnotation(PossibleValues annotation, TynamoPropertyDescriptor descriptor)
          Creates a PossibleValuesDescriptorExtension and adds it to the property descriptor.
 
Methods inherited from class org.tynamo.descriptor.annotation.AbstractAnnotationHandler
isDefault, setPropertiesFromAnnotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PossibleValuesAnnotationHandler

public PossibleValuesAnnotationHandler()
Method Detail

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.