1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 package org.astrogrid.store.adapter.aladin ;
40
41 import java.util.Collection;
42
43 /***
44 * A wrapper for the AstroGrid StoreFile to make it easier to integrate into Aladin.
45 * * @deprecated use {@link org.astrogrid.store.tree} instead
46 */
47 public interface AladinAdapterContainer
48 extends AladinAdapterNode
49 {
50 /***
51 * Get a list (collection) of the current child nodes.
52 * Note, you cannot add a child node by adding a node to the collection.
53 * @return An unmodifiable collection of AladinAdapterNode(s) for the child nodes.
54 *
55 */
56 public Collection getChildNodes() ;
57
58 /***
59 * Add a child to a container.
60 * @param name The container name.
61 * @throws AladinAdapterDuplicateException If the container already exists.
62 * @throws AladinAdapterServiceException If the service is unable to handle the request.
63 *
64 */
65 public AladinAdapterContainer addContainer(String name)
66 throws AladinAdapterServiceException, AladinAdapterDuplicateException ;
67
68 /***
69 * Add a file to this container.
70 * @param name The file name.
71 * @throws AladinAdapterDuplicateException If the file already exists.
72 * @throws AladinAdapterServiceException If the service is unable to handle the request.
73 *
74 */
75 public AladinAdapterFile addFile(String name)
76 throws AladinAdapterServiceException, AladinAdapterDuplicateException ;
77
78 }