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

All Known Implementing Classes:
Binding0, Binding1, BindingBase, BindingFixed, BindingMap, BindingNamedVar, BindingProject, BindingRoot, BindingWrapped

public interface Binding

Interface encapsulating a mapping from a name to a value.


Method Summary
 void add(Var var, com.hp.hpl.jena.graph.Node node)
          Add a (var, value) pair- the value must not be null
 void addAll(Binding key)
           
 boolean contains(Var var)
          Test whether a variable is bound to some object
 com.hp.hpl.jena.graph.Node get(Var var)
          Return the object bound to a variable, or null
 Binding getParent()
           
 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

getParent

Binding getParent()

add

void add(Var var,
         com.hp.hpl.jena.graph.Node node)
Add a (var, value) pair- the value must not be null


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

com.hp.hpl.jena.graph.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.


addAll

void addAll(Binding key)


Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010 Epimorphics Ltd.