public class SchemaParseOrder
extends java.lang.Object
implements java.io.Serializable
SDLDefinition were parsed in
via SchemaParser and TypeDefinitionRegistry| Constructor and Description |
|---|
SchemaParseOrder() |
| Modifier and Type | Method and Description |
|---|---|
<T extends SDLDefinition<?>> |
addDefinition(T sdlDefinition)
This adds a new
SDLDefinition to the order |
<T extends GraphQLSchemaElement> |
getElementComparator()
This comparator will sort according to the original parsed order
|
java.util.Map<java.lang.String,java.util.List<SDLNamedDefinition<?>>> |
getInNameOrder()
This map is the order in which
SDLDefinitions were parsed per unique SourceLocation.getSourceName() and it
only contains SDLNamedDefinitions. |
java.util.Map<java.lang.String,java.util.List<SDLDefinition<?>>> |
getInOrder()
This map is the order in which
SDLDefinitions were parsed per unique SourceLocation.getSourceName(). |
<T extends SDLDefinition<?>> |
removeDefinition(T sdlDefinition)
This removes a
SDLDefinition from the order |
java.lang.String |
toString() |
public java.util.Map<java.lang.String,java.util.List<SDLDefinition<?>>> getInOrder()
SDLDefinitions were parsed per unique SourceLocation.getSourceName(). If there
is no source then the empty string "" is used.public java.util.Map<java.lang.String,java.util.List<SDLNamedDefinition<?>>> getInNameOrder()
SDLDefinitions were parsed per unique SourceLocation.getSourceName() and it
only contains SDLNamedDefinitions. If there is no source then the empty string "" is used.public <T extends GraphQLSchemaElement> java.util.Comparator<? super T> getElementComparator()
T - is a GraphQLSchemaElementpublic <T extends SDLDefinition<?>> SchemaParseOrder addDefinition(T sdlDefinition)
SDLDefinition to the orderT - for twosdlDefinition - the SDL definition to addSchemaParseOrder for fluent buildingpublic <T extends SDLDefinition<?>> SchemaParseOrder removeDefinition(T sdlDefinition)
SDLDefinition from the orderT - for twosdlDefinition - the SDL definition to removeSchemaParseOrder for fluent buildingpublic java.lang.String toString()
toString in class java.lang.Object