Interface MutableBindingSet
- All Superinterfaces:
BindingSet, Iterable<Binding>, Serializable
- All Known Implementing Classes:
ArrayBindingSet, FedXPathIteration.ValuePair, MapBindingSet, PathIteration.ValuePair, QueryBindingSet
A BindingSet is a set of named value bindings, which is used a.o. to represent a single query solution. Values are
indexed by name of the binding which typically corresponds to the names of the variables used in the projection of
the orginal query.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddBinding(String name, Value value) Adds a binding to the binding set.voidaddBinding(Binding binding) Adds a binding to the binding set.voidsetBinding(String name, Value value) voidsetBinding(Binding binding) Methods inherited from interface BindingSet
equals, getBinding, getBindingNames, getValue, hasBinding, hashCode, isCompatible, isEmpty, iterator, sizeModifier and TypeMethodDescriptionbooleanCompares a BindingSet object to another object.getBinding(String bindingName) Gets the binding with the specified name from this BindingSet.Gets the names of the bindings in this BindingSet.Gets the value of the binding with the specified name from this BindingSet.booleanhasBinding(String bindingName) Checks whether this BindingSet has a binding with the specified name.inthashCode()The hash code of a binding is defined as the bit-wise XOR of the hash codes of its bindings:default booleanisCompatible(BindingSet other) Check whether this BindingSet is compatible with another.default booleanisEmpty()iterator()Creates an iterator over the bindings in this BindingSet.intsize()Returns the number of bindings in this BindingSet.Methods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
addBinding
-
addBinding
Adds a binding to the binding set.- Parameters:
binding- The binding to add to the binding set.
-
setBinding
-
setBinding
-