Enum EntityLinkElementKind
- java.lang.Object
-
- java.lang.Enum<EntityLinkElementKind>
-
- ch.systemsx.cisd.openbis.generic.shared.managed_property.api.EntityLinkElementKind
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EntityLinkElementKind>
public enum EntityLinkElementKind extends java.lang.Enum<EntityLinkElementKind>
The type of an entity link.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATA_SET
EXPERIMENT
MATERIAL
SAMPLE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getElementName()
theIElement
name corresponding to the link.java.lang.String
getLabel()
Returns the label.static EntityLinkElementKind
tryGetForElementName(java.lang.String elementName)
static EntityLinkElementKind
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EntityLinkElementKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXPERIMENT
public static final EntityLinkElementKind EXPERIMENT
-
SAMPLE
public static final EntityLinkElementKind SAMPLE
-
DATA_SET
public static final EntityLinkElementKind DATA_SET
-
MATERIAL
public static final EntityLinkElementKind MATERIAL
-
-
Method Detail
-
values
public static EntityLinkElementKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EntityLinkElementKind c : EntityLinkElementKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EntityLinkElementKind valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getElementName
public java.lang.String getElementName()
theIElement
name corresponding to the link.
-
getLabel
public java.lang.String getLabel()
Returns the label.
-
tryGetForElementName
public static EntityLinkElementKind tryGetForElementName(java.lang.String elementName)
- Returns:
- the
EntityLinkElementKind
for a given element name ornull
if no matching kind exists.
-
-