org.jrdf.graph.global.molecule
Class NullNewMolecule
java.lang.Object
org.jrdf.graph.global.molecule.NullNewMolecule
- All Implemented Interfaces:
- NewMolecule
public final class NullNewMolecule
- extends Object
- implements NewMolecule
NULL_MOLECULE
public static final NewMolecule NULL_MOLECULE
- Null object for molecule.
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