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

public class BindingWrapped
extends Object
implements Binding

A binding that wraps another.


Constructor Summary
BindingWrapped(Binding other)
           
 
Method Summary
 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 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()

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

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


Licenced under the Apache License, Version 2.0