Class SetNamespaceOperation
- java.lang.Object
-
- org.eclipse.rdf4j.http.protocol.transaction.operations.SetNamespaceOperation
-
- All Implemented Interfaces:
Serializable,TransactionOperation
public class SetNamespaceOperation extends Object implements TransactionOperation, Serializable
Operation that sets the namespace for a specific prefix.- Author:
- Arjohn Kampman, Leo Sauermann
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SetNamespaceOperation()SetNamespaceOperation(String prefix, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)voidexecute(RepositoryConnection con)Executes this operation on the supplied connection.StringgetName()StringgetPrefix()inthashCode()voidsetName(String name)voidsetPrefix(String prefix)
-
-
-
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:TransactionOperationExecutes this operation on the supplied connection.- Specified by:
executein interfaceTransactionOperation- 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.
-
-