View Javadoc

1   /*
2    *  Copyright 2004 University of Hannover
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
15   */
16  
17  package olr.toolbar;
18  
19  import olr.rdf.Model;
20  import olr.viewer.ModelViewer;
21  
22  /***
23   * @version $Id: ToolbarSession.java,v 1.14 2004/08/02 18:38:53 roku Exp $
24   */
25  public interface ToolbarSession {
26      public abstract int size();
27  
28      public abstract ModelViewer getModelViewerAt(int n);
29  
30      public abstract boolean addSchema(String URI, String title) throws Exception;
31  
32      public abstract boolean addSchema(Model model, String title);
33  
34      public abstract boolean addSchema(Model model, String title, boolean nonRemovable);
35  
36      public abstract boolean addInstanceFile(String URI, String title) throws Exception;
37  
38      public abstract boolean addInstanceFile(Model model, String title) throws Exception;
39  
40      public abstract String removeModelAt(int n) throws Exception;
41  
42      public abstract boolean isViewerRemovable(int n);
43  
44      public abstract boolean containsProperty(String property);
45  
46      public abstract Object getResource4ID(Object res);
47  }