public class DatavaluePropertyBindingHelper extends Object implements BindingHelper
Title: Datavalue Property Binding Helper
Description: Generates bindings based off the given pattern. The predicate must be a datatype property. TODO: Rename to DatavaluedPropertyBindingHelper
Copyright: Copyright (c) 2007
Company: Clark & Parsia, LLC.
| Constructor and Description |
|---|
DatavaluePropertyBindingHelper(ABox abox,
DatavaluedPropertyAtom pattern) |
| Modifier and Type | Method and Description |
|---|---|
Collection<AtomVariable> |
getBindableVars(Collection<AtomVariable> bound)
Returns a set of variables which this binding helper can bind.
|
Collection<AtomVariable> |
getPrerequisiteVars(Collection<AtomVariable> bound)
Returns a set of variables which must be bound before this helper can generate bindings.
|
void |
rebind(VariableBinding newBinding)
Set the incoming binding for this helper.
|
boolean |
selectNextBinding()
Selects the next binding.
|
void |
setCurrentBinding(VariableBinding currentBinding)
Set the variables this pattern uses in the given map.
|
String |
toString() |
public DatavaluePropertyBindingHelper(ABox abox, DatavaluedPropertyAtom pattern)
public Collection<AtomVariable> getBindableVars(Collection<AtomVariable> bound)
BindingHelpergetBindableVars in interface BindingHelperpublic Collection<AtomVariable> getPrerequisiteVars(Collection<AtomVariable> bound)
BindingHelpergetPrerequisiteVars in interface BindingHelperpublic void rebind(VariableBinding newBinding)
rebind in interface BindingHelpernewBinding - Binding map. Copied on input.public boolean selectNextBinding()
selectNextBinding in interface BindingHelperpublic void setCurrentBinding(VariableBinding currentBinding)
setCurrentBinding in interface BindingHelpercurrentBinding - Copyright © 2019. All rights reserved.