Serializable, Comparable<UsageEnum>, XsdEnum<UsageEnum>public enum UsageEnum extends Enum<UsageEnum> implements XsdEnum<UsageEnum>
Enum with all the possible values for the usage attribute.| Enum Constant | Description |
|---|---|
OPTIONAL |
|
PROHIBITED |
|
REQUIRED |
| Modifier and Type | Method | Description |
|---|---|---|
List<String> |
getSupportedValues() |
|
String |
getValue() |
|
UsageEnum[] |
getValues() |
|
String |
getVariableName() |
|
static UsageEnum |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static UsageEnum[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UsageEnum REQUIRED
public static final UsageEnum PROHIBITED
public static final UsageEnum OPTIONAL
private final String value
public static UsageEnum[] values()
for (UsageEnum c : UsageEnum.values()) System.out.println(c);
public static UsageEnum valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getValue()
public String getVariableName()
getVariableName in interface XsdEnum<UsageEnum>Enum represents.public UsageEnum[] getValues()
public List<String> getSupportedValues()
getSupportedValues in interface XsdEnum<UsageEnum>Copyright © 2018. All rights reserved.