org.enhydra.barracuda.core.util.data
Class NameSpace

java.lang.Object
  |
  +--org.enhydra.barracuda.core.util.data.NameSpace

public class NameSpace
extends java.lang.Object

This class defines a NameSpace entity (like a key) that can be used to set/retrieve objects from the ObjectRepository


Field Summary
protected static NameSpace globalNameSpace
           
protected static long lastTime
           
protected  java.lang.String name
           
 
Method Summary
 java.lang.String getName()
          get the name of this NameSpace
static NameSpace globalInstance()
          get the global NameSpace instance
static NameSpace newInstance()
          get a new NameSpace instance using the default name
static NameSpace newInstance(java.lang.String key)
          get a new NameSpace instance using the specified name
 java.lang.String toString()
          return the String represenation of the NameSpace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

globalNameSpace

protected static NameSpace globalNameSpace

lastTime

protected static long lastTime
Method Detail

getName

public java.lang.String getName()
get the name of this NameSpace

Returns:
the name of this NameSpace

toString

public java.lang.String toString()
return the String represenation of the NameSpace

Overrides:
toString in class java.lang.Object
Returns:
the String represenation of the NameSpace

globalInstance

public static NameSpace globalInstance()
get the global NameSpace instance

Returns:
the global NameSpace instance

newInstance

public static NameSpace newInstance()
get a new NameSpace instance using the default name

Returns:
new NameSpace instance using the default name

newInstance

public static NameSpace newInstance(java.lang.String key)
get a new NameSpace instance using the specified name

Parameters:
key - the namespace key
Returns:
the corresponding NameSpace


Copyright © 2001 Enhydra.org