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 (phillip.kruger@redhat.com)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReference.Builder
-
Constructor Summary
Constructors Modifier Constructor Description Reference()protectedReference(String className, String name, ReferenceType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDirectiveInstance(DirectiveInstance directiveInstance)booleanequals(Object obj)AdaptTogetAdaptTo()AdaptWithgetAdaptWith()StringgetClassName()This represent the Java Class NameReferencegetClassParametrizedType(String name)Map<String,Reference>getClassParametrizedTypes()List<DirectiveInstance>getDirectiveInstances()StringgetGraphQLClassName()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.StringgetName()This represents the GraphQL NameReferenceTypegetType()This represent the GraphQL TypeWrappergetWrapper()booleanhasClassParameterizedTypes()booleanhasDirectiveInstances()inthashCode()booleanhasWrapper()booleanisAdaptingTo()booleanisAdaptingWith()booleanisAddParametrizedTypeNameExtension()voidsetAdaptTo(AdaptTo adaptTo)voidsetAdaptWith(AdaptWith adaptWith)voidsetAddParametrizedTypeNameExtension(boolean addParametrizedTypeNameExtension)voidsetClassName(String className)voidsetClassParametrizedTypes(Map<String,Reference> classParametrizedTypes)voidsetDirectiveInstances(List<DirectiveInstance> directiveInstances)voidsetGraphQLClassName(String graphQLClassName)voidsetName(String name)voidsetType(ReferenceType type)voidsetWrapper(Wrapper wrapper)StringtoString()
-
-
-
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()
-
-