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.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | BIEnum.
|
| Modifier and Type | Field and Description |
|---|---|
| public String | className
Gets the specified class name, or null if not specified. |
| public final String | javadoc
Gets the javadoc comment specified in the customization. |
| private boolean | map
If false, it means not to bind to a type-safe enum. |
| public final Map | members
Gets the map that contains |
| public static final QName | NAME
Name of this declaration. |
| public String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public QName | getName()
Implements com. Gets the name of this binding declaration, which is the same as the tag name of the binding element. |
| public boolean | |
| private void | |
| public void | setParent(BindInfo p)
Overrides com. Implements com. Sets the parent BindInfo object of this declaration. |
| className | back to summary |
|---|---|
| public String className Gets the specified class name, or null if not specified.
| |
| javadoc | back to summary |
|---|---|
| public final String javadoc Gets the javadoc comment specified in the customization. Can be null if none is specified. | |
| map | back to summary |
|---|---|
| private 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 | back to summary |
|---|---|
| public final Map<String, BIEnumMember> members Gets the map that contains | |
| NAME | back to summary |
|---|---|
| public static final QName NAME Name of this declaration. | |
| ref | back to summary |
|---|---|
public String ref
| |
| BIEnum | back to summary |
|---|---|
| public BIEnum() Default constructor. | |
| getName | back to summary |
|---|---|
| public QName getName() Implements com. Doc from com. Gets the name of this binding declaration, which is the same as the tag name of the binding element.
| |
| isMapped | back to summary |
|---|---|
| public boolean isMapped() | |
| setMembers | back to summary |
|---|---|
private void setMembers(BIEnum.
| |
| setParent | back to summary |
|---|---|
| public void setParent(BindInfo p) Overrides com. Implements com. Doc from com. Sets the parent BindInfo object of this declaration. A declaration object can use this pointer to access context information, such as other customizations.
This method can be only called from
| |
BIEnumMember used inside BIEnum has additional 'value' attribute.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv String | value
The lexical representaion of the constant to which we are attaching. |
| Access | Constructor and Description |
|---|---|
| public |
| value | back to summary |
|---|---|
| pack-priv String value The lexical representaion of the constant to which we are attaching.
| |
| BIEnumMember2 | back to summary |
|---|---|
| public BIEnumMember2() Default constructor. | |