Class PropertyCondition
- java.lang.Object
-
- com.gdblab.pathAlgebra.expressions.PropertyCondition
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PropertyCondition>
public class PropertyCondition extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<PropertyCondition>
Property equality conditions: node(i).prop = v- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Stringpropertystatic NamePROPERTYName of thecom.gdblab.pathAlgebra.expressions.PropertyCondition.propertyfield.PathElementtargetstatic NameTARGETName of thecom.gdblab.pathAlgebra.expressions.PropertyCondition.targetfield.static NameTYPE_Name of thecom.gdblab.pathAlgebra.expressions.PropertyConditiontype.LiteralValuevaluestatic NameVALUEName of thecom.gdblab.pathAlgebra.expressions.PropertyCondition.valuefield.
-
Constructor Summary
Constructors Constructor Description PropertyCondition(PathElement target, java.lang.String property, LiteralValue value)Constructs an immutablePropertyCondition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(PropertyCondition other)booleanequals(java.lang.Object other)inthashCode()PropertyConditionwithProperty(java.lang.String property)Returns a copy of thisPropertyConditionwithpropertyreplaced.PropertyConditionwithTarget(PathElement target)Returns a copy of thisPropertyConditionwithtargetreplaced.PropertyConditionwithValue(LiteralValue value)Returns a copy of thisPropertyConditionwithvaluereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thecom.gdblab.pathAlgebra.expressions.PropertyConditiontype.
-
TARGET
public static final Name TARGET
Name of thecom.gdblab.pathAlgebra.expressions.PropertyCondition.targetfield.
-
PROPERTY
public static final Name PROPERTY
Name of thecom.gdblab.pathAlgebra.expressions.PropertyCondition.propertyfield.
-
VALUE
public static final Name VALUE
Name of thecom.gdblab.pathAlgebra.expressions.PropertyCondition.valuefield.
-
target
public final PathElement target
-
property
public final java.lang.String property
-
value
public final LiteralValue value
-
-
Constructor Detail
-
PropertyCondition
public PropertyCondition(PathElement target, java.lang.String property, LiteralValue value)
Constructs an immutablePropertyCondition.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(PropertyCondition other)
- Specified by:
compareToin interfacejava.lang.Comparable<PropertyCondition>
-
withTarget
public PropertyCondition withTarget(PathElement target)
Returns a copy of thisPropertyConditionwithtargetreplaced.
-
withProperty
public PropertyCondition withProperty(java.lang.String property)
Returns a copy of thisPropertyConditionwithpropertyreplaced.
-
withValue
public PropertyCondition withValue(LiteralValue value)
Returns a copy of thisPropertyConditionwithvaluereplaced.
-
-