KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > core > icheatsheet > comp > ICompCSObject


1 /*******************************************************************************
2  * Copyright (c) 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.pde.internal.core.icheatsheet.comp;
13
14 import java.io.Serializable JavaDoc;
15 import java.util.List JavaDoc;
16
17 import org.eclipse.pde.core.IWritable;
18 import org.w3c.dom.Element JavaDoc;
19
20 /**
21  * ICompCSObject
22  *
23  */

24 public interface ICompCSObject extends Serializable JavaDoc, IWritable,
25     ICompCSConstants {
26
27     /**
28      * @return
29      */

30     ICompCSModel getModel();
31     
32     /**
33      * @param model
34      */

35     void setModel(ICompCSModel model);
36     
37     /**
38      * @return
39      */

40     ICompCS getCompCS();
41     
42     /**
43      * @param element
44      */

45     void parse(Element JavaDoc element);
46
47     /**
48      *
49      */

50     public void reset();
51     
52     /**
53      * To avoid using instanceof all over the place
54      * @return
55      */

56     public int getType();
57     
58     
59     /**
60      * For the label provider
61      * @return
62      */

63     public String JavaDoc getName();
64     
65     /**
66      * For the content provider
67      * @return A empty / non-empty list - never null
68      */

69     public List JavaDoc getChildren();
70     
71     /**
72      * @return
73      */

74     public ICompCSObject getParent();
75     
76     /**
77      * @return
78      */

79     public String JavaDoc getElement();
80     
81 }
82
Popular Tags