01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 1997-2007.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.http.protocol.transaction.operations;
07:
08: import org.openrdf.repository.RepositoryConnection;
09: import org.openrdf.repository.RepositoryException;
10:
11: /**
12: * Operation that removes all namespace declarations.
13: *
14: * @author Arjohn Kampman
15: */
16: public class ClearNamespacesOperation implements TransactionOperation {
17:
18: public ClearNamespacesOperation() {
19: }
20:
21: public void execute(RepositoryConnection con)
22: throws RepositoryException {
23: con.clearNamespaces();
24: }
25:
26: @Override
27: public boolean equals(Object other) {
28: return other instanceof ClearNamespacesOperation;
29: }
30:
31: @Override
32: public int hashCode() {
33: return 101;
34: }
35: }
|