com.generationjava.namespace
Class AbstractNamespace

java.lang.Object
  |
  +--com.generationjava.namespace.AbstractNamespace
All Implemented Interfaces:
Namespace, java.io.Serializable
Direct Known Subclasses:
SimpleNamespace

public abstract class AbstractNamespace
extends java.lang.Object
implements Namespace

Abstract representation of an namespace.

See Also:
Serialized Form

Constructor Summary
AbstractNamespace()
           
 
Method Summary
abstract  java.lang.Object getValue(java.lang.String name)
          Get the value in this namespace under the specified name.
 boolean hasValue(java.lang.String name)
          Does the namespace have a value under the specified name.
abstract  java.util.Iterator iterateNames()
          The names in a Namespace
abstract  void putValue(java.lang.String name, java.lang.Object info)
          Put a value in this namespace, under the specified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractNamespace

public AbstractNamespace()
Method Detail

getValue

public abstract java.lang.Object getValue(java.lang.String name)
Get the value in this namespace under the specified name.

Specified by:
getValue in interface Namespace

hasValue

public boolean hasValue(java.lang.String name)
Does the namespace have a value under the specified name.

Specified by:
hasValue in interface Namespace

putValue

public abstract void putValue(java.lang.String name,
                              java.lang.Object info)
Put a value in this namespace, under the specified name.

Specified by:
putValue in interface Namespace

iterateNames

public abstract java.util.Iterator iterateNames()
The names in a Namespace

Specified by:
iterateNames in interface Namespace


Copyright © 2000-2003 OSJava. All Rights Reserved.