@Deprecated public class PatternNode extends AbstractPatternObject<Node>
Node.| Modifier and Type | Field and Description |
|---|---|
static PatternGroup |
DEFAULT_PATTERN_GROUP
Deprecated.
The default
PatternGroup. |
| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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
PatternRelationships 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
PatternRelationships associated
with this pattern node. |
String |
toString()
Deprecated.
|
addPropertyConstraint, getAssociation, getLabel, getPropertyConstraints, setAssociation, setLabelpublic static final PatternGroup DEFAULT_PATTERN_GROUP
PatternGroup.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.public PatternGroup getGroup()
PatternGroup of this pattern node.PatternGroup this pattern node belongs to.public Iterable<PatternRelationship> getAllRelationships()
PatternRelationships associated with this pattern node.
This includes both the required and the optional
PatternRelationships.PatternRelationships associated with this pattern
node.public Iterable<PatternRelationship> getRelationships(boolean optional)
PatternRelationships associated
with this pattern node.optional - if true return only the optional
PatternRelationships, else return only the required.PatternRelationships.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.Copyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.