public enum AssociationType extends Enum<AssociationType>
Enum Constant and Description |
---|
CONTAINS_A
The CONTAINS_A association type specifies that the source node contains
an instance of the target node.
|
DEFAULT
The DEFAULT association type specifies no special association type --
this association type may be used if the type of the association does not
matter and a generic association should be expressed.
|
IS_A
The IS_A association type specifies the source node is an instance of the
target node.
|
SYNONYM_OF
The SYNONYM_OF association type specifies that the source node is
equivalent to the target node but just contains other names.
|
Modifier and Type | Field and Description |
---|---|
static int |
ALL
Bit mask that represents all types.
|
Modifier and Type | Method and Description |
---|---|
static AssociationType |
getType(int value)
Converts an association type value to the corresponding AssociationType
instance.
|
static AssociationType |
getType(String type) |
int |
getValue()
Returns the associated value.
|
static AssociationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AssociationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AssociationType DEFAULT
public static final AssociationType IS_A
public static final AssociationType CONTAINS_A
public static final AssociationType SYNONYM_OF
public static final int ALL
public static AssociationType[] values()
for (AssociationType c : AssociationType.values()) System.out.println(c);
public static AssociationType 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 int getValue()
public static AssociationType getType(int value)
value
- is the numerical value of the association.public static AssociationType getType(String type)
Copyright (C) 2013, 2014 Raphael Dickfelder, Jan Göpfert, Benjamin Paassen, Andreas Stöckel, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/scie