public class GraphQLQueryRegistry
extends java.lang.Object
Constructor and Description |
---|
GraphQLQueryRegistry()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
get(java.lang.String key)
Returns the query string if the registry contains the template or null if not.
|
boolean |
has(java.lang.String key)
Returns true if this registry contains the template.
|
boolean |
register(java.lang.String name,
java.lang.String query)
Registers a new template.
|
public boolean register(java.lang.String name, java.lang.String query)
name
- the template namequery
- the template to registerpublic boolean has(java.lang.String key)
key
- the template namepublic java.lang.String get(java.lang.String key)
key
- the template name