public class EnumAttributeValue extends AbstractAnnotationAttributeValue<org.springframework.roo.model.EnumDetails>
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.
| Constructor and Description |
|---|
EnumAttributeValue(org.springframework.roo.model.JavaSymbolName name,
org.springframework.roo.model.EnumDetails value) |
| Modifier and Type | Method and Description |
|---|---|
Enum<?> |
getAsEnum() |
Enum<?> |
getAsEnum(Object target) |
org.springframework.roo.model.EnumDetails |
getValue() |
String |
toString() |
equals, getName, hashCodepublic EnumAttributeValue(org.springframework.roo.model.JavaSymbolName name,
org.springframework.roo.model.EnumDetails value)
public Enum<?> getAsEnum() throws ClassNotFoundException
ClassNotFoundException - if enum class isn't in current ClassLoadergetAsEnum(Object)public Enum<?> getAsEnum(Object target) throws ClassNotFoundException
target - target objectClassNotFoundExceptionpublic org.springframework.roo.model.EnumDetails getValue()
Copyright © 2009–2016. All rights reserved.