Change visibility to private for net.sourceforge.phpeclipse.xdebug.php.model.XDebugEl...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / php / PHPElement.java
1 package net.sourceforge.phpeclipse.phpeditor.php;
2
3 /**
4  * @author choochter
5  */
6 public abstract class PHPElement {
7
8         private String ElementName;
9
10         private String ElementUsage;
11
12         // Setters
13         public final void setName(String ElementName) {
14                 this.ElementName = ElementName;
15         }
16
17         public final void setUsage(String usage) {
18                 this.ElementUsage = usage;
19         }
20
21         // Getters
22         public final String getName() {
23                 return ElementName;
24         }
25
26         public final String getUsage() {
27                 return ElementUsage;
28         }
29
30         public String getHoverText() {
31                 return "<b>" + getUsage() + "</b>";
32         }
33
34         public PHPElement() {
35         }
36
37         public PHPElement(String name, String usage) {
38                 setName(name);
39                 if ((usage == null) || (usage.equals(""))) {
40                         setUsage(name + " - ");
41                 } else {
42                         setUsage(usage);
43                 }
44         }
45
46 }