com.metamatrix.common.extensionmodule
Class ExtensionModuleTypes

java.lang.Object
  extended by com.metamatrix.common.extensionmodule.ExtensionModuleTypes

public class ExtensionModuleTypes
extends java.lang.Object

This names of extension module types which are known and supported.

If all that is needed is the Collection of all known module types, without needing to programatically distinguish between them, use the getSourceTypes method of ExtensionModuleManager:


 ExtensionModuleManager.getInstance().getSourceTypes
 


Field Summary
static java.lang.String CONFIGURATION_MODEL_TYPE
          The name of the Configuration Model type of extension module.
static java.lang.String FUNCTION_DEFINITION_TYPE
          The name of the Function Definition type of extension module.
static java.lang.String JAR_FILE_TYPE
          The name of the JAR file type of extension module - this is the only type of extension module that can be searched for Class objects
static java.lang.String METADATA_KEYWORD_TYPE
          The name of the Metadata Keyword type of extension module.
static java.lang.String METAMODEL_EXTENSION_TYPE
          The name of the Metamodel Extension type of extension module.
static java.lang.String MISC_FILE_TYPE
          The name of the miscellaneous File type of extension module.
static java.lang.String VDB_FILE_TYPE
          The name of the VDB File type of extension module.
 
Constructor Summary
ExtensionModuleTypes()
           
 
Method Summary
static void checkTypeIsValid(java.lang.String typeName)
          Calls to isValidType(java.lang.String) and throws an InvalidExtensionTypeException if that method returns false.
static boolean isValidType(java.lang.String typeName)
          Indicates whether the type name in question is a valid type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAR_FILE_TYPE

public static final java.lang.String JAR_FILE_TYPE
The name of the JAR file type of extension module - this is the only type of extension module that can be searched for Class objects

See Also:
Constant Field Values

METADATA_KEYWORD_TYPE

public static final java.lang.String METADATA_KEYWORD_TYPE
The name of the Metadata Keyword type of extension module.

See Also:
Constant Field Values

METAMODEL_EXTENSION_TYPE

public static final java.lang.String METAMODEL_EXTENSION_TYPE
The name of the Metamodel Extension type of extension module.

See Also:
Constant Field Values

FUNCTION_DEFINITION_TYPE

public static final java.lang.String FUNCTION_DEFINITION_TYPE
The name of the Function Definition type of extension module.

See Also:
Constant Field Values

CONFIGURATION_MODEL_TYPE

public static final java.lang.String CONFIGURATION_MODEL_TYPE
The name of the Configuration Model type of extension module.

See Also:
Constant Field Values

VDB_FILE_TYPE

public static final java.lang.String VDB_FILE_TYPE
The name of the VDB File type of extension module.

See Also:
Constant Field Values

MISC_FILE_TYPE

public static final java.lang.String MISC_FILE_TYPE
The name of the miscellaneous File type of extension module.

See Also:
Constant Field Values
Constructor Detail

ExtensionModuleTypes

public ExtensionModuleTypes()
Method Detail

isValidType

public static boolean isValidType(java.lang.String typeName)
Indicates whether the type name in question is a valid type

Parameters:
typeName - name of type in question
Returns:
whether the parameter represents a valid type

checkTypeIsValid

public static void checkTypeIsValid(java.lang.String typeName)
                             throws InvalidExtensionModuleTypeException
Calls to isValidType(java.lang.String) and throws an InvalidExtensionTypeException if that method returns false.

Parameters:
typeName - name of type in question
Throws:
InvalidExtensionTypeException - if typeName is not a valid type
InvalidExtensionModuleTypeException


Copyright © 2009. All Rights Reserved.