org.openrdf.sesame.sailimpl.memory
Class Namespace

java.lang.Object
  extended byorg.openrdf.sesame.sailimpl.memory.Namespace

public class Namespace
extends Object

A namespace representation that contains the name and prefix of a namespace.

Version:
$Revision: 1.3.4.2 $
Author:
Arjohn Kampman

Constructor Summary
Namespace(String prefix, String name, boolean export)
          Constructor.
 
Method Summary
 boolean exported()
           
 String getName()
          Gets the name of Namespace.
 String getPrefix()
          Gets the prefix of Namespace.
 void setExported(boolean export)
           
 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,
                 boolean export)
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

setExported

public void setExported(boolean export)

exported

public boolean exported()

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.