org.openrdf.elmo.sesame.helpers
Class PropertyChanger

java.lang.Object
  extended by org.openrdf.elmo.sesame.helpers.PropertyChanger

public class PropertyChanger
extends Object

Performs the adding and removing of statements from the repository.

Author:
James Leigh

Constructor Summary
PropertyChanger(URI pred)
           
PropertyChanger(URI pred, Set<? extends Value> oneOf)
           
 
Method Summary
 void add(ContextAwareConnection conn, Resource subj, Value obj)
           
 boolean equals(Object obj)
           
 URI getPredicate()
           
 int hashCode()
           
 void remove(ContextAwareConnection conn, Resource subj, Value obj)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyChanger

public PropertyChanger(URI pred)

PropertyChanger

public PropertyChanger(URI pred,
                       Set<? extends Value> oneOf)
Method Detail

getPredicate

public URI getPredicate()

add

public void add(ContextAwareConnection conn,
                Resource subj,
                Value obj)
         throws RepositoryException
Throws:
RepositoryException

remove

public void remove(ContextAwareConnection conn,
                   Resource subj,
                   Value obj)
            throws RepositoryException
Throws:
RepositoryException

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2004-2008 Aduna. All Rights Reserved.