Class Reference

java.lang.Object
io.smallrye.graphql.schema.model.Reference
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CustomScalarType, EnumType, InputType, Type, UnionType

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:
  • Constructor Details

  • Method Details

    • 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()
    • getAllParametrizedTypes

      public Map<String,Reference> getAllParametrizedTypes()
    • getClassParametrizedTypes

      public Map<String,Reference> getClassParametrizedTypes()
    • setClassParametrizedTypes

      public void setClassParametrizedTypes(Map<String,Reference> classParametrizedTypes)
    • hasClassParameterizedTypes

      public boolean hasClassParameterizedTypes()
    • getClassParametrizedType

      public Reference getClassParametrizedType(String name)
    • getParentClassParametrizedTypes

      public Map<String,Reference> getParentClassParametrizedTypes()
    • setParentClassParametrizedTypes

      public void setParentClassParametrizedTypes(Map<String,Reference> parentClassParametrizedTypes)
    • 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()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object