org.jrdf.graph.global.molecule
Class HeadMoleculeImpl

java.lang.Object
  extended by org.jrdf.graph.global.molecule.HeadMoleculeImpl
All Implemented Interfaces:
NewMolecule

public class HeadMoleculeImpl
extends Object
implements NewMolecule


Constructor Summary
HeadMoleculeImpl(Triple triple)
           
 
Method Summary
 NewMolecule add(NewMolecule childMolecule)
           
 Molecule add(Set<Triple> triples)
           
 NewMolecule add(Triple triple)
           
 NewMolecule add(Triple triple, NewMolecule newMolecule)
           
 NewMolecule add(Triple triple, Triple newTriple)
           
 boolean contains(NewMolecule molecule)
           
 boolean contains(SubjectNode subject, PredicateNode predicate, ObjectNode object)
           
 boolean contains(Triple triple)
           
 boolean equals(Object obj)
           
 Iterator<Triple> find(Triple triple)
           
 Triple getHeadTriple()
           
 Iterator<Triple> getRootTriples()
           
 Set<NewMolecule> getSubMolecules(Triple rootTriple)
           
 SortedSet<Triple> getTriples()
           
 int hashCode()
           
 Iterator<Triple> iterator()
           
 Iterator<Molecule> moleculeIterator()
           
 void remove(Triple triple)
           
 int size()
           
 void specialAdd(NewMolecule molecule)
           
 Iterator<Triple> tailTriples()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HeadMoleculeImpl

public HeadMoleculeImpl(Triple triple)
Method Detail

getHeadTriple

public Triple getHeadTriple()
Specified by:
getHeadTriple in interface NewMolecule

find

public Iterator<Triple> find(Triple triple)

contains

public boolean contains(Triple triple)
Specified by:
contains in interface NewMolecule

iterator

public Iterator<Triple> iterator()

moleculeIterator

public Iterator<Molecule> moleculeIterator()

add

public NewMolecule add(Triple triple)
Specified by:
add in interface NewMolecule

add

public NewMolecule add(NewMolecule childMolecule)
Specified by:
add in interface NewMolecule

add

public Molecule add(Set<Triple> triples)

size

public int size()
Specified by:
size in interface NewMolecule

contains

public boolean contains(SubjectNode subject,
                        PredicateNode predicate,
                        ObjectNode object)

tailTriples

public Iterator<Triple> tailTriples()

remove

public void remove(Triple triple)
Specified by:
remove in interface NewMolecule

getTriples

public SortedSet<Triple> getTriples()

contains

public boolean contains(NewMolecule molecule)
Specified by:
contains in interface NewMolecule

getRootTriples

public Iterator<Triple> getRootTriples()
Specified by:
getRootTriples in interface NewMolecule

getSubMolecules

public Set<NewMolecule> getSubMolecules(Triple rootTriple)
Specified by:
getSubMolecules in interface NewMolecule

add

public NewMolecule add(Triple triple,
                       NewMolecule newMolecule)
Specified by:
add in interface NewMolecule

specialAdd

public void specialAdd(NewMolecule molecule)
Specified by:
specialAdd in interface NewMolecule

add

public NewMolecule add(Triple triple,
                       Triple newTriple)
Specified by:
add in interface NewMolecule

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object