misc changes
[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         private String ElementDescription;
10         
11         //Setters
12         public final void setName(String ElementName)
13         { this.ElementName = ElementName; }
14         public final void setDescription(String ElementDescription)
15         { this.ElementDescription = ElementDescription; }
16         
17         //Getters
18         public final String getName() { return ElementName; }
19         public final String getDescription() { return ElementDescription; }
20         
21         public PHPElement(){}
22         public PHPElement(String Name, String Description){
23                 setName(Name);
24                 if ((Description == null) || (Description.equals("")))
25                 {
26                         setDescription(Name +" - ");
27                 }
28                 else {
29                         setDescription(Description); 
30                 }
31         }
32         
33 }