public enum ElementRoleStrategy extends Enum<ElementRoleStrategy>
| Enum Constant and Description |
|---|
AtLeastOne
At least one element in the role must be added
|
ExactlyOne
Exactly one element in the role can be added
|
ZeroOrMore
Any number of elements in the role may be added
|
ZeroOrOne
Maximum of one element in the role can be added
|
| Modifier and Type | Method and Description |
|---|---|
static ElementRoleStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ElementRoleStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ElementRoleStrategy ExactlyOne
public static final ElementRoleStrategy ZeroOrOne
public static final ElementRoleStrategy AtLeastOne
public static final ElementRoleStrategy ZeroOrMore
public static ElementRoleStrategy[] values()
for (ElementRoleStrategy c : ElementRoleStrategy.values()) System.out.println(c);
public static ElementRoleStrategy 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 nullCopyright © 2016 SiteWhere, LLC.. All rights reserved.