com.clarkparsia.pellet.api.query
Interface Binding

All Superinterfaces:
com.google.common.base.Function<Variable,Term>

public interface Binding
extends com.google.common.base.Function<Variable,Term>

Represents a mapping from variables to terms.

Author:
Evren Sirin

Method Summary
 Term apply(Variable var)
          Returns the binding value for the given variable or null if the binding does not contain a mapping for the given variable.
 boolean contains(Variable var)
          Return true if the binding contains a mapping for the given variable.
 boolean isEmpty()
          Returns true if no variable bindings are contained in this
 int size()
          Returns the number of variables contained in this binding.
 java.util.Iterator<Variable> vars()
          Returns all the variables contained in this binding
 
Methods inherited from interface com.google.common.base.Function
equals
 

Method Detail

apply

Term apply(Variable var)
Returns the binding value for the given variable or null if the binding does not contain a mapping for the given variable.

Specified by:
apply in interface com.google.common.base.Function<Variable,Term>

contains

boolean contains(Variable var)
Return true if the binding contains a mapping for the given variable.


vars

java.util.Iterator<Variable> vars()
Returns all the variables contained in this binding


isEmpty

boolean isEmpty()
Returns true if no variable bindings are contained in this


size

int size()
Returns the number of variables contained in this binding.



Copyright 2010 Clark & Parsia, LLC. All Rights Reserved.