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
9 * Christopher Lenz - initial API and implementation
11 * $Id: PropertyInfo.java,v 1.1 2004-09-02 18:07:12 jsurfer Exp $
14 package net.sourceforge.phpeclipse.css.core.internal.model;
16 import net.sourceforge.phpeclipse.css.core.model.IPropertyInfo;
21 public class PropertyInfo implements IPropertyInfo {
23 // Instance Variables ------------------------------------------------------
27 private String category;
29 private String description;
31 private boolean shorthand;
33 // Constructors ------------------------------------------------------------
38 * @param name The name of the property
39 * @param category The category of the property
41 public PropertyInfo(String name, String category) {
42 this(name, category, false);
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
52 public PropertyInfo(String name, String category, boolean shorthand) {
53 this(name, category, null, shorthand);
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
64 public PropertyInfo(String name, String category, String description,
67 this.category = category;
68 this.description = description;
69 this.shorthand = shorthand;
72 // IPropertyInfo Implementation --------------------------------------------
75 * @see IPropertyInfo#getName()
77 public String getName() {
82 * @see IPropertyInfo#getCategory()
84 public String getCategory() {
89 * @see IPropertyInfo#getDescription()
91 public String getDescription() {
96 * @see IPropertyInfo#isShorthand()
98 public boolean isShorthand() {