Package org.intermine.template
Enum TemplateValue.ValueType
- java.lang.Object
-
- java.lang.Enum<TemplateValue.ValueType>
-
- org.intermine.template.TemplateValue.ValueType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TemplateValue.ValueType>
- Enclosing class:
- TemplateValue
public static enum TemplateValue.ValueType extends java.lang.Enum<TemplateValue.ValueType>
Possible values for TemplateValue type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAG_VALUE
e.g.OBJECT_VALUE
e.g.SIMPLE_VALUE
a simple value, like a string
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TemplateValue.ValueType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TemplateValue.ValueType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SIMPLE_VALUE
public static final TemplateValue.ValueType SIMPLE_VALUE
a simple value, like a string
-
BAG_VALUE
public static final TemplateValue.ValueType BAG_VALUE
e.g. a list
-
OBJECT_VALUE
public static final TemplateValue.ValueType OBJECT_VALUE
e.g. an object
-
-
Method Detail
-
values
public static TemplateValue.ValueType[] 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 (TemplateValue.ValueType c : TemplateValue.ValueType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TemplateValue.ValueType 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
-
-