com.sun.tools.xjc.reader.xmlschema.bindinfo

Class BIEnum

final class BIEnum extends AbstractDeclarationImpl

Enumeration customization.

This customization binds a simple type to a type-safe enum class. The actual binding process takes place in SimpleTypeBuilder.

This customization is acknowledged by SimpleTypeBuilder.

Nested Class Summary
static classBIEnum.BIEnumMember2
BIEnumMember used inside BIEnum has additional 'value' attribute.
Field Summary
StringclassName
Gets the specified class name, or null if not specified.
Stringjavadoc
Gets the javadoc comment specified in the customization.
booleanmap
If false, it means not to bind to a type-safe enum. this takes precedence over all the other properties of this class.
Map<String,BIEnumMember>members
Gets the map that contains XML value->BIEnumMember pairs.
static QNameNAME
Name of this declaration.
Stringref
Method Summary
QNamegetName()
booleanisMapped()
voidsetMembers(BIEnum.BIEnumMember2[] mems)
voidsetParent(BindInfo p)

Field Detail

className

String className
Gets the specified class name, or null if not specified.

javadoc

final String javadoc
Gets the javadoc comment specified in the customization. Can be null if none is specified.

map

boolean map
If false, it means not to bind to a type-safe enum. this takes precedence over all the other properties of this class.

members

final Map<String,BIEnumMember> members
Gets the map that contains XML value->BIEnumMember pairs. This table is built from <enumMember> customizations. Always return non-null.

NAME

public static final QName NAME
Name of this declaration.

ref

String ref

See Also: getExistingClassRef

Method Detail

getName

public QName getName()

isMapped

public boolean isMapped()

setMembers

void setMembers(BIEnum.BIEnumMember2[] mems)

setParent

public void setParent(BindInfo p)