org.ontoware.rdf2go.model.impl
Class DiffImpl
java.lang.Object
org.ontoware.rdf2go.model.impl.AbstractModelWriter
org.ontoware.rdf2go.model.impl.AbstractModelAddRemove
org.ontoware.rdf2go.model.impl.DiffImpl
- All Implemented Interfaces:
- java.lang.Iterable<Statement>, ClosableIterable<Statement>, Diff, DiffReader, Lockable, ModelAddRemove, ModelWriter
public class DiffImpl
- extends AbstractModelAddRemove
- implements Diff
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
DiffImpl
public DiffImpl()
DiffImpl
public DiffImpl(java.util.Iterator<? extends Statement> added,
java.util.Iterator<? extends Statement> removed)
create
public Diff create(java.util.Iterator<? extends Statement> added,
java.util.Iterator<? extends Statement> removed)
- Specified by:
create in interface Diff
getAdded
public java.lang.Iterable<Statement> getAdded()
- Specified by:
getAdded in interface DiffReader
getRemoved
public java.lang.Iterable<Statement> getRemoved()
- Specified by:
getRemoved in interface DiffReader
removeStatement
public void removeStatement(Statement statement)
throws ModelRuntimeException
- Specified by:
removeStatement in interface ModelAddRemove- Overrides:
removeStatement in class AbstractModelAddRemove
- Throws:
ModelRuntimeException
removeAll
public void removeAll(java.util.Iterator<? extends Statement> other)
throws ModelRuntimeException
- Specified by:
removeAll in interface ModelAddRemove- Overrides:
removeAll in class AbstractModelAddRemove
- Throws:
ModelRuntimeException
removeAll
public void removeAll()
throws ModelRuntimeException
- Specified by:
removeAll in interface ModelAddRemove- Overrides:
removeAll in class AbstractModelAddRemove
- Throws:
ModelRuntimeException
iterator
public ClosableIterator<Statement> iterator()
- Specified by:
iterator in interface java.lang.Iterable<Statement>- Specified by:
iterator in interface ClosableIterable<Statement>
addStatement
public void addStatement(Statement statement)
throws ModelRuntimeException
- Specified by:
addStatement in interface ModelWriter- Overrides:
addStatement in class AbstractModelWriter
- Throws:
ModelRuntimeException
addAll
public void addAll(java.util.Iterator<? extends Statement> other)
throws ModelRuntimeException
- Specified by:
addAll in interface ModelWriter- Overrides:
addAll in class AbstractModelWriter
- Throws:
ModelRuntimeException
getDiff
public Diff getDiff(java.util.Iterator<? extends Statement> statements)
throws ModelRuntimeException
- Specified by:
getDiff in interface ModelAddRemove
- Throws:
ModelRuntimeException
update
public void update(DiffReader diff)
throws ModelRuntimeException
- Specified by:
update in interface ModelAddRemove- Overrides:
update in class AbstractModelAddRemove
- Throws:
ModelRuntimeException
lock
public void lock()
throws LockException
- Specified by:
lock in interface Lockable
- Throws:
LockException
isLocked
public boolean isLocked()
- Specified by:
isLocked in interface Lockable
unlock
public void unlock()
- Specified by:
unlock in interface Lockable
addStatement
public void addStatement(Resource subject,
URI predicate,
Node object)
throws ModelRuntimeException
- Specified by:
addStatement in interface ModelWriter- Specified by:
addStatement in class AbstractModelAddRemove
- Throws:
ModelRuntimeException
removeStatement
public void removeStatement(Resource subject,
URI predicate,
Node object)
throws ModelRuntimeException
- Specified by:
removeStatement in interface ModelAddRemove- Specified by:
removeStatement in class AbstractModelAddRemove
- Throws:
ModelRuntimeException
dump
public void dump()
- Specified by:
dump in interface Diff
equals
public static final boolean equals(java.util.Set<Statement> a,
java.util.Set<Statement> b)
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
Copyright © 2005-2008 FZI - Forschungszentrum Informatik | Karlsruhe | Germany. All Rights Reserved.