View Javadoc

1   /*
2    * <cvs:source>$Source: /devel/astrogrid/mySpace/client/src/java/org/astrogrid/store/adapter/aladin/AladinAdapterNode.java,v $</cvs:source>
3    * <cvs:author>$Author: clq2 $</cvs:author>
4    * <cvs:date>$Date: 2004/11/17 16:22:53 $</cvs:date>
5    * <cvs:version>$Revision: 1.3 $</cvs:version>
6    * <cvs:log>
7    *   $Log: AladinAdapterNode.java,v $
8    *   Revision 1.3  2004/11/17 16:22:53  clq2
9    *   nww-itn07-704
10   *
11   *   Revision 1.2.20.1  2004/11/16 16:47:28  nw
12   *   copied aladinAdapter interfaces into a neutrally-named package.
13   *   deprecated original interfaces.
14   *   javadoc
15   *
16   *   Revision 1.2  2004/09/28 10:24:19  dave
17   *   Added AladinAdapter interfaces and mock implementation.
18   *
19   *   Revision 1.1.2.1  2004/09/24 01:36:18  dave
20   *   Refactored File as Node and Container ...
21   *
22   *   Revision 1.1.2.2  2004/09/24 01:12:09  dave
23   *   Added initial test for child nodes.
24   *
25   *   Revision 1.1.2.1  2004/09/23 16:32:01  dave
26   *   Added better Exception handling ....
27   *   Added initial mock container ....
28   *   Added initial root container tests ...
29   *
30   * </cvs:log>
31   *
32   */
33  package org.astrogrid.store.adapter.aladin ;
34  
35  /***
36   * A wrapper for the AstroGrid StoreFile to make it easier to integrate into Aladin.
37   * * @deprecated use {@link org.astrogrid.store.tree} instead
38   */
39  public interface AladinAdapterNode
40  	{
41  	/***
42  	 * Access to the node name.
43  	 * @return The node name.
44  	 *
45  	 */
46  	public String getName() ;
47  
48  	/***
49  	 * Check if this represents a file.
50  	 * @return true if this represents a file.
51  	 *
52  	 */
53  	public boolean isFile() ;
54  
55  	/***
56  	 * Check if this represents a container.
57  	 * @return true if this represents a container.
58  	 *
59  	 */
60  	public boolean isContainer() ;
61  
62  	/***
63  	 * Get a list (collection) of the current child nodes.
64  	 * Note, you cannot add a child node by adding a node to the collection.
65  	 * @return An unmodifiable collection of AladinAdapterFile(s) for the child nodes.
66  	 *
67  	public Collection getChildNodes() ;
68  	 */
69  
70  	/***
71  	 * Add a child to a container.
72  	 * @param name The container name.
73       * @throws AladinAdapterSecurityException If the adapter is not logged in.
74       * @throws AladinAdapterServiceException  If the service is unable to handle the request.
75  	 *
76  	public AladinAdapterFile addContainer(String name)
77  		throws AladinAdapterSecurityException, AladinAdapterSecurityException ;
78  	 */
79  
80  	}