Package psidev.psi.mi.jami.json
Enum MIJsonType
- java.lang.Object
-
- java.lang.Enum<MIJsonType>
-
- psidev.psi.mi.jami.json.MIJsonType
-
- All Implemented Interfaces:
Serializable
,Comparable<MIJsonType>
public enum MIJsonType extends Enum<MIJsonType>
Type of json export binary_only: the JSON writer will always write binary interactions and break n-ary interactions into binary interactions n_ary_only: the JSON writer will always write the full interaction even if it is n-ary- Since:
19/11/14
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description binary_only
n_ary_only
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MIJsonType
valueOf(String name)
Returns the enum constant of this type with the specified name.static MIJsonType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
binary_only
public static final MIJsonType binary_only
-
n_ary_only
public static final MIJsonType n_ary_only
-
-
Method Detail
-
values
public static MIJsonType[] 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 (MIJsonType c : MIJsonType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MIJsonType 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
-
-