/* * Copyright (c) 2003-2004 Christopher Lenz and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v10.html * * Contributors: * Christopher Lenz - initial API and implementation * * $Id: PropertyInfo.java,v 1.1 2004-09-02 18:07:12 jsurfer Exp $ */ package net.sourceforge.phpeclipse.css.core.internal.model; import net.sourceforge.phpeclipse.css.core.model.IPropertyInfo; /** * */ public class PropertyInfo implements IPropertyInfo { // Instance Variables ------------------------------------------------------ private String name; private String category; private String description; private boolean shorthand; // Constructors ------------------------------------------------------------ /** * Constructor. * * @param name The name of the property * @param category The category of the property */ public PropertyInfo(String name, String category) { this(name, category, false); } /** * Constructor. * * @param name The name of the property * @param category The category of the property * @param shorthand Whether the property is a shorthand property */ public PropertyInfo(String name, String category, boolean shorthand) { this(name, category, null, shorthand); } /** * Constructor. * * @param name The name of the property * @param category The category of the property * @param description An optional description of the property * @param shorthand Whether the property is a shorthand property */ public PropertyInfo(String name, String category, String description, boolean shorthand) { this.name = name; this.category = category; this.description = description; this.shorthand = shorthand; } // IPropertyInfo Implementation -------------------------------------------- /* * @see IPropertyInfo#getName() */ public String getName() { return name; } /* * @see IPropertyInfo#getCategory() */ public String getCategory() { return category; } /* * @see IPropertyInfo#getDescription() */ public String getDescription() { return description; } /* * @see IPropertyInfo#isShorthand() */ public boolean isShorthand() { return shorthand; } }