|
Neo4j Community | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neo4j.graphmatching.AbstractPatternObject<T>
T
- either Node
or Relationship
.public abstract class AbstractPatternObject<T extends PropertyContainer>
The base class for PatternNode
and PatternRelationship
.
Field Summary | |
---|---|
protected String |
label
|
Method Summary | |
---|---|
void |
addPropertyConstraint(String propertyKey,
ValueMatcher matcher)
Add a constraint to the property with the given key on this pattern object. |
T |
getAssociation()
Get the Node or Relationship currently associated with
this pattern object. |
String |
getLabel()
Get the label of this pattern object. |
Iterable<Map.Entry<String,Collection<ValueMatcher>>> |
getPropertyConstraints()
Get all the constraints on the properties of this pattern object. |
void |
setAssociation(T object)
Associate this object with a particular Node or
Relationship . |
void |
setLabel(String label)
Sets the label of this pattern object; |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String label
Method Detail |
---|
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;
|
Neo4j Community | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |