Top Fields Constructors Methods
org.glassfish.jaxb.runtime.v2.model.impl

pack-priv Class EnumConstantImpl<T, C, F, M>

extends Object
implements EnumConstant<T, C>
Class Inheritance
All Implemented Interfaces
org.glassfish.jaxb.core.v2.model.core.EnumConstant
Known Direct Subclasses
org.glassfish.jaxb.runtime.v2.model.impl.RuntimeEnumConstantImpl
Imports
org.glassfish.jaxb.core.v2.model.core.EnumConstant, .EnumLeafInfo

Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
protected final String
protected final String
protected final EnumConstantImpl<T, C, F, M>
next

All the constants of the EnumConstantImpl is linked in one list.

protected final EnumLeafInfoImpl<T, C, F, M>

Constructor Summary

AccessConstructor and Description
public
EnumConstantImpl(EnumLeafInfoImpl<T, C, F, M> owner, String name, String lexical, EnumConstantImpl<T, C, F, M> next)

Method Summary

Modifier and TypeMethod and Description
public EnumLeafInfo<T, C>
public final String
public final String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

lexicalback to summary
protected final String lexical
nameback to summary
protected final String name
nextback to summary
protected final EnumConstantImpl<T, C, F, M> next

All the constants of the EnumConstantImpl is linked in one list.

ownerback to summary
protected final EnumLeafInfoImpl<T, C, F, M> owner

Constructor Detail

EnumConstantImplback to summary
public EnumConstantImpl(EnumLeafInfoImpl<T, C, F, M> owner, String name, String lexical, EnumConstantImpl<T, C, F, M> next)

Method Detail

getEnclosingClassback to summary
public EnumLeafInfo<T, C> getEnclosingClass()

Implements org.glassfish.jaxb.core.v2.model.core.EnumConstant.getEnclosingClass.

Doc from org.glassfish.jaxb.core.v2.model.core.EnumConstant.getEnclosingClass.

Gets the EnumLeafInfo to which this constant belongs to.

Annotations
@Override
getLexicalValueback to summary
public final String getLexicalValue()

Implements org.glassfish.jaxb.core.v2.model.core.EnumConstant.getLexicalValue.

Doc from org.glassfish.jaxb.core.v2.model.core.EnumConstant.getLexicalValue.

Lexical value of this constant.

This value should be evaluated against EnumLeafInfo#getBaseType() to obtain the typed value.

This is the same value as written in the XmlEnumValue annotation. In the above example, this method returns "1" and "2".

Annotations
@Override
getNameback to summary
public final String getName()

Implements org.glassfish.jaxb.core.v2.model.core.EnumConstant.getName.

Doc from org.glassfish.jaxb.core.v2.model.core.EnumConstant.getName.

Gets the constant name.

In the above example this method return "ONE" and "TWO".

Annotations
@Override