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: ProfileDescriptor.java,v 1.1 2004-09-02 18:07:11 jsurfer Exp $
14 package net.sourceforge.phpeclipse.css.core.internal.profiles;
16 import net.sourceforge.phpeclipse.css.core.profiles.IProfileDescriptor;
18 import org.eclipse.core.runtime.IConfigurationElement;
24 public class ProfileDescriptor implements IProfileDescriptor {
26 // Constants ---------------------------------------------------------------
28 private static final String ATTR_ID = "id"; //$NON-NLS-1$
29 private static final String ATTR_NAME = "name"; //$NON-NLS-1$
30 private static final String ATTR_CLASS = "class"; //$NON-NLS-1$
31 private static final String ATTR_DESCRIPTION = "description"; //$NON-NLS-1$
33 // Instance Variables ------------------------------------------------------
41 * The name of the profile.
46 * The name of the implementation class.
48 private String className;
51 * An optional description.
53 private String description;
55 // Constructors ------------------------------------------------------------
60 * @param element The configuration element corresponding to the declaration
63 public ProfileDescriptor(IConfigurationElement element) {
64 this.id = element.getAttribute(ATTR_ID);
65 this.name = element.getAttribute(ATTR_NAME);
66 this.className = element.getAttribute(ATTR_CLASS);
67 this.description = element.getAttribute(ATTR_DESCRIPTION);
70 // IProfileDescriptor Implementation ---------------------------------------
73 * @see IProfileDescriptor#getId()
75 public String getId() {
80 * @see IProfileDescriptor#getName()
82 public String getName() {
87 * @see IProfileDescriptor#getDescription()
89 public String getDescription() {
94 * @see IProfileDescriptor#getClassName()
96 public String getClassName() {