|
Neo4j Community | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neo4j.graphmatching.AbstractPatternObject<Node>
org.neo4j.graphmatching.PatternNode
@Deprecated public class PatternNode
Represents a pattern for matching a Node
.
Field Summary | |
---|---|
static PatternGroup |
DEFAULT_PATTERN_GROUP
Deprecated. The default PatternGroup . |
Fields inherited from class org.neo4j.graphmatching.AbstractPatternObject |
---|
label |
Constructor Summary | |
---|---|
PatternNode()
Deprecated. Create a new pattern node in the default PatternGroup with a
blank label. |
|
PatternNode(PatternGroup group)
Deprecated. Create a new pattern node in the specified PatternGroup with a
blank label. |
|
PatternNode(PatternGroup group,
String label)
Deprecated. Create a new pattern node in the specified PatternGroup with the
specified label. |
|
PatternNode(String label)
Deprecated. Create a new pattern node in the default PatternGroup with the
specified label. |
Method Summary | |
---|---|
PatternRelationship |
createOptionalRelationshipTo(PatternNode otherNode)
Deprecated. Create a directed, optional PatternRelationship from this node,
to the specified other node. |
PatternRelationship |
createOptionalRelationshipTo(PatternNode otherNode,
Direction dir)
Deprecated. Create an optional PatternRelationship between this node and the
specified other node, with the specified direction. |
PatternRelationship |
createOptionalRelationshipTo(PatternNode otherNode,
RelationshipType type)
Deprecated. Create a directed, optional PatternRelationship of the specified
RelationshipType from this node to the specified other node. |
PatternRelationship |
createOptionalRelationshipTo(PatternNode otherNode,
RelationshipType type,
Direction dir)
Deprecated. Create an optional PatternRelationship of the specified
RelationshipType between this node and the specified other node,
with the specified direction. |
PatternRelationship |
createRelationshipTo(PatternNode otherNode)
Deprecated. Create a directed, required PatternRelationship from this node,
to the specified other node. |
PatternRelationship |
createRelationshipTo(PatternNode otherNode,
Direction dir)
Deprecated. Create a required PatternRelationship between this node and the
specified other node, with the specified direction. |
PatternRelationship |
createRelationshipTo(PatternNode otherNode,
RelationshipType type)
Deprecated. Create a directed, required PatternRelationship of the specified
RelationshipType from this node to the specified other node. |
PatternRelationship |
createRelationshipTo(PatternNode otherNode,
RelationshipType type,
Direction dir)
Deprecated. Create a required PatternRelationship of the specified
RelationshipType between this node and the specified other node,
with the specified direction. |
Iterable<PatternRelationship> |
getAllRelationships()
Deprecated. Get all PatternRelationship s associated with this pattern node. |
PatternGroup |
getGroup()
Deprecated. Get the PatternGroup of this pattern node. |
Iterable<PatternRelationship> |
getRelationships(boolean optional)
Deprecated. Get the optional or the required PatternRelationship s associated
with this pattern node. |
String |
toString()
Deprecated. |
Methods inherited from class org.neo4j.graphmatching.AbstractPatternObject |
---|
addPropertyConstraint, getAssociation, getLabel, getPropertyConstraints, setAssociation, setLabel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final PatternGroup DEFAULT_PATTERN_GROUP
PatternGroup
.
Constructor Detail |
---|
public PatternNode()
PatternGroup
with a
blank label.
public PatternNode(String label)
PatternGroup
with the
specified label.
label
- the label of this pattern node.public PatternNode(PatternGroup group)
PatternGroup
with a
blank label.
group
- the PatternGroup
of this pattern node.public PatternNode(PatternGroup group, String label)
PatternGroup
with the
specified label.
group
- the PatternGroup
of this pattern node.label
- the label of this pattern node.Method Detail |
---|
public PatternGroup getGroup()
PatternGroup
of this pattern node.
PatternGroup
this pattern node belongs to.public Iterable<PatternRelationship> getAllRelationships()
PatternRelationship
s associated with this pattern node.
This includes both the required and the optional
PatternRelationship
s.
PatternRelationship
s associated with this pattern
node.public Iterable<PatternRelationship> getRelationships(boolean optional)
PatternRelationship
s associated
with this pattern node.
optional
- if true
return only the optional
PatternRelationship
s, else return only the required.
PatternRelationship
s.public PatternRelationship createRelationshipTo(PatternNode otherNode)
PatternRelationship
from this node,
to the specified other node.
otherNode
- the node at the other end of the relationship.
PatternRelationship
.public PatternRelationship createRelationshipTo(PatternNode otherNode, Direction dir)
PatternRelationship
between this node and the
specified other node, with the specified direction.
otherNode
- the node at the other end of the relationship.dir
- the direction of the relationship. Use
Direction.OUTGOING
to create a relationship from this
node to the other node. Use Direction.INCOMING
to
create a relationship from the other node to this node. Use
Direction.BOTH
to create a relationship where the
direction does not matter.
PatternRelationship
.public PatternRelationship createRelationshipTo(PatternNode otherNode, RelationshipType type)
PatternRelationship
of the specified
RelationshipType
from this node to the specified other node.
otherNode
- the node at the other end of the relationship.type
- the RelationshipType
of the relationship.
PatternRelationship
.public PatternRelationship createRelationshipTo(PatternNode otherNode, RelationshipType type, Direction dir)
PatternRelationship
of the specified
RelationshipType
between this node and the specified other node,
with the specified direction.
otherNode
- the node at the other end of the relationship.type
- the RelationshipType
of the relationship.dir
- the direction of the relationship. Use
Direction.OUTGOING
to create a relationship from this
node to the other node. Use Direction.INCOMING
to
create a relationship from the other node to this node. Use
Direction.BOTH
to create a relationship where the
direction does not matter.
PatternRelationship
.public PatternRelationship createOptionalRelationshipTo(PatternNode otherNode)
PatternRelationship
from this node,
to the specified other node.
otherNode
- the node at the other end of the relationship.
PatternRelationship
.public PatternRelationship createOptionalRelationshipTo(PatternNode otherNode, Direction dir)
PatternRelationship
between this node and the
specified other node, with the specified direction.
otherNode
- the node at the other end of the relationship.dir
- the direction of the relationship. Use
Direction.OUTGOING
to create a relationship from this
node to the other node. Use Direction.INCOMING
to
create a relationship from the other node to this node. Use
Direction.BOTH
to create a relationship where the
direction does not matter.
PatternRelationship
.public PatternRelationship createOptionalRelationshipTo(PatternNode otherNode, RelationshipType type)
PatternRelationship
of the specified
RelationshipType
from this node to the specified other node.
otherNode
- the node at the other end of the relationship.type
- the RelationshipType
of the relationship.
PatternRelationship
.public PatternRelationship createOptionalRelationshipTo(PatternNode otherNode, RelationshipType type, Direction dir)
PatternRelationship
of the specified
RelationshipType
between this node and the specified other node,
with the specified direction.
otherNode
- the node at the other end of the relationship.type
- the RelationshipType
of the relationship.dir
- the direction of the relationship. Use
Direction.OUTGOING
to create a relationship from this
node to the other node. Use Direction.INCOMING
to
create a relationship from the other node to this node. Use
Direction.BOTH
to create a relationship where the
direction does not matter.
PatternRelationship
.public String toString()
toString
in class Object
|
Neo4j Community | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |