com.hp.hpl.jena.rdf.query
Class  ResultBinding
java.lang.Object
  |
  +--com.hp.hpl.jena.rdf.query.ResultBinding
- Direct Known Subclasses: 
 - Environment
 
- public class ResultBinding
- extends java.lang.Object
  
 
 
 
| Methods inherited from class java.lang.Object | 
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
ResultBinding
public ResultBinding()
add
public int add(java.lang.String varName,
               Value value)
- Set the parent ResultBinding.
  This is only needed for testing of parts of the query engine
- Parameters:
 varName - String name of the variable to bindvalue - The value to set
 
 
add
public int add(java.lang.String varName,
               RDFNode node)
addTriple
public void addTriple(Statement s)
- Add a triple to the ResultBinding. Assumed to be related to
  the some binding of this result binding.
 
getTriples
public java.util.Set getTriples()
- Get the set of statements that caused this ResultBinding.
  Note: returns a set so there may be less statements in some result bindings
  than in others and there may be less than the number of triple patterns in
  the query.
 
mergeTriples
public Model mergeTriples(Model model)
- Merge the triples that caused this result binding into a model.
- Returns:
 - The model passed in
 
 
 
iterator
public ResultBinding.ResultBindingIterator iterator()
get
public java.lang.Object get(java.lang.String varName)
getValue
public Value getValue(java.lang.String varName)
size
public int size()
check
public void check()
toString
public java.lang.String toString()
- Overrides:
 toString in class java.lang.Object
 
Copyright © 2001 Hewlett-Packard. All Rights Reserved.