1
2
3
4
5
6
7
8
9
10
11
12 package sk.uniba.euromath.plugin.views.outline.items;
13
14 import org.w3c.dom.CDATASection;
15
16 import sk.uniba.euromath.plugin.views.outline.OutlineConsts;
17
18 /***
19 * CData outline item.
20 *
21 * @author Tomáš Studva 23.1.2006
22 */
23 public class CDataOutlineItem extends LeafOutlineItem {
24
25 /***
26 * Constructor.
27 *
28 * @param section
29 */
30 public CDataOutlineItem(CDATASection section) {
31 super(section);
32 }
33
34 /***
35 * @return representing CData
36 */
37 public CDATASection getCData() {
38 return (CDATASection) getModel();
39 }
40
41 @Override
42 public String getImageKey() {
43 return OutlineConsts.ATTR_KEY;
44 }
45
46 @Override
47 public String toString() {
48 return getCData().toString();
49 }
50 }