com.rubecula.jquantity
Class Library

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.HashMap
          extended bycom.rubecula.util.StringMap
              extended bycom.rubecula.jquantity.Library
All Implemented Interfaces:
java.lang.Cloneable, Lookupable, java.util.Map, java.io.Serializable

public class Library
extends StringMap
implements Lookupable

Class which defines constants, formulas, etc. for use in a Mill.

Since:
V_0_5
Version:
$Revision: 1.1 $
Author:
Robin Hillyard
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.HashMap
 
Nested classes inherited from class java.util.AbstractMap
 
Field Summary
private  ConvenientProperties _Properties
           
 
Fields inherited from class java.util.HashMap
 
Fields inherited from class java.util.AbstractMap
 
Constructor Summary
Library(ConvenientProperties properties)
           
 
Method Summary
 java.util.Collection getKeys()
           
 Presentable getValue(java.lang.String name)
          Method to lookup a value by name.
static void main(java.lang.String[] args)
           
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
           
 java.lang.Object put(java.lang.String key, Presentable value)
           
 
Methods inherited from class com.rubecula.util.StringMap
get, get, put
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

_Properties

private final ConvenientProperties _Properties
Constructor Detail

Library

public Library(ConvenientProperties properties)
Method Detail

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Specified by:
put in interface java.util.Map
Overrides:
put in class StringMap
See Also:
Map.put(java.lang.Object, java.lang.Object)

put

public java.lang.Object put(java.lang.String key,
                            Presentable value)

getValue

public Presentable getValue(java.lang.String name)
                     throws PresentableException
Description copied from interface: Lookupable
Method to lookup a value by name.

Specified by:
getValue in interface Lookupable
Parameters:
name - the name or key to be looked up.
Returns:
a Presentable value corresponding to the current value of name.
Throws:
PresentableException - name not be found.

getKeys

public java.util.Collection getKeys()
Specified by:
getKeys in interface Lookupable

main

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