public static enum Relationships.WellKnown extends Enum<Relationships.WellKnown>
| Enum Constant and Description |
|---|
contains
Expresses encapsulation of a set of entities in another entity.
|
defines
Expresses "instantiation" of some entity based on the definition provided by "source" entity.
|
owns
Expresses ownership.
|
| Modifier and Type | Method and Description |
|---|---|
static Relationships.WellKnown |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Relationships.WellKnown[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Relationships.WellKnown contains
Note that entities that are contained within another entity (by the virtue of there being this relationship between them) are deleted along with it.
Note also that it is prohibited to create loops in the contains relationships, i.e. an entity cannot (indirectly) contain itself. Also, containment is unique and therefore 1 entity cannot be contained in 2 or more other entities.
public static final Relationships.WellKnown defines
Note that as long as an entity defines other entities, it cannot be deleted.
public static final Relationships.WellKnown owns
public static Relationships.WellKnown[] values()
for (Relationships.WellKnown c : Relationships.WellKnown.values()) System.out.println(c);
public static Relationships.WellKnown 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 © 2015 Red Hat, Inc.. All rights reserved.