01: /*******************************************************************************
02: * Copyright (c) 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.internal.core.icheatsheet.simple;
11:
12: import java.util.List;
13:
14: import org.eclipse.pde.internal.core.text.IDocumentObject;
15: import org.w3c.dom.Element;
16:
17: /**
18: * ISimpleCSObject
19: *
20: */
21: public interface ISimpleCSObject extends IDocumentObject,
22: ISimpleCSConstants {
23:
24: /**
25: * @return
26: */
27: ISimpleCSModel getModel();
28:
29: /**
30: * @param model
31: */
32: void setModel(ISimpleCSModel model);
33:
34: /**
35: * @return
36: */
37: ISimpleCS getSimpleCS();
38:
39: /**
40: * @param node
41: */
42: void parse(Element element);
43:
44: /**
45: *
46: */
47: public void reset();
48:
49: /**
50: * To avoid using instanceof all over the place
51: * @return
52: */
53: public int getType();
54:
55: /**
56: * For the label provider
57: * @return
58: */
59: public String getName();
60:
61: /**
62: * For the content provider
63: * @return A empty / non-empty list - never null
64: */
65: public List getChildren();
66:
67: /**
68: * @return
69: */
70: public ISimpleCSObject getParent();
71:
72: }
|