@PublicApi public class FieldCoordinates extends java.lang.Object
DataFetcher
need to be specified using those coordinates.Modifier and Type | Method and Description |
---|---|
void |
assertValidNames()
Checks the validity of the field coordinate names.
|
static FieldCoordinates |
coordinates(GraphQLFieldsContainer parentType,
GraphQLFieldDefinition fieldDefinition)
Creates new field coordinates
|
static FieldCoordinates |
coordinates(GraphQLFieldsContainer parentType,
java.lang.String fieldName)
Creates new field coordinates
|
static FieldCoordinates |
coordinates(java.lang.String parentType,
java.lang.String fieldName)
Creates new field coordinates
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getFieldName() |
java.lang.String |
getTypeName() |
int |
hashCode() |
boolean |
isSystemCoordinates() |
static FieldCoordinates |
systemCoordinates(java.lang.String fieldName)
The exception to the general rule is the system __xxxx Introspection fields which have no parent type and
are able to be specified on any type
|
java.lang.String |
toString() |
public java.lang.String getTypeName()
public java.lang.String getFieldName()
public boolean isSystemCoordinates()
public void assertValidNames() throws AssertException
typeName
and fieldName
, while system coordinates do not have
a parent so they only validate the fieldName
.AssertException
- if the coordinates are NOT valid; otherwise, returns normally.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static FieldCoordinates coordinates(GraphQLFieldsContainer parentType, GraphQLFieldDefinition fieldDefinition)
parentType
- the container of the fieldfieldDefinition
- the field definitionpublic static FieldCoordinates coordinates(java.lang.String parentType, java.lang.String fieldName)
parentType
- the container of the fieldfieldName
- the field namepublic static FieldCoordinates coordinates(GraphQLFieldsContainer parentType, java.lang.String fieldName)
parentType
- the container of the fieldfieldName
- the field namepublic static FieldCoordinates systemCoordinates(java.lang.String fieldName)
fieldName
- the name of the system field which MUST start with __