Enum __DirectiveLocation
- java.lang.Object
-
- java.lang.Enum<__DirectiveLocation>
-
- org.topbraidlive.client.java.graphql.platform.__DirectiveLocation
-
- All Implemented Interfaces:
Serializable
,Comparable<__DirectiveLocation>
public enum __DirectiveLocation extends Enum<__DirectiveLocation>
An enum describing valid locations where a directive can be placed
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARGUMENT_DEFINITION
Indicates the directive is valid on a field argument IDL definition.ENUM
Indicates the directive is valid on an enum IDL definition.FIELD
Indicates the directive is valid on fields.FIELD_DEFINITION
Indicates the directive is valid on a field IDL definition.FRAGMENT_DEFINITION
Indicates the directive is valid on fragment definitions.FRAGMENT_SPREAD
Indicates the directive is valid on fragment spreads.INLINE_FRAGMENT
Indicates the directive is valid on inline fragments.INPUT_FIELD_DEFINITION
Indicates the directive is valid on an input object field IDL definition.INPUT_OBJECT
Indicates the directive is valid on an input object IDL definition.INTERFACE
Indicates the directive is valid on an interface IDL definition.MUTATION
Indicates the directive is valid on mutations.OBJECT
Indicates the directive is valid on an object IDL definition.QUERY
Indicates the directive is valid on queries.SCALAR
Indicates the directive is valid on a scalar IDL definition.SCHEMA
Indicates the directive is valid on a schema IDL definition.UNION
Indicates the directive is valid on an union IDL definition.UNKNOWN_VALUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static __DirectiveLocation
fromGraphQl(String value)
String
toString()
static __DirectiveLocation
valueOf(String name)
Returns the enum constant of this type with the specified name.static __DirectiveLocation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ARGUMENT_DEFINITION
public static final __DirectiveLocation ARGUMENT_DEFINITION
Indicates the directive is valid on a field argument IDL definition.
-
ENUM
public static final __DirectiveLocation ENUM
Indicates the directive is valid on an enum IDL definition.
-
FIELD
public static final __DirectiveLocation FIELD
Indicates the directive is valid on fields.
-
FIELD_DEFINITION
public static final __DirectiveLocation FIELD_DEFINITION
Indicates the directive is valid on a field IDL definition.
-
FRAGMENT_DEFINITION
public static final __DirectiveLocation FRAGMENT_DEFINITION
Indicates the directive is valid on fragment definitions.
-
FRAGMENT_SPREAD
public static final __DirectiveLocation FRAGMENT_SPREAD
Indicates the directive is valid on fragment spreads.
-
INLINE_FRAGMENT
public static final __DirectiveLocation INLINE_FRAGMENT
Indicates the directive is valid on inline fragments.
-
INPUT_FIELD_DEFINITION
public static final __DirectiveLocation INPUT_FIELD_DEFINITION
Indicates the directive is valid on an input object field IDL definition.
-
INPUT_OBJECT
public static final __DirectiveLocation INPUT_OBJECT
Indicates the directive is valid on an input object IDL definition.
-
INTERFACE
public static final __DirectiveLocation INTERFACE
Indicates the directive is valid on an interface IDL definition.
-
MUTATION
public static final __DirectiveLocation MUTATION
Indicates the directive is valid on mutations.
-
OBJECT
public static final __DirectiveLocation OBJECT
Indicates the directive is valid on an object IDL definition.
-
QUERY
public static final __DirectiveLocation QUERY
Indicates the directive is valid on queries.
-
SCALAR
public static final __DirectiveLocation SCALAR
Indicates the directive is valid on a scalar IDL definition.
-
SCHEMA
public static final __DirectiveLocation SCHEMA
Indicates the directive is valid on a schema IDL definition.
-
UNION
public static final __DirectiveLocation UNION
Indicates the directive is valid on an union IDL definition.
-
UNKNOWN_VALUE
public static final __DirectiveLocation UNKNOWN_VALUE
-
-
Method Detail
-
values
public static __DirectiveLocation[] 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 (__DirectiveLocation c : __DirectiveLocation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static __DirectiveLocation 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
-
fromGraphQl
public static __DirectiveLocation fromGraphQl(String value)
-
toString
public String toString()
- Overrides:
toString
in classEnum<__DirectiveLocation>
-
-