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
-
-
Constructor Summary
Constructors Constructor Description Reference()Reference(Reference reference)Reference(String className, String name, ReferenceType type)Reference(String className, String name, ReferenceType type, String graphQlClassName)Reference(String className, String name, ReferenceType type, String graphQlClassName, Map<String,Reference> parametrizedTypeArguments, boolean addParametrizedTypeNameExtension)Reference(String className, String name, ReferenceType type, String graphQlClassName, Map<String,Reference> parametrizedTypeArguments, boolean addParametrizedTypeNameExtension, AdaptTo adaptTo, AdaptWith adaptWith, List<DirectiveInstance> directiveInstances)Reference(String className, String name, ReferenceType type, Map<String,Reference> parametrizedTypeArguments, boolean addParametrizedTypeNameExtension)
-
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 NameList<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 NameMap<String,Reference>getParametrizedTypeArguments()ReferenceTypegetType()This represent the GraphQL TypeWrappergetWrapper()booleanhasDirectiveInstances()inthashCode()booleanhasWrapper()booleanisAdaptingTo()booleanisAdaptingWith()booleanisAddParametrizedTypeNameExtension()voidsetAdaptTo(AdaptTo adaptTo)voidsetAdaptWith(AdaptWith adaptWith)voidsetAddParametrizedTypeNameExtension(boolean addParametrizedTypeNameExtension)voidsetClassName(String className)voidsetDirectiveInstances(List<DirectiveInstance> directiveInstances)voidsetGraphQlClassName(String graphQlClassName)voidsetName(String name)voidsetParametrizedTypeArguments(Map<String,Reference> parametrizedTypeArguments)voidsetType(ReferenceType type)voidsetWrapper(Wrapper wrapper)StringtoString()
-
-
-
Constructor Detail
-
Reference
public Reference()
-
Reference
public Reference(String className, String name, ReferenceType type, String graphQlClassName, Map<String,Reference> parametrizedTypeArguments, boolean addParametrizedTypeNameExtension)
-
Reference
public Reference(String className, String name, ReferenceType type, String graphQlClassName)
-
Reference
public Reference(String className, String name, ReferenceType type, String graphQlClassName, Map<String,Reference> parametrizedTypeArguments, boolean addParametrizedTypeNameExtension, AdaptTo adaptTo, AdaptWith adaptWith, List<DirectiveInstance> directiveInstances)
-
Reference
public Reference(String className, String name, ReferenceType type)
-
Reference
public Reference(String className, String name, ReferenceType type, Map<String,Reference> parametrizedTypeArguments, boolean addParametrizedTypeNameExtension)
-
Reference
public Reference(Reference reference)
-
-
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
-
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()
-
setParametrizedTypeArguments
public void setParametrizedTypeArguments(Map<String,Reference> parametrizedTypeArguments)
-
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()
-
-