Interface EnumValue
- All Known Implementing Classes:
EnumValueImpl
public interface EnumValue
Represents one of the possible values of a GraphQL Enum. An
EnumValue
is actually a name, and the list of
directives that have been defined for this enum value, in the GraphQL shema.- Author:
- etienne-sf
-
Method Summary
Modifier and TypeMethodDescriptionReturns the list of directives that have been defined for this field, in the GraphQL schemadefault String
The name of the field, as it can be used in the Java code.getName()
The name of the field, as found in the GraphQL schemaReturns the package's name where the GraphQL objects from the GraphQL schema must be generated.
-
Method Details
-
getName
String getName()The name of the field, as found in the GraphQL schema- Returns:
- The name of the field
-
getJavaName
The name of the field, as it can be used in the Java code. If the name is a java keyword (class, default, break...), the java name it prefixed by an underscore.- Returns:
- The name of the field, as it can be used in Java code
-
getPackageName
String getPackageName()Returns the package's name where the GraphQL objects from the GraphQL schema must be generated.- Returns:
-
getAppliedDirectives
List<AppliedDirective> getAppliedDirectives()Returns the list of directives that have been defined for this field, in the GraphQL schema
-