org.openrdf.http.protocol.transaction.operations
Class SetNamespaceOperation

java.lang.Object
  extended by org.openrdf.http.protocol.transaction.operations.SetNamespaceOperation
All Implemented Interfaces:
TransactionOperation

public class SetNamespaceOperation
extends Object
implements TransactionOperation

Operation that sets the namespace for a specific prefix.

Author:
Arjohn Kampman

Constructor Summary
SetNamespaceOperation()
           
SetNamespaceOperation(String prefix, String name)
           
 
Method Summary
 boolean equals(Object other)
           
 void execute(RepositoryConnection con)
          Executes this operation on the supplied connection.
 String getName()
           
 String getPrefix()
           
 int hashCode()
           
 void setName(String name)
           
 void setPrefix(String prefix)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetNamespaceOperation

public SetNamespaceOperation()

SetNamespaceOperation

public SetNamespaceOperation(String prefix,
                             String name)
Method Detail

getName

public String getName()

setName

public void setName(String name)

getPrefix

public String getPrefix()

setPrefix

public void setPrefix(String prefix)

execute

public void execute(RepositoryConnection con)
             throws RepositoryException
Description copied from interface: TransactionOperation
Executes this operation on the supplied connection.

Specified by:
execute in interface TransactionOperation
Parameters:
con - The connection the operation should be performed on.
Throws:
RepositoryException - If such an exception is thrown by the connection while executing the operation.

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2001-2008 Aduna. All Rights Reserved.