KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > collections > OzoneProperties


1 // You can redistribute this software and/or modify it under the terms of
2
// the Ozone Library License version 1 published by ozone-db.org.
3
//
4
// This file is
5
// Copyright (C) 2002-@year@ Leo Mekenkamp. All rights reserved.
6
// $Id: OzoneProperties.java,v 1.3 2003/02/03 07:39:34 leomekenkamp Exp $
7

8 package org.ozoneDB.collections;
9
10 import java.util.Enumeration JavaDoc;
11 import java.util.Properties JavaDoc;
12 import org.ozoneDB.OzoneRemote;
13
14 /**
15  * Provides an ozone aware counterpart for <code>java.util.Properties</code>. As
16  * the latter is a class and not an interface, only the methods that make sense
17  * from an ozone point of view are used.
18  *
19  * @author <a HREF="mailto:ozoneATmekenkampD0Tcom">Leo Mekenkamp (mind the anti-sp@m)</a>
20  * @version $Id: $
21  */

22 public interface OzoneProperties extends OzoneRemote {
23     
24     public String JavaDoc getProperty(String JavaDoc key);
25     
26     public String JavaDoc getProperty(String JavaDoc key, String JavaDoc defaultValue);
27     
28     public void load(Properties JavaDoc properties); /*update*/
29     
30     public Enumeration JavaDoc propertyNames();
31     
32     public String JavaDoc setProperty(String JavaDoc key, String JavaDoc value); /*update*/
33     
34     public Properties JavaDoc getClientProperties();
35     
36 }
37
Popular Tags