All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
   |
   +----java.util.Dictionary
           |
           +----java.util.Hashtable
                   |
                   +----java.util.Properties
                           |
                           +----guinea.util.ExtProperties
                                   |
                                   +----guinea.logic.ItemProperties
Example on how this thing works: 'props1' is an object of java.util.Properties containing properties:
{ foo:  frog
bar:  dog
foo.bar:  goat
foo.fii:  bonk
bar.bar:  egg
foo.bar.baz: snake
foo.bar.foo: oil
}
then: 
props1.getProperty("foo") -> "flog"
props1.getProperty("bar") -> "dog"
props1.getProperty("foo.bar") -> "goat"
props1.propertyNames() -> { "foo", "bar", "foo.bar", "foo.fii", 
"bar.bar", "foo.bar.baz", "foo.bar.foo" }
Now if:
props2 = new ItemProperties("foo", props1)
and
props3 = new ItemProperties("bar", props1)
then:
props2.getProperty("foo") -> null
props2.getProperty("bar") -> "goat"
props2.getProperty("bar.baz" -> "snake"
props2.propertyNames() -> { "bar", "fii", "bar.baz", "bar.foo" }
props3.getProperty("bar") -> "egg"
props3.propertyNames() -> { "bar" }
and if:
props4 = new ItemProperties("bar", props2);
then:
props4.getProperty("bar") -> null
props4.getProperty("foo") -> "oil"
props2.propertyNames() -> { "baz", "foo" }
key to the specified 
 value in this hashtable.
public ItemProperties()
public ItemProperties(String name)
 public ItemProperties(String name,
                       Properties defaults)
public String getName()· getProperty
public String getProperty(String pname)
 public String getProperty(String pname,
                           String def)
 public Object put(Object key,
                   Object value)
key to the specified 
 value in this hashtable.
public Enumeration propertyNames()
public int numProperties()
All Packages Class Hierarchy This Package Previous Next Index