Package io.smallrye.graphql.schema.model
Class Reference
- java.lang.Object
-
- io.smallrye.graphql.schema.model.Reference
-
- All Implemented Interfaces:
Serializable
public class Reference extends Object implements Serializable
Represents a reference to some other type (type/input/enum/interface) This so that, as we are scanning, we can refer to a type that might not exist yet. All types extends this.- Author:
- Phillip Kruger ([email protected])
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Reference.Builder
-
Constructor Summary
Constructors Modifier Constructor Description Reference()
protected
Reference(String className, String name, ReferenceType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDirectiveInstance(DirectiveInstance directiveInstance)
boolean
equals(Object obj)
AdaptTo
getAdaptTo()
AdaptWith
getAdaptWith()
String
getClassName()
This represent the Java Class NameReference
getClassParametrizedType(String name)
Map<String,Reference>
getClassParametrizedTypes()
List<DirectiveInstance>
getDirectiveInstances()
String
getGraphQLClassName()
The class into which this reference can be converted, which can be handled by graphql For example, String for Dates or formatted Numbers, BigInteger for long and BigInteger.String
getName()
This represents the GraphQL NameReferenceType
getType()
This represent the GraphQL TypeWrapper
getWrapper()
boolean
hasClassParameterizedTypes()
boolean
hasDirectiveInstances()
int
hashCode()
boolean
hasWrapper()
boolean
isAdaptingTo()
boolean
isAdaptingWith()
boolean
isAddParametrizedTypeNameExtension()
void
setAdaptTo(AdaptTo adaptTo)
void
setAdaptWith(AdaptWith adaptWith)
void
setAddParametrizedTypeNameExtension(boolean addParametrizedTypeNameExtension)
void
setClassName(String className)
void
setClassParametrizedTypes(Map<String,Reference> classParametrizedTypes)
void
setDirectiveInstances(List<DirectiveInstance> directiveInstances)
void
setGraphQLClassName(String graphQLClassName)
void
setName(String name)
void
setType(ReferenceType type)
void
setWrapper(Wrapper wrapper)
String
toString()
-
-
-
Constructor Detail
-
Reference
public Reference()
-
Reference
protected Reference(String className, String name, ReferenceType type)
-
-
Method Detail
-
getClassName
public String getClassName()
This represent the Java Class Name- Returns:
- String full class name
-
setClassName
public void setClassName(String className)
-
getName
public String getName()
This represents the GraphQL Name- Returns:
- String name
-
setName
public void setName(String name)
-
getType
public ReferenceType getType()
This represent the GraphQL Type- Returns:
- the type
-
setType
public void setType(ReferenceType type)
-
getGraphQLClassName
public String getGraphQLClassName()
The class into which this reference can be converted, which can be handled by graphql For example, String for Dates or formatted Numbers, BigInteger for long and BigInteger. Used for transforming.- Returns:
- full class name
-
setGraphQLClassName
public void setGraphQLClassName(String graphQLClassName)
-
getAdaptTo
public AdaptTo getAdaptTo()
-
setAdaptTo
public void setAdaptTo(AdaptTo adaptTo)
-
isAdaptingTo
public boolean isAdaptingTo()
-
getAdaptWith
public AdaptWith getAdaptWith()
-
setAdaptWith
public void setAdaptWith(AdaptWith adaptWith)
-
isAdaptingWith
public boolean isAdaptingWith()
-
setClassParametrizedTypes
public void setClassParametrizedTypes(Map<String,Reference> classParametrizedTypes)
-
hasClassParameterizedTypes
public boolean hasClassParameterizedTypes()
-
isAddParametrizedTypeNameExtension
public boolean isAddParametrizedTypeNameExtension()
-
setAddParametrizedTypeNameExtension
public void setAddParametrizedTypeNameExtension(boolean addParametrizedTypeNameExtension)
-
getDirectiveInstances
public List<DirectiveInstance> getDirectiveInstances()
-
hasDirectiveInstances
public boolean hasDirectiveInstances()
-
setDirectiveInstances
public void setDirectiveInstances(List<DirectiveInstance> directiveInstances)
-
addDirectiveInstance
public void addDirectiveInstance(DirectiveInstance directiveInstance)
-
getWrapper
public Wrapper getWrapper()
-
setWrapper
public void setWrapper(Wrapper wrapper)
-
hasWrapper
public boolean hasWrapper()
-
-