intial source from ttp://www.sf.net/projects/wdte
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.css.core / src / net / sourceforge / phpeclipse / css / core / internal / model / PropertyInfo.java
1 /*
2  * Copyright (c) 2003-2004 Christopher Lenz and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  * 
8  * Contributors:
9  *     Christopher Lenz - initial API and implementation
10  * 
11  * $Id: PropertyInfo.java,v 1.1 2004-09-02 18:07:12 jsurfer Exp $
12  */
13
14 package net.sourceforge.phpeclipse.css.core.internal.model;
15
16 import net.sourceforge.phpeclipse.css.core.model.IPropertyInfo;
17
18 /**
19  * 
20  */
21 public class PropertyInfo implements IPropertyInfo {
22
23         // Instance Variables ------------------------------------------------------
24
25         private String name;
26
27         private String category;
28
29         private String description;
30
31         private boolean shorthand;
32
33         // Constructors ------------------------------------------------------------
34
35         /**
36          * Constructor.
37          * 
38          * @param name The name of the property
39          * @param category The category of the property
40          */
41         public PropertyInfo(String name, String category) {
42                 this(name, category, false);
43         }
44
45         /**
46          * Constructor.
47          * 
48          * @param name The name of the property
49          * @param category The category of the property
50          * @param shorthand Whether the property is a shorthand property
51          */
52         public PropertyInfo(String name, String category, boolean shorthand) {
53                 this(name, category, null, shorthand);
54         }
55
56         /**
57          * Constructor.
58          * 
59          * @param name The name of the property
60          * @param category The category of the property
61          * @param description An optional description of the property
62          * @param shorthand Whether the property is a shorthand property
63          */
64         public PropertyInfo(String name, String category, String description,
65                 boolean shorthand) {
66                 this.name = name;
67                 this.category = category;
68                 this.description = description;
69                 this.shorthand = shorthand;
70         }
71
72         // IPropertyInfo Implementation --------------------------------------------
73
74         /*
75          * @see IPropertyInfo#getName()
76          */
77         public String getName() {
78                 return name;
79         }
80
81         /*
82          * @see IPropertyInfo#getCategory()
83          */
84         public String getCategory() {
85                 return category;
86         }
87
88         /*
89          * @see IPropertyInfo#getDescription()
90          */
91         public String getDescription() {
92                 return description;
93         }
94
95         /*
96          * @see IPropertyInfo#isShorthand()
97          */
98         public boolean isShorthand() {
99                 return shorthand;
100         }
101
102 }