com.sun.xml.bind.v2.model.impl
class EnumLeafInfoImpl<T,C,F,M> extends TypeInfoImpl<T,C,F,M> implements EnumLeafInfo<T,C>, Element<T,C>, Iterable<EnumConstantImpl<T,C,F,M>>
| Field Summary | |
|---|---|
| NonElement<T,C> | baseType |
| C | clazz
The enum class whose information this object represents. |
| protected boolean | tokenStringType
Used to recognize token vs string. |
| Constructor Summary | |
|---|---|
| EnumLeafInfoImpl(ModelBuilder<T,C,F,M> builder, Locatable upstream, C clazz, T type) | |
| Method Summary | |
|---|---|
| Element<T,C> | asElement() |
| protected void | calcConstants()
Build EnumConstants and discover/report any error in it. |
| boolean | canBeReferencedByIDREF()
Leaf-type cannot be referenced from IDREF.
|
| protected EnumConstantImpl<T,C,F,M> | createEnumConstant(String name, String literal, F constant, EnumConstantImpl<T,C,F,M> last) |
| NonElement<T,C> | getBaseType() |
| C | getClazz() |
| Iterable<? extends EnumConstantImpl<T,C,F,M>> | getConstants() |
| QName | getElementName() |
| Location | getLocation() |
| ClassInfo<T,C> | getScope()
When a bean binds to an element, it's always through XmlRootElement,
so this method always return null.
|
| Element<T,C> | getSubstitutionHead()
No substitution.
|
| T | getType() |
| QName | getTypeName() |
| boolean | isElement() |
| boolean | isSimpleType() |
| boolean | isToken() |
| Iterator<EnumConstantImpl<T,C,F,M>> | iterator() |
| void | link() |
Parameters: clazz type clazz and type should both point to the enum class that this EnumLeafInfo represents. Because of the type parameterization we have to take them separately.
Deprecated: why are you calling a method whose return value is always known?
Leaf-type cannot be referenced from IDREF.Deprecated: you shouldn't be invoking this method on ClassInfoImpl.
When a bean binds to an element, it's always through XmlRootElement, so this method always return null.Deprecated: if you are invoking this method directly, there's something wrong.
No substitution.Returns: true if enum is restriction/extension from xs:token type, otherwise false