- java.lang.Object
-
- java.lang.Enum<ItemIO>
-
- org.scijava.struct.ItemIO
-
- All Implemented Interfaces:
Serializable,Comparable<ItemIO>
public enum ItemIO extends Enum<ItemIO>
Defines the input/output type of a structMember.- Author:
- Curtis Rueden, David Kolb
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTOThe type of the item should be inferred automatically during structification.CONTAINERThe item is a hybrid input/output for the operation, whose structure is fixed but whose content will be populated during execution of the operation.INPUTThe item is an input for the operation.MUTABLEThe item is a hybrid input/output for the operation, whose current value will be used as input to the computation, but subsequently overwritten with a result.NONEThe type of the item is none of the above.OUTPUTThe item is an output for the operation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ItemIOvalueOf(String name)Returns the enum constant of this type with the specified name.static ItemIO[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INPUT
public static final ItemIO INPUT
The item is an input for the operation.
-
OUTPUT
public static final ItemIO OUTPUT
The item is an output for the operation.
-
CONTAINER
public static final ItemIO CONTAINER
The item is a hybrid input/output for the operation, whose structure is fixed but whose content will be populated during execution of the operation.
-
MUTABLE
public static final ItemIO MUTABLE
The item is a hybrid input/output for the operation, whose current value will be used as input to the computation, but subsequently overwritten with a result.
-
AUTO
public static final ItemIO AUTO
The type of the item should be inferred automatically during structification. For instance, for methods of functional interfaces, the types can be inferred as follows: the return type (if notvoid) isItemIO.OUTPUTand method parameters are typicallyItemIO.INPUT, although method parameters could be annotated to indicate they should be treated asItemIO.CONTAINERorItemIO.MUTABLEtype instead.
-
NONE
public static final ItemIO NONE
The type of the item is none of the above.
-
-
Method Detail
-
values
public static ItemIO[] 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 (ItemIO c : ItemIO.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ItemIO valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-