Class SetNamespaceOperation
- java.lang.Object
-
- org.eclipse.rdf4j.http.protocol.transaction.operations.SetNamespaceOperation
-
- All Implemented Interfaces:
java.io.Serializable
,TransactionOperation
public class SetNamespaceOperation extends java.lang.Object implements TransactionOperation, java.io.Serializable
Operation that sets the namespace for a specific prefix.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
name
private java.lang.String
prefix
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description SetNamespaceOperation()
SetNamespaceOperation(java.lang.String prefix, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
void
execute(RepositoryConnection con)
Executes this operation on the supplied connection.java.lang.String
getName()
java.lang.String
getPrefix()
int
hashCode()
void
setName(java.lang.String name)
void
setPrefix(java.lang.String prefix)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
prefix
private java.lang.String prefix
-
name
private java.lang.String name
-
-
Method Detail
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getPrefix
public java.lang.String getPrefix()
-
setPrefix
public void setPrefix(java.lang.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 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.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-