de.derivo.sparqldlapi
Interface QueryBinding

All Superinterfaces:
java.lang.Cloneable

public interface QueryBinding
extends java.lang.Cloneable

A QueryBinding is one single entry in the result set of an executed query. A binding consists of a mapping from variables to concrete values (e.g. URIs or literals).

Author:
Mario Volke

Method Summary
 QueryArgument get(QueryArgument arg)
          Get the binding of a query argument.
 java.util.Set<QueryArgument> getBoundArgs()
          Get all bound arguments.
 boolean isBound(QueryArgument arg)
          Check whether an argument is bound.
 boolean isEmpty()
          Check whether there are any bindings.
 int size()
          Get the number of bound arguments.
 

Method Detail

get

QueryArgument get(QueryArgument arg)
Get the binding of a query argument.

Parameters:
arg -
Returns:
Null if argument is not bound, yet, or the binding otherwise.

getBoundArgs

java.util.Set<QueryArgument> getBoundArgs()
Get all bound arguments.

Returns:
A set of bound arguments (contains usually only variables).

isBound

boolean isBound(QueryArgument arg)
Check whether an argument is bound.

Parameters:
arg -
Returns:
True if the argument is bound.

size

int size()
Get the number of bound arguments.

Returns:
The number of bound arguments.

isEmpty

boolean isEmpty()
Check whether there are any bindings.

Returns:
True if there are no bindings at all.