Interface NamedElement

  • All Known Implementing Classes:
    FieldModel, OperationModel, ParameterModel

    public interface NamedElement
    An interface for elements that have a name and may be associated with GraphQL directives.
    Author:
    mskacelik
    • Method Detail

      • getName

        String getName()
        Gets the name of the NamedElement, considering any Name annotation if present.
        Returns:
        The field name.
      • getRawName

        String getRawName()
        Gets the raw (original) name of the NamedElement.
        Returns:
        The raw field name.
      • getDirectiveLocation

        String getDirectiveLocation()
        Gets the location of directives associated with this NamedElement.
        Returns:
        The directive location
      • hasDirectives

        boolean hasDirectives()
        Checks if the NamedElement has associated directives.
        Returns:
        true if the NamedElement has directives, otherwise false.