Neo4j Community

org.neo4j.graphmatching
Class PatternNode

java.lang.Object
  extended by org.neo4j.graphmatching.AbstractPatternObject<Node>
      extended by org.neo4j.graphmatching.PatternNode

Deprecated.

@Deprecated
public class PatternNode
extends AbstractPatternObject<Node>

Represents a pattern for matching a Node.


Field Summary
static PatternGroup DEFAULT_PATTERN_GROUP
          Deprecated. The default PatternGroup.
 
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 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.  
 
Methods inherited from class org.neo4j.graphmatching.AbstractPatternObject
addPropertyConstraint, getAssociation, getLabel, getPropertyConstraints, setAssociation, setLabel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_PATTERN_GROUP

public static final PatternGroup DEFAULT_PATTERN_GROUP
Deprecated. 
The default PatternGroup.

Constructor Detail

PatternNode

public PatternNode()
Deprecated. 
Create a new pattern node in the default PatternGroup with a blank label.


PatternNode

public PatternNode(String label)
Deprecated. 
Create a new pattern node in the default PatternGroup with the specified label.

Parameters:
label - the label of this pattern node.

PatternNode

public PatternNode(PatternGroup group)
Deprecated. 
Create a new pattern node in the specified PatternGroup with a blank label.

Parameters:
group - the PatternGroup of this pattern node.

PatternNode

public PatternNode(PatternGroup group,
                   String label)
Deprecated. 
Create a new pattern node in the specified PatternGroup with the specified label.

Parameters:
group - the PatternGroup of this pattern node.
label - the label of this pattern node.
Method Detail

getGroup

public PatternGroup getGroup()
Deprecated. 
Get the PatternGroup of this pattern node.

Returns:
the PatternGroup this pattern node belongs to.

getAllRelationships

public Iterable<PatternRelationship> getAllRelationships()
Deprecated. 
Get all PatternRelationships associated with this pattern node. This includes both the required and the optional PatternRelationships.

Returns:
the PatternRelationships associated with this pattern node.

getRelationships

public Iterable<PatternRelationship> getRelationships(boolean optional)
Deprecated. 
Get the optional or the required PatternRelationships associated with this pattern node.

Parameters:
optional - if true return only the optional PatternRelationships, else return only the required.
Returns:
the set of optional or required PatternRelationships.

createRelationshipTo

public PatternRelationship createRelationshipTo(PatternNode otherNode)
Deprecated. 
Create a directed, required PatternRelationship from this node, to the specified other node.

Parameters:
otherNode - the node at the other end of the relationship.
Returns:
the newly created PatternRelationship.

createRelationshipTo

public PatternRelationship createRelationshipTo(PatternNode otherNode,
                                                Direction dir)
Deprecated. 
Create a required PatternRelationship between this node and the specified other node, with the specified direction.

Parameters:
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.
Returns:
the newly created PatternRelationship.

createRelationshipTo

public PatternRelationship createRelationshipTo(PatternNode otherNode,
                                                RelationshipType type)
Deprecated. 
Create a directed, required PatternRelationship of the specified RelationshipType from this node to the specified other node.

Parameters:
otherNode - the node at the other end of the relationship.
type - the RelationshipType of the relationship.
Returns:
the newly created PatternRelationship.

createRelationshipTo

public 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.

Parameters:
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.
Returns:
the newly created PatternRelationship.

createOptionalRelationshipTo

public PatternRelationship createOptionalRelationshipTo(PatternNode otherNode)
Deprecated. 
Create a directed, optional PatternRelationship from this node, to the specified other node.

Parameters:
otherNode - the node at the other end of the relationship.
Returns:
the newly created PatternRelationship.

createOptionalRelationshipTo

public PatternRelationship createOptionalRelationshipTo(PatternNode otherNode,
                                                        Direction dir)
Deprecated. 
Create an optional PatternRelationship between this node and the specified other node, with the specified direction.

Parameters:
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.
Returns:
the newly created PatternRelationship.

createOptionalRelationshipTo

public PatternRelationship createOptionalRelationshipTo(PatternNode otherNode,
                                                        RelationshipType type)
Deprecated. 
Create a directed, optional PatternRelationship of the specified RelationshipType from this node to the specified other node.

Parameters:
otherNode - the node at the other end of the relationship.
type - the RelationshipType of the relationship.
Returns:
the newly created PatternRelationship.

createOptionalRelationshipTo

public 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.

Parameters:
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.
Returns:
the newly created PatternRelationship.

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object

Neo4j Community

Copyright © 2002-2014 The Neo4j Graph Database Project. All Rights Reserved.