Enum ConditionType
- java.lang.Object
-
- java.lang.Enum<ConditionType>
-
- ch.brix.gql.client.frontify.enums.ConditionType
-
- All Implemented Interfaces:
Serializable,Comparable<ConditionType>,java.lang.constant.Constable
public enum ConditionType extends Enum<ConditionType>
Condition types. A Condition defines which field value of the `Asset` is compared against a given value.
We currently support 4 different kinds of Conditions on `Assets`:
- **TAG**: Refers to a tag of the `Asset`.
- **METADATA_VALUE**: Refers to a value of a custom `MetadataField` of an `Asset`.
- **CUSTOM_METADATA_VALUE**: Refers to a value of a `CustomMetadata` of an `Asset`.
- **EXTERNAL_ID**: Refers to the `externalId` assigned to the `Asset`.
- **FILE_EXTENSION**: Refers to the file extension of an `Asset`.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CUSTOM_METADATA_VALUEEXTERNAL_IDFILE_EXTENSIONMETADATA_VALUETAG
-
Method Summary
Modifier and Type Method Description StringtoString()static ConditionTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ConditionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
METADATA_VALUE
@SerializedName("METADATA_VALUE") public static final ConditionType METADATA_VALUE
-
CUSTOM_METADATA_VALUE
@SerializedName("CUSTOM_METADATA_VALUE") public static final ConditionType CUSTOM_METADATA_VALUE
-
EXTERNAL_ID
@SerializedName("EXTERNAL_ID") public static final ConditionType EXTERNAL_ID
-
TAG
@SerializedName("TAG") public static final ConditionType TAG
-
FILE_EXTENSION
@SerializedName("FILE_EXTENSION") public static final ConditionType FILE_EXTENSION
-
-
Method Detail
-
values
public static ConditionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConditionType 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
-
toString
public String toString()
- Overrides:
toStringin classEnum<ConditionType>
-
-