org.jrdf.graph.global.molecule
Class NullNewMolecule

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

public final class NullNewMolecule
extends Object
implements NewMolecule


Field Summary
static NewMolecule NULL_MOLECULE
          Null object for molecule.
 
Method Summary
 NewMolecule add(NewMolecule childMolecule)
           
 NewMolecule add(Triple triple)
           
 NewMolecule add(Triple triple, NewMolecule newMolecule)
           
 NewMolecule add(Triple triple, Triple newTriple)
           
 boolean contains(NewMolecule molecule)
           
 boolean contains(Triple triple)
           
 Triple getHeadTriple()
           
 Iterator<Triple> getRootTriples()
           
 Set<NewMolecule> getSubMolecules(Triple rootTriple)
           
 void remove(Triple triple)
           
 int size()
           
 void specialAdd(NewMolecule molecule)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL_MOLECULE

public static final NewMolecule NULL_MOLECULE
Null object for molecule.

Method Detail

getHeadTriple

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

contains

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

size

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

add

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

add

public NewMolecule add(NewMolecule childMolecule)
Specified by:
add 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

add

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

contains

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

remove

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

specialAdd

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

toString

public String toString()
Overrides:
toString in class Object