org.openrdf.sesame.sail
Class Namespace

java.lang.Object
  extended byorg.openrdf.sesame.sail.Namespace
Direct Known Subclasses:
RdbmsNamespace

public class Namespace
extends Object

Object that represents a Namespace.

Version:
$Revision: 1.3.4.2 $
Author:
Arjohn Kampman, Jeen Broekstra

Constructor Summary
Namespace(String prefix, String name)
          Constructor.
 
Method Summary
 String getName()
          Gets the name of Namespace.
 String getPrefix()
          Gets the prefix of Namespace.
 void setPrefix(String prefix)
          Sets the prefix of Namespace.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Namespace

public Namespace(String prefix,
                 String name)
Constructor.

Parameters:
prefix - prefix of namespace
name - name namespace
Method Detail

getPrefix

public String getPrefix()
Gets the prefix of Namespace.

Returns:
prefix of Namespace

setPrefix

public void setPrefix(String prefix)
Sets the prefix of Namespace.

Parameters:
prefix - The (new) prefix for this namespace.

getName

public String getName()
Gets the name of Namespace.

Returns:
name of Namespace

toString

public String toString()
Returns a string representation of the object.

Returns:
String representation of Namespace


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.