com.clarkparsia.pellet.sparqldl.model
Interface ResultBinding

All Known Implementing Classes:
ResultBindingImpl

public interface ResultBinding

Title: Result Binding Interface

Description:

Copyright: Copyright (c) 2007

Company: Clark & Parsia, LLC.

Author:
Petr Kremen

Method Summary
 ResultBinding duplicate()
          Clones the binding.
 java.util.Set<aterm.ATermAppl> getAllVariables()
          Returns all variables in this binding.
 aterm.ATermAppl getValue(aterm.ATermAppl var)
          Gets value for given variable.
 boolean isBound(aterm.ATermAppl var)
          Checks whether given variable is bound.
 boolean isEmpty()
          Checks for emptiness of the binding.
 void setValue(aterm.ATermAppl var, aterm.ATermAppl binding)
          Sets one variable binding.
 void setValues(ResultBinding bindings)
          Sets all variable bindings according to the bindings.
 

Method Detail

getValue

aterm.ATermAppl getValue(aterm.ATermAppl var)
Gets value for given variable.

Parameters:
variable - for which return the value
Returns:
binding for the variable

setValues

void setValues(ResultBinding bindings)
Sets all variable bindings according to the bindings.

Parameters:
bindings - to be set.

setValue

void setValue(aterm.ATermAppl var,
              aterm.ATermAppl binding)
Sets one variable binding.

Parameters:
bindings - to be set.
var - variable to set.

isBound

boolean isBound(aterm.ATermAppl var)
Checks whether given variable is bound.

Parameters:
var - variable to determine.
Returns:
true if the given variable is bound.

getAllVariables

java.util.Set<aterm.ATermAppl> getAllVariables()
Returns all variables in this binding.

Returns:
set of all variables.

isEmpty

boolean isEmpty()
Checks for emptiness of the binding.

Returns:
true if the binding doesn't contain a variable.

duplicate

ResultBinding duplicate()
Clones the binding.

Returns:
new copy of the binding.


Copyright © 2004 Evren Sirin. All Rights Reserved.