Faceted Project Framework
Version 1.3

org.eclipse.wst.common.project.facet.core
Class PresetDefinition

java.lang.Object
  extended by org.eclipse.wst.common.project.facet.core.PresetDefinition

public final class PresetDefinition
extends Object

The preset definition is used in several contexts as a means of describing a preset. It is different from IPreset in that the preset definition is not an actual preset that's registered with the system.

Since:
2.0
Author:
Konstantin Komissarchik

Constructor Summary
PresetDefinition(String label, String description, Set<IProjectFacetVersion> facets)
          Creates a new preset definition.
 
Method Summary
 String getDescription()
          Returns the description of the preset.
 String getLabel()
          Returns the label that should be used when presenting the preset to the user.
 Set<IProjectFacetVersion> getProjectFacets()
          Returns the project facets that are part of this preset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PresetDefinition

public PresetDefinition(String label,
                        String description,
                        Set<IProjectFacetVersion> facets)
Creates a new preset definition.

Parameters:
label - the label that should be used when presenting the preset to the user
description - the description of the preset
facets - the facets that comprise the preset
Method Detail

getLabel

public String getLabel()
Returns the label that should be used when presenting the preset to the user.

Returns:
the preset label

getDescription

public String getDescription()
Returns the description of the preset.

Returns:
the description of the preset

getProjectFacets

public Set<IProjectFacetVersion> getProjectFacets()
Returns the project facets that are part of this preset.

Returns:
project facets that are part of this preset

Faceted Project Framework
Version 1.3

Copyright (c) 2008 BEA Systems, Inc. and others. All rights reserved.