|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.clerezza.rdf.core.sparql.query.impl.SimpleGroupGraphPattern
public class SimpleGroupGraphPattern
This class implements GroupGraphPattern.
| Constructor Summary | |
|---|---|
SimpleGroupGraphPattern()
|
|
| Method Summary | |
|---|---|
void |
addConstraint(Expression constraint)
Adds a constraint to the GroupGraphPattern. |
void |
addGraphPattern(GraphPattern graphPattern)
Adds a GraphPattern to the group. |
void |
addOptionalGraphPattern(GroupGraphPattern optional)
Adds an OptionalGraphPattern to the group consisting of
a main graph pattern and the specified GroupGraphPattern as
the optional pattern. |
void |
addTriplePatterns(Set<TriplePattern> triplePatterns)
If the last GraphPattern added to the group is not a
SimpleBasicGraphPattern, then creates one containing the
specified TriplePatterns and adds it to the group. |
List<Expression> |
getFilter()
|
Set<GraphPattern> |
getGraphPatterns()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleGroupGraphPattern()
| Method Detail |
|---|
public Set<GraphPattern> getGraphPatterns()
getGraphPatterns in interface GroupGraphPatternpublic List<Expression> getFilter()
getFilter in interface GroupGraphPatternpublic void addGraphPattern(GraphPattern graphPattern)
GraphPattern to the group.
graphPattern - the GraphPattern to be added.public void addConstraint(Expression constraint)
GroupGraphPattern.
constraint - an Expression as the constraint to be added.public void addTriplePatterns(Set<TriplePattern> triplePatterns)
GraphPattern added to the group is not a
SimpleBasicGraphPattern, then creates one containing the
specified TriplePatterns and adds it to the group.
Otherwise, adds the specified TriplePatterns to the last
added SimpleBasicGraphPattern in the group.
triplePatterns - a set of TriplePatterns to be added into a
SimpleBasicGraphPattern of the group.public void addOptionalGraphPattern(GroupGraphPattern optional)
OptionalGraphPattern to the group consisting of
a main graph pattern and the specified GroupGraphPattern as
the optional pattern.
The main graph pattern is taken from the last added GraphPattern
in the group, if it exists. Otherwise, the main graph pattern is null.
optional - a GroupGraphPattern as the optional pattern of
an OptionalGraphPattern.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||