|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.data.trees.patterns.EdgePattern
org.gcube.data.trees.patterns.ManyPattern
public class ManyPattern
A Pattern that matches Nodes with zero or more edges
that have a given label and target nodes that match a given Pattern.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.gcube.data.trees.patterns.EdgePattern |
|---|
EdgePattern.Range |
| Constructor Summary | |
|---|---|
ManyPattern(QName l,
Pattern p)
Creates an instance for a givel label and pattern. |
|
| Method Summary | |
|---|---|
boolean |
matches(List<Edge> edges)
Indicates whether the pattern matches some of the edges in a given list. |
String |
name()
Returns the name of the pattern. |
List<Edge> |
prune(List<Edge> edges)
Returns the edges from a given list which match the pattern. |
EdgePattern.Range |
range()
Returns the EdgePattern.Range of the pattern. |
| Methods inherited from class org.gcube.data.trees.patterns.EdgePattern |
|---|
equals, hashCode, isCondition, label, matchLabels, pattern, setAsCondition, setPattern, toString, unsetAsCondition |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ManyPattern(QName l,
Pattern p)
l - the labelp - the pattern| Method Detail |
|---|
public boolean matches(List<Edge> edges)
edges - the list.
true if it does, false otherwise.
public List<Edge> prune(List<Edge> edges)
throws Exception
edges - the list.
Exception - if an attempt to match an edge fails with an error.public EdgePattern.Range range()
EdgePattern.Range of the pattern.
range in class EdgePatternpublic String name()
name in class EdgePattern
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||