01: // You can redistribute this software and/or modify it under the terms of
02: // the Ozone Library License version 1 published by ozone-db.org.
03: //
04: // The original code and portions created by SMB are
05: // Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
06: //
07: // $Id: XMLCollection.java,v 1.1 2001/12/18 11:03:24 per_nyfelt Exp $
08:
09: package org.ozoneDB.xml.core;
10:
11: import java.util.Set;
12: import org.ozoneDB.OzoneRemote;
13: import org.ozoneDB.xml.util.XMLContainer;
14: import org.ozoneDB.ExternalDatabase;
15:
16: import org.xmldb.api.modules.XMLResource;
17: import org.xmldb.api.base.Collection;
18: import org.xmldb.api.base.Resource;
19:
20: /**
21: *
22: * @author <a href="http://www.smb-tec.com">SMB</a>
23: * @version $Revision: 1.1 $
24: */
25: public interface XMLCollection extends OzoneRemote {
26:
27: /** Set the name of this collection */
28: public void setName(String name); //update
29:
30: /** get the name given to this collection */
31: public String getName();
32:
33: /**
34: */
35: public XMLCollection getParentCollection();
36:
37: /** Added to support parent-child collections */
38: public void setParentCollection(XMLCollection parentCollection); //update
39:
40: /** Returnes a non-recursive count of child collections (i.e. immediate children) */
41: public int getChildCollectionCount();
42:
43: /**
44: */
45: public String[] listChildCollections();
46:
47: /**
48: */
49: public XMLCollection getChildCollection(String name);
50:
51: /** Added to support parent-child collections */
52: public void setChildCollection(String childName,
53: XMLCollection childCollection); // update
54:
55: public int getResourceCount();
56:
57: public Set getResources();
58:
59: public boolean hasResource(String id);
60:
61: public void addResource(String id); //update
62:
63: public void storeResource(String id, Resource res); //update
64:
65: }
|