com.hp.hpl.jena.sparql.engine.binding
Interface Binding

All Known Subinterfaces:
BindingMap, BindingMutable
All Known Implementing Classes:
Binding0, Binding1, BindingBase, BindingFixed, BindingHashMap, BindingProject, BindingProjectBase, BindingProjectNamed, BindingRoot, BindingWrapped

public interface Binding

Interface encapsulating a mapping from a name to a value.


Method Summary
 boolean contains(Var var)
          Test whether a variable is bound to some object
 Node get(Var var)
          Return the object bound to a variable, or null
 boolean isEmpty()
          Is this an empty binding? No variables.
 int size()
          Number of (var, value) pairs.
 Iterator<Var> vars()
          Iterate over all variables of this binding.
 

Method Detail

vars

Iterator<Var> vars()
Iterate over all variables of this binding.


contains

boolean contains(Var var)
Test whether a variable is bound to some object


get

Node get(Var var)
Return the object bound to a variable, or null


size

int size()
Number of (var, value) pairs.


isEmpty

boolean isEmpty()
Is this an empty binding? No variables.



Licenced under the Apache License, Version 2.0