equip.data
Class DictionaryImpl

java.lang.Object
  extended byequip.runtime.Object
      extended byequip.runtime.ValueBase
          extended byequip.data.Dictionary
              extended byequip.data.DictionaryImpl
All Implemented Interfaces:
java.lang.Cloneable

public class DictionaryImpl
extends Dictionary

Default implementation of IDL-defined abstract class Dictionary


Field Summary
 
Fields inherited from class equip.data.Dictionary
entries
 
Constructor Summary
DictionaryImpl()
          Default no-arg constructor
DictionaryImpl(java.util.Hashtable h)
          create from a Hashtable
 
Method Summary
 boolean _matches_helper(Dictionary c)
          Custom match test helper - if we have an entry, it must; if ours is non-null it must match theirs
 boolean containsKey(java.lang.String name)
          has a name?
 ValueBase get(java.lang.String name)
          get value or null
 java.util.Hashtable getHashtable()
          return a Hashtable of the entries
static void main(java.lang.String[] args)
          test
protected  void print(java.io.PrintStream out, java.lang.String msg)
           
 ValueBase put(java.lang.String name, ValueBase value)
          (re)place entry, returning old value or null
 ValueBase remove(java.lang.String name)
          remote an entry, return old value or null
 
Methods inherited from class equip.data.Dictionary
_equals_helper, equals, getModuleName, matches, readObject, writeObject
 
Methods inherited from class equip.runtime.ValueBase
_equals_helper, _matches_helper, clone
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DictionaryImpl

public DictionaryImpl()
Default no-arg constructor


DictionaryImpl

public DictionaryImpl(java.util.Hashtable h)
create from a Hashtable

Method Detail

put

public ValueBase put(java.lang.String name,
                     ValueBase value)
(re)place entry, returning old value or null


get

public ValueBase get(java.lang.String name)
get value or null


containsKey

public boolean containsKey(java.lang.String name)
has a name?


remove

public ValueBase remove(java.lang.String name)
remote an entry, return old value or null


getHashtable

public java.util.Hashtable getHashtable()
return a Hashtable of the entries


_matches_helper

public boolean _matches_helper(Dictionary c)
Custom match test helper - if we have an entry, it must; if ours is non-null it must match theirs

Overrides:
_matches_helper in class Dictionary

print

protected void print(java.io.PrintStream out,
                     java.lang.String msg)

main

public static void main(java.lang.String[] args)
test