org.aksw.commons.collections.diff
Class ModelDiff
java.lang.Object
org.aksw.commons.collections.diff.Diff<com.hp.hpl.jena.rdf.model.Model>
org.aksw.commons.collections.diff.ModelDiff
- All Implemented Interfaces:
- IDiff<com.hp.hpl.jena.rdf.model.Model>
public class ModelDiff
- extends Diff<com.hp.hpl.jena.rdf.model.Model>
- Author:
- Claus Stadler
Date: 7/12/11
Time: 10:54 PM
|
Constructor Summary |
ModelDiff()
|
ModelDiff(com.hp.hpl.jena.rdf.model.Model added,
com.hp.hpl.jena.rdf.model.Model removed,
com.hp.hpl.jena.rdf.model.Model retained)
|
|
Method Summary |
void |
add(com.hp.hpl.jena.rdf.model.Model model)
|
void |
add(com.hp.hpl.jena.rdf.model.Statement stmt)
Basically adds a statement to the set of added items. |
void |
clear()
|
void |
remove(com.hp.hpl.jena.rdf.model.Model model)
|
void |
remove(com.hp.hpl.jena.rdf.model.Statement stmt)
Adds an item to the set of removed items, unless an equal statement is
contained in the added-set. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModelDiff
public ModelDiff()
ModelDiff
public ModelDiff(com.hp.hpl.jena.rdf.model.Model added,
com.hp.hpl.jena.rdf.model.Model removed,
com.hp.hpl.jena.rdf.model.Model retained)
add
public void add(com.hp.hpl.jena.rdf.model.Statement stmt)
- Basically adds a statement to the set of added items.
However, if the statement is marked as removed, it is
removed from the removal-set, but not added to added-set.
- Parameters:
stmt -
remove
public void remove(com.hp.hpl.jena.rdf.model.Statement stmt)
- Adds an item to the set of removed items, unless an equal statement is
contained in the added-set. In this case the statement is removed from the
added set.
- Parameters:
stmt -
add
public void add(com.hp.hpl.jena.rdf.model.Model model)
remove
public void remove(com.hp.hpl.jena.rdf.model.Model model)
clear
public void clear()
Copyright © 2011. All Rights Reserved.