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.EntityReference;
15
16 import sk.uniba.euromath.plugin.views.outline.OutlineConsts;
17
18 /***
19 * @author TV Created on 8.7.2004
20 *
21 */
22 public class EntityOutlineItem extends CompoundOutlineItem {
23
24 /***
25 *
26 */
27 public EntityOutlineItem(EntityReference eRef) {
28 super(eRef);
29 }
30
31 @Override
32 protected void analyze() {
33
34 }
35
36 public EntityReference getEntityReference() {
37 return (EntityReference) getModel();
38 }
39
40 @Override
41 public String getImageKey() {
42 return OutlineConsts.ENTI_KEY;
43 }
44
45 @Override
46 public String toString() {
47 String lName = getEntityReference().getNodeName();
48 String result = "[EntityRef]";
49 if (lName != null)
50 result += " &" + lName + ";";
51
52 return result;
53 }
54
55 }