Class Reference

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    EnumType, InputType, Type

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

        public Map<String,​Reference> getParametrizedTypeArguments()
      • setParametrizedTypeArguments

        public void setParametrizedTypeArguments​(Map<String,​Reference> parametrizedTypeArguments)
      • isAddParametrizedTypeNameExtension

        public boolean isAddParametrizedTypeNameExtension()
      • setAddParametrizedTypeNameExtension

        public void setAddParametrizedTypeNameExtension​(boolean addParametrizedTypeNameExtension)
      • 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()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object