Faceted Project Framework
Version 1.3

org.eclipse.wst.common.project.facet.core
Enum IPreset.Type

java.lang.Object
  extended by java.lang.Enum<IPreset.Type>
      extended by org.eclipse.wst.common.project.facet.core.IPreset.Type
All Implemented Interfaces:
Serializable, Comparable<IPreset.Type>
Enclosing interface:
IPreset

public static enum IPreset.Type
extends Enum<IPreset.Type>

The enumberation of preset types.

Since:
2.0

Enum Constant Summary
DYNAMIC
          Dynamic presets are created by registering a factory in the presets extension point and are not fully specified until they are resolved within the context of use.
STATIC
          Static presets are created using the presets extension point and are fully specified in the extension point.
USER_DEFINED
          User presets are created using the ProjectFacetsManager.definePreset() methods and are stored in the workspace.
 
Method Summary
static IPreset.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IPreset.Type[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STATIC

public static final IPreset.Type STATIC
Static presets are created using the presets extension point and are fully specified in the extension point.


DYNAMIC

public static final IPreset.Type DYNAMIC
Dynamic presets are created by registering a factory in the presets extension point and are not fully specified until they are resolved within the context of use. To resolve a dynamic preset, cast the preset object to IDynamicPreset and then use the IDynamicPreset.resolve(java.util.Map) method.


USER_DEFINED

public static final IPreset.Type USER_DEFINED
User presets are created using the ProjectFacetsManager.definePreset() methods and are stored in the workspace.

Method Detail

values

public static final IPreset.Type[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(IPreset.Type c : IPreset.Type.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static IPreset.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name

Faceted Project Framework
Version 1.3

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