wt.projmgmt.msproject
Class ImportMode

java.lang.Object
  extended bywt.fc.EnumeratedType
      extended bywt.projmgmt.msproject.ImportMode
All Implemented Interfaces:
EnumeratedType, LocalizableMessage, LocalizableMetadata, Message, Serializable

public class ImportMode
extends EnumeratedType
implements Serializable

This EnumeratedType is used to specify how conflicts are handled during a Microsoft Project Plan import operation. For example, this type can be used to specify whether imported objects should:

Other imports modes may also be available.

Supported API: true

Extendable: false

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class wt.fc.EnumeratedType
 
Field Summary
static ImportMode APPEND
          A mode that appends the imported projects nodes to the project plan without removing any existing project nodes.
private static String CLASS_RESOURCE
           
private static String CLASSNAME
           
private static Hashtable localeSets
           
static ImportMode MERGE
          A mode that merges imported projects nodes the existing project nodes.
static ImportMode REPLACE
          A mode that replaces all project nodes with the imported nodes.
private static String RESOURCE
           
private static EnumeratedType[] valueSet
           
 
Fields inherited from class wt.fc.EnumeratedType
secretHandshake, SEP_CHAR
 
Fields inherited from interface wt.meta.EnumeratedType
DEFAULT_VALUE, ORDER, SELECTABLE
 
Constructor Summary
protected ImportMode()
          Used by sub-classes that need a default constructor.
 
Method Summary
static ImportMode getImportModeDefault()
          Returns the default value (instance) for the ImportMode set.
static ImportMode[] getImportModeSet()
          Returns a copy of the set of valid values (instances) for the ImportMode class.
protected  EnumeratedType[] getLocaleSet(Locale locale)
          Returns the set of values (instances) for this instance, for the specified locale.
 EnumeratedType[] getValueSet()
          Returns a copy of the set of valid values (instances) for this instance, for the current user locale.
private static EnumeratedType[] initializeLocaleSet(Locale locale)
           
static ImportMode newImportMode(int secretHandshake)
          Used by EnumeratedType for constructing instances of ImportMode, from a resource bundle.
static ImportMode toImportMode(String internal_value)
          Returns the ImportMode instance for the internal_value argument.
protected  EnumeratedType[] valueSet()
          Returns a reference to the set of valid values (instances) for this instance.
 
Methods inherited from class wt.fc.EnumeratedType
defaultEnumeratedType, dynamicInstance, equals, getAbbreviatedDisplay, getComment, getComment, getDisplay, getDisplay, getFullDisplay, getInternalKey, getLocalizedMessage, getLocalizedValues, getLongDescription, getOrder, getSelectableValueSet, getShortDescription, getShortDescription, getStringValue, getStringValue, getValidSet, getValue, hashCode, instantiateSet, isDefaultValue, isDefaultValue, isPrimaryKey, isSelectable, main, readResolve, toEnumeratedType, toEnumeratedType, toEnumeratedType, toString, validateFriendship
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

CLASS_RESOURCE

private static final String CLASS_RESOURCE
See Also:
Constant Field Values

valueSet

private static final EnumeratedType[] valueSet

localeSets

private static Hashtable localeSets

REPLACE

public static final ImportMode REPLACE
A mode that replaces all project nodes with the imported nodes.

Supported API: false


APPEND

public static final ImportMode APPEND
A mode that appends the imported projects nodes to the project plan without removing any existing project nodes.

Supported API: false


MERGE

public static final ImportMode MERGE
A mode that merges imported projects nodes the existing project nodes.

Supported API: false

Constructor Detail

ImportMode

protected ImportMode()
Used by sub-classes that need a default constructor.

Supported API: false

Method Detail

newImportMode

public static ImportMode newImportMode(int secretHandshake)
                                throws IllegalAccessException
Used by EnumeratedType for constructing instances of ImportMode, from a resource bundle.

Supported API: false

Parameters:
secretHandshake -
Returns:
ImportMode
Throws:
IllegalAccessException

toImportMode

public static ImportMode toImportMode(String internal_value)
                               throws WTInvalidParameterException
Returns the ImportMode instance for the internal_value argument.

Supported API: true

Parameters:
internal_value - The internal (persistent) value for a valid instance of ImportMode.
Returns:
ImportMode
Throws:
WTInvalidParameterException

getImportModeDefault

public static ImportMode getImportModeDefault()
Returns the default value (instance) for the ImportMode set.

Supported API: true

Returns:
ImportMode

getImportModeSet

public static ImportMode[] getImportModeSet()
Returns a copy of the set of valid values (instances) for the ImportMode class.

Supported API: true

Returns:
ImportMode[]

getValueSet

public EnumeratedType[] getValueSet()
Returns a copy of the set of valid values (instances) for this instance, for the current user locale.

Supported API: true

Specified by:
getValueSet in class EnumeratedType
Returns:
EnumeratedType[]

valueSet

protected EnumeratedType[] valueSet()
Returns a reference to the set of valid values (instances) for this instance.

Supported API: false

Specified by:
valueSet in class EnumeratedType
Returns:
EnumeratedType[]

getLocaleSet

protected EnumeratedType[] getLocaleSet(Locale locale)
Returns the set of values (instances) for this instance, for the specified locale.

Supported API: false

Specified by:
getLocaleSet in class EnumeratedType
Parameters:
locale -
Returns:
EnumeratedType[]

initializeLocaleSet

private static EnumeratedType[] initializeLocaleSet(Locale locale)
                                             throws Throwable
Parameters:
locale -
Returns:
EnumeratedType[]
Throws:
Throwable