|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nsdl.mptstore.query.component.GraphQuery
public class GraphQuery
Representation of an RDF graph query.
A GraphQuery contains a sets of required and optional
QueryElement
components that form a single graph query. Since a
GraphQuery is also a QueryElement, graph queries can be arbitrarily
nested.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.nsdl.mptstore.query.component.QueryElement |
---|
QueryElement.Type |
Constructor Summary | |
---|---|
GraphQuery()
|
Method Summary | |
---|---|
void |
addOptional(QueryElement e)
Add an optional query element. |
void |
addRequired(QueryElement e)
Add a required query element. |
java.util.List<QueryElement> |
getOptional()
Get the optional query elements. |
java.util.List<QueryElement> |
getRequired()
Get the required query elements. |
QueryElement.Type |
getType()
Get the type of this element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphQuery()
Method Detail |
---|
public QueryElement.Type getType()
getType
in interface QueryElement
public void addRequired(QueryElement e)
e
- the element to add.public void addOptional(QueryElement e)
e
- the element to add.public java.util.List<QueryElement> getRequired()
public java.util.List<QueryElement> getOptional()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |