KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > xml > core > XMLCollection


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
// The original code and portions created by SMB are
5
// Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
6
//
7
// $Id: XMLCollection.java,v 1.2 2003/11/20 23:18:42 per_nyfelt Exp $
8

9 package org.ozoneDB.xml.core;
10
11 import java.util.Set JavaDoc;
12 import org.ozoneDB.OzoneRemote;
13 import org.xmldb.api.base.Resource;
14
15 /**
16  *
17  * @author <a HREF="http://www.smb-tec.com">SMB</a>
18  * @version $Revision: 1.2 $
19  */

20 public interface XMLCollection extends OzoneRemote {
21
22     /** Set the name of this collection */
23     public void setName(String JavaDoc name); //update
24

25     /** get the name given to this collection */
26     public String JavaDoc getName();
27
28     /**
29      */

30     public XMLCollection getParentCollection();
31
32     /** Added to support parent-child collections */
33     public void setParentCollection(XMLCollection parentCollection); //update
34

35     /** Returnes a non-recursive count of child collections (i.e. immediate children) */
36     public int getChildCollectionCount();
37
38     /**
39     */

40     public String JavaDoc[] listChildCollections();
41
42     /**
43      */

44     public XMLCollection getChildCollection( String JavaDoc name );
45
46     /** Added to support parent-child collections */
47     public void setChildCollection( String JavaDoc childName, XMLCollection childCollection); // update
48

49     public int getResourceCount();
50
51     public Set JavaDoc getResources();
52
53     public boolean hasResource(String JavaDoc id);
54
55     public void addResource(String JavaDoc id); //update
56

57     public void storeResource( String JavaDoc id, Resource res ); //update
58

59 }
60
Popular Tags