public class RelationPattern
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) RelationDirection[] |
directions
A map from RelationType (indexes) to Direction objects
|
| Constructor and Description |
|---|
RelationPattern(RelationDirection defaultDirection)
Creates a new pattern using the same direction for every relation kind
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRelation(RelationType relationType,
RelationDirection direction)
Adds, eventually merging, a direction for the specified relation type
|
boolean |
matchesOne(RelationPattern relationPattern)
Returns true if this patterns matches at least the direction of one
of the relations in the other relation patterns.
|
RelationDirection[] directions
public RelationPattern(RelationDirection defaultDirection)
defaultDirection - The direction used to initialize this patternpublic void addRelation(RelationType relationType, RelationDirection direction)
relationType - direction - public boolean matchesOne(RelationPattern relationPattern)
relationPattern -