com.hp.hpl.jena.sparql.engine.binding
Class BindingWrapped

java.lang.Object
  extended by com.hp.hpl.jena.sparql.engine.binding.BindingWrapped
All Implemented Interfaces:
Binding
Direct Known Subclasses:
BindingFixed, BindingNamedVar

public class BindingWrapped
extends Object
implements Binding

A binding that wraps another.


Constructor Summary
BindingWrapped(Binding other)
           
 
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 other)
           
 boolean contains(Var var)
          Test whether a variable is bound to some object
 boolean equals(Object other)
           
 com.hp.hpl.jena.graph.Node get(Var var)
          Return the object bound to a variable, or null
 Binding getParent()
           
 Binding getWrapped()
           
 int hashCode()
           
 boolean isEmpty()
          Is this an empty binding? No variables.
 int size()
          Number of (var, value) pairs.
 String toString()
           
 Iterator<Var> vars()
          Iterate over all variables of this binding.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BindingWrapped

public BindingWrapped(Binding other)
Method Detail

getWrapped

public Binding getWrapped()

add

public void add(Var var,
                com.hp.hpl.jena.graph.Node node)
Description copied from interface: Binding
Add a (var, value) pair- the value must not be null

Specified by:
add in interface Binding

addAll

public void addAll(Binding other)
Specified by:
addAll in interface Binding

contains

public boolean contains(Var var)
Description copied from interface: Binding
Test whether a variable is bound to some object

Specified by:
contains in interface Binding

get

public com.hp.hpl.jena.graph.Node get(Var var)
Description copied from interface: Binding
Return the object bound to a variable, or null

Specified by:
get in interface Binding

getParent

public Binding getParent()
Specified by:
getParent in interface Binding

vars

public Iterator<Var> vars()
Description copied from interface: Binding
Iterate over all variables of this binding.

Specified by:
vars in interface Binding

toString

public String toString()
Overrides:
toString in class Object

size

public int size()
Description copied from interface: Binding
Number of (var, value) pairs.

Specified by:
size in interface Binding

isEmpty

public boolean isEmpty()
Description copied from interface: Binding
Is this an empty binding? No variables.

Specified by:
isEmpty in interface Binding

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object


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