org.eclipse.rdf4j.http.protocol.transaction.operations

## Class RemoveNamespaceOperation

- java.lang.Object
- - org.eclipse.rdf4j.http.protocol.transaction.operations.RemoveNamespaceOperation

- All Implemented Interfaces:
    Serializable, TransactionOperation

      public class RemoveNamespaceOperation
      extends Object
      implements TransactionOperation, Serializable

  Operation that removes the namespace for a specific prefix.
  Author:
    Arjohn Kampman, Leo Sauermann
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RemoveNamespaceOperation()`
    `RemoveNamespaceOperation(String prefix)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object other)`
    `void` | `execute(RepositoryConnection con)` Executes this operation on the supplied connection.
    `String` | `getPrefix()`
    `int` | `hashCode()`
    `void` | `setPrefix(String prefix)`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RemoveNamespaceOperation

          public RemoveNamespaceOperation()

    - #### RemoveNamespaceOperation

          public RemoveNamespaceOperation(String prefix)

  - ### Method Detail

    - #### 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 © 2015-2022 Eclipse Foundation. All Rights Reserved.