eu.larkc.core.query
Class TriplePatternQueryImpl

java.lang.Object
  extended by eu.larkc.core.query.TriplePatternQueryImpl
All Implemented Interfaces:
Query, TriplePatternQuery, Resource, java.io.Serializable

public class TriplePatternQueryImpl
extends java.lang.Object
implements TriplePatternQuery

TODO Describe this type briefly. If necessary include a longer description and/or an example.

Author:
?
See Also:
Serialized Form

Constructor Summary
TriplePatternQueryImpl(java.util.Collection<TriplePattern> thePatterns)
          Creates a new triple pattern query using the given patterns.
 
Method Summary
 void add(TriplePattern theTriplePattern)
           
 void clear()
           
 java.util.Collection<TriplePattern> getTriplePatterns()
           
 boolean isEmpty()
           
 void remove(TriplePattern theTriplePattern)
           
 SetOfStatements toRDF()
          Returns the RDF representation of this TriplePatternQuery as a SetOfStatements.
 SetOfStatements toRDF(SetOfStatements data)
          Returns this query represented as a SetOfStatements
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TriplePatternQueryImpl

public TriplePatternQueryImpl(java.util.Collection<TriplePattern> thePatterns)
Creates a new triple pattern query using the given patterns.

Parameters:
thePatterns - patterns to use for this triple pattern query
Method Detail

add

public void add(TriplePattern theTriplePattern)
Specified by:
add in interface TriplePatternQuery

remove

public void remove(TriplePattern theTriplePattern)
Specified by:
remove in interface TriplePatternQuery

clear

public void clear()
Specified by:
clear in interface TriplePatternQuery

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface TriplePatternQuery

getTriplePatterns

public java.util.Collection<TriplePattern> getTriplePatterns()
Specified by:
getTriplePatterns in interface TriplePatternQuery

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toRDF

public SetOfStatements toRDF(SetOfStatements data)
Description copied from interface: Query
Returns this query represented as a SetOfStatements

Specified by:
toRDF in interface Query
Returns:
query represented as a SetOfStatements

toRDF

public SetOfStatements toRDF()
Returns the RDF representation of this TriplePatternQuery as a SetOfStatements.

Specified by:
toRDF in interface Query
Returns:
the RDF representation of this TriplePatternQuery as a SetOfStatements.