org.springframework.roo.classpath.details.annotations
Class EnumAttributeValue
java.lang.Object
org.springframework.roo.classpath.details.annotations.AbstractAnnotationAttributeValue<org.springframework.roo.model.EnumDetails>
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)
|
EnumAttributeValue
public EnumAttributeValue(org.springframework.roo.model.JavaSymbolName name,
org.springframework.roo.model.EnumDetails value)
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.