org.springframework.roo.classpath.details.annotations
Class EnumAttributeValue

java.lang.Object
  extended by org.springframework.roo.classpath.details.annotations.AbstractAnnotationAttributeValue<org.springframework.roo.model.EnumDetails>
      extended by org.springframework.roo.classpath.details.annotations.EnumAttributeValue
All Implemented Interfaces:
AnnotationAttributeValue<org.springframework.roo.model.EnumDetails>

public class EnumAttributeValue
extends AbstractAnnotationAttributeValue<org.springframework.roo.model.EnumDetails>

Represents an enumeration annotation attribute value.

Source code parsers should treat any non-quoted string NOT ending in ".class" as an enumeration, using the segment appearing after the final period in the string as the field name. Anything to the left of that final period is treated as representing the enumeration type, and normal package resolution techniques should be used to resolve the enumeration type.

Since:
1.0
Author:
Ben Alex

Constructor Summary
EnumAttributeValue(org.springframework.roo.model.JavaSymbolName name, org.springframework.roo.model.EnumDetails value)
           
 
Method Summary
 Enum<?> getAsEnum()
           
 org.springframework.roo.model.EnumDetails getValue()
           
 String toString()
           
 
Methods inherited from class org.springframework.roo.classpath.details.annotations.AbstractAnnotationAttributeValue
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnumAttributeValue

public EnumAttributeValue(org.springframework.roo.model.JavaSymbolName name,
                          org.springframework.roo.model.EnumDetails value)
Method Detail

getAsEnum

public Enum<?> getAsEnum()
                  throws ClassNotFoundException
Throws:
ClassNotFoundException

getValue

public org.springframework.roo.model.EnumDetails getValue()
Returns:
the value (never null)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2010 VMware, Inc. All Rights Reserved.