Package io.smallrye.graphql.schema.model
Class Reference
java.lang.Object
io.smallrye.graphql.schema.model.Reference
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CustomScalarType,EnumType,InputType,Type,UnionType
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:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedReference(String className, String name, ReferenceType type) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDirectiveInstance(DirectiveInstance directiveInstance) booleanThis represent the Java Class NameThe 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.getName()This represents the GraphQL NamegetType()This represent the GraphQL TypebooleanbooleaninthashCode()booleanbooleanbooleanbooleanvoidsetAdaptTo(AdaptTo adaptTo) voidsetAdaptWith(AdaptWith adaptWith) voidsetAddParametrizedTypeNameExtension(boolean addParametrizedTypeNameExtension) voidsetClassName(String className) voidsetClassParametrizedTypes(Map<String, Reference> classParametrizedTypes) voidsetDirectiveInstances(List<DirectiveInstance> directiveInstances) voidsetGraphQLClassName(String graphQLClassName) voidvoidsetParentClassParametrizedTypes(Map<String, Reference> parentClassParametrizedTypes) voidsetType(ReferenceType type) voidsetWrapper(Wrapper wrapper) toString()
-
Constructor Details
-
Reference
public Reference() -
Reference
-
-
Method Details
-
getClassName
This represent the Java Class Name- Returns:
- String full class name
-
setClassName
-
getName
This represents the GraphQL Name- Returns:
- String name
-
setName
-
getType
This represent the GraphQL Type- Returns:
- the type
-
setType
-
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
-
getAdaptTo
-
setAdaptTo
-
isAdaptingTo
public boolean isAdaptingTo() -
getAdaptWith
-
setAdaptWith
-
isAdaptingWith
public boolean isAdaptingWith() -
getAllParametrizedTypes
-
getClassParametrizedTypes
-
setClassParametrizedTypes
-
hasClassParameterizedTypes
public boolean hasClassParameterizedTypes() -
getClassParametrizedType
-
getParentClassParametrizedTypes
-
setParentClassParametrizedTypes
-
isAddParametrizedTypeNameExtension
public boolean isAddParametrizedTypeNameExtension() -
setAddParametrizedTypeNameExtension
public void setAddParametrizedTypeNameExtension(boolean addParametrizedTypeNameExtension) -
getDirectiveInstances
-
hasDirectiveInstances
public boolean hasDirectiveInstances() -
setDirectiveInstances
-
addDirectiveInstance
-
getWrapper
-
setWrapper
-
hasWrapper
public boolean hasWrapper() -
toString
-
hashCode
public int hashCode() -
equals
-