|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Molecule
A Collection all the statements of a particular group.
Method Summary | |
---|---|
Molecule |
add(Set<Triple> triples)
Adds a set of triples to this molecule. |
Molecule |
add(Triple triple)
Adds the given triple to the molecule. |
boolean |
contains(SubjectNode subject,
PredicateNode predicate,
ObjectNode object)
Checks to see if the given triple exists within the molecule. |
boolean |
contains(Triple triple)
Checks to see if the given triple exists within the molecule. |
Triple |
getHeadTriple()
Returns the head triple of the molecule. |
SortedSet<Triple> |
getTriples()
Returns all triples in the molecule. |
Iterator<Triple> |
iterator()
Returns an iterator for the set of triples which make up this molecule. |
Molecule |
remove(Triple triple)
Removes a triple from the molecule. |
int |
size()
Number of triples contained in the molecule. |
Iterator<Triple> |
tailTriples()
An iterator that contains tail triples i.e. all triples except head triple. |
Method Detail |
---|
boolean contains(Triple triple)
triple
- the triple to search for - does not currently support ANY_SUBJECT, etc.
boolean contains(SubjectNode subject, PredicateNode predicate, ObjectNode object)
subject
- the subject to search for - does not currently support ANY_SUBJECT.predicate
- the predicate to search for - does not currently support ANY_PREDICATE.object
- the object to search for - does not currently support ANY_OBJECT.
Iterator<Triple> iterator()
Molecule add(Triple triple)
triple
- the triple to add.
Molecule add(Set<Triple> triples)
triples
- the set of triples.
int size()
Triple getHeadTriple()
Iterator<Triple> tailTriples()
Molecule remove(Triple triple)
triple
- the triple to remove.
SortedSet<Triple> getTriples()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |