com.sun.xml.bind.v2.model.core
public interface EnumLeafInfo<T,C> extends LeafInfo<T,C>
| Method Summary | |
|---|---|
| NonElement<T,C> | getBaseType()
Returns the base type of the enumeration.
|
| C | getClazz()
The same as EnumLeafInfo but an EnumLeafInfo
is guaranteed to represent an enum declaration, which is a
kind of a class declaration.
|
| Iterable<? extends EnumConstant> | getConstants()
Returns the read-only list of enumeration constants.
|
For example, with the following enum class, this method returns BuiltinLeafInfo for Integer.
&XmlEnum(Integer.class)
enum Foo {
&XmlEnumValue("1")
ONE,
&XmlEnumValue("2")
TWO
}
Returns: never null.
Returns: always non-null.
Returns: never null. Can be empty (really?).