Record Class BindDirective

java.lang.Object
java.lang.Record
org.aksw.jenax.graphql.sparql.v2.context.BindDirective
All Implemented Interfaces:
PrefixExpandable<BindDirective>

public record BindDirective(String exprStr, String varName, Boolean isTarget) extends Record implements PrefixExpandable<BindDirective>
  • Field Details

  • Constructor Details

    • BindDirective

      public BindDirective(String exprStr, String varName, Boolean isTarget)
      Creates an instance of a BindDirective record class.
      Parameters:
      exprStr - the value for the exprStr record component
      varName - the value for the varName record component
      isTarget - the value for the isTarget record component
  • Method Details

    • parse

      public static BindDirective parse(graphql.language.Directive directive)
    • getVar

      public org.apache.jena.sparql.core.Var getVar()
    • parseExpr

      public org.apache.jena.sparql.expr.Expr parseExpr()
    • expand

      public BindDirective expand(org.apache.jena.shared.PrefixMapping pm)
      Specified by:
      expand in interface PrefixExpandable<BindDirective>
    • toDirective

      public graphql.language.Directive toDirective()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • exprStr

      public String exprStr()
      Returns the value of the exprStr record component.
      Returns:
      the value of the exprStr record component
    • varName

      public String varName()
      Returns the value of the varName record component.
      Returns:
      the value of the varName record component
    • isTarget

      public Boolean isTarget()
      Returns the value of the isTarget record component.
      Returns:
      the value of the isTarget record component