T - either Node or Relationship.@Deprecated public abstract class AbstractPatternObject<T extends PropertyContainer> extends Object
PatternNode and PatternRelationship.| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyConstraint(String propertyKey,
ValueMatcher matcher)
Deprecated.
Add a constraint to the property with the given key on this pattern
object.
|
T |
getAssociation()
Deprecated.
Get the
Node or Relationship currently associated with
this pattern object. |
String |
getLabel()
Deprecated.
Get the label of this pattern object.
|
Iterable<Map.Entry<String,Collection<ValueMatcher>>> |
getPropertyConstraints()
Deprecated.
Get all the constraints on the properties of this pattern object.
|
void |
setAssociation(T object)
Deprecated.
Associate this object with a particular
Node or
Relationship. |
void |
setLabel(String label)
Deprecated.
Sets the label of this pattern object;
|
public void addPropertyConstraint(String propertyKey, ValueMatcher matcher)
propertyKey - the key of the property to add a constraint to.matcher - the constraint to add on the property.public void setAssociation(T object)
Node or
Relationship. When a pattern object is associated with an actual
object it will only match that object. Set the association to
null to remove the association.object - the Node or Relationship to associate this
pattern object with.public T getAssociation()
Node or Relationship currently associated with
this pattern object.Node or Relationship associated with this
pattern object.public Iterable<Map.Entry<String,Collection<ValueMatcher>>> getPropertyConstraints()
public String getLabel()
public void setLabel(String label)
label - the label of this pattern object;Copyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.