public class AtomPartCondition extends SimpleValueCondition
A condition that constraints the value of a component of a composite typed atom.
Analogous to the AtomValueCondition
, but operates on properties (parts)
of values.
operator, value
Constructor and Description |
---|
AtomPartCondition() |
AtomPartCondition(String[] dimensionPath,
Object value) |
AtomPartCondition(String[] dimensionPath,
Object value,
ComparisonOperator operator) |
AtomPartCondition(String[] dimensionPath,
Ref<Object> value,
ComparisonOperator operator) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object x) |
String[] |
getDimensionPath() |
int |
hashCode() |
boolean |
satisfies(HyperGraph hg,
HGHandle handle)
Check whether a given
Object satisfies this
query condition. |
void |
setDimensionPath(String[] dimensionPath) |
String |
toString() |
compareToValue, getOperator, getValue, getValueReference, setOperator, setValue, setValueReference
public AtomPartCondition()
public AtomPartCondition(String[] dimensionPath, Object value, ComparisonOperator operator)
public AtomPartCondition(String[] dimensionPath, Ref<Object> value, ComparisonOperator operator)
public String[] getDimensionPath()
public void setDimensionPath(String[] dimensionPath)
public boolean satisfies(HyperGraph hg, HGHandle handle)
HGAtomPredicate
Check whether a given Object
satisfies this
query condition.
hg
- The HyperGraph
instance.handle
- The atom on which to test the query condition.true
if the passed in parameter satisfies
the condition and false
otherwise.public int hashCode()
hashCode
in class SimpleValueCondition
public boolean equals(Object x)
equals
in class SimpleValueCondition
Copyright © 2015. All rights reserved.