public enum EModelExtensionCardinality extends java.lang.Enum<EModelExtensionCardinality>
Copyright Micro Focus GmbH.
| Enum Constant and Description |
|---|
ONE
Cardinality ONE (required, 1..1)
|
ONE_UNBOUNDED
Cardinality ONE_UNBOUNDED (one or more, 1..*)
|
OPTIONAL
Cardinality OPTIONAL (0..1)
|
OPTIONAL_UNDBOUNDED
Cardinality OPTIONAL_UNDBOUNDED (zero or more, 0..*)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isOptional()
Gets if the cardinality is optional (bounded or unbounded).
|
boolean |
isRequired()
Gets whether at least one is required.
|
boolean |
isUnbounded()
Gets whether the cardinality is unbounded.
|
static EModelExtensionCardinality |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EModelExtensionCardinality[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EModelExtensionCardinality ONE
public static final EModelExtensionCardinality OPTIONAL
public static final EModelExtensionCardinality ONE_UNBOUNDED
public static final EModelExtensionCardinality OPTIONAL_UNDBOUNDED
public static EModelExtensionCardinality[] values()
for (EModelExtensionCardinality c : EModelExtensionCardinality.values()) System.out.println(c);
public static EModelExtensionCardinality valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isRequired()
true if at least one is required and
false otherwisepublic boolean isOptional()
true if the cardinality is optional and
false otherwisepublic boolean isUnbounded()
true if the cardinality is unbounded and
false if its bounded (max. 1)Copyright © 2015 Micro Focus GmbH. All rights reserved.