|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.query.function.metadata.FunctionMetadataValidator
public class FunctionMetadataValidator
The validator encodes business logic with respect to what a valid function description is. These methods call each other from the most complex components (FunctionMethod) to the simplest pieces (function name). Certain users of the validator may only need to call lower level methods.
Field Summary | |
---|---|
static int |
MAX_LENGTH
Maximum length for function names, parameter names, categories, and descriptions. |
Method Summary | |
---|---|
static void |
validateCategory(java.lang.String category)
Determine whether a category is valid. |
static void |
validateDescription(java.lang.String description)
Determine whether a description is valid. |
static void |
validateFunctionMethod(FunctionMethod method,
ActivityReport report)
Determine whether a FunctionMethod is valid. |
static void |
validateFunctionMethods(java.util.Collection methods,
ActivityReport report)
Validate a collection of FunctionMethod objects. |
static void |
validateFunctionParameter(FunctionParameter param)
Determine whether a FunctionParameter is valid. |
static void |
validateInvocationMethod(java.lang.String invocationClass,
java.lang.String invocationMethod,
int pushdown)
Determine whether an invocation class and method are valid. |
static void |
validateName(java.lang.String name)
Determine whether a function or parameter name is valid. |
static void |
validateType(java.lang.String type)
Determine whether a parameter type is valid. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_LENGTH
Method Detail |
---|
public static final void validateFunctionMethods(java.util.Collection methods, ActivityReport report)
FunctionMethod
objects.
methods
- Collection of FunctionMethod
objectsreport
- Report to store validation errorspublic static final void validateFunctionMethod(FunctionMethod method, ActivityReport report)
method
- The method to validatereport
- The report to update during validationpublic static final void validateFunctionParameter(FunctionParameter param) throws FunctionMetadataException
param
- The parameter to validate
FunctionMetadataException
- Thrown if function parameter is not valid in some waypublic static final void validateName(java.lang.String name) throws FunctionMetadataException
name
- Name to validate
FunctionMetadataException
- Thrown if function or parameter name is not valid in some waypublic static final void validateType(java.lang.String type) throws FunctionMetadataException
type
- Type to validate
FunctionMetadataException
- Thrown if parameter type is not valid in some waypublic static final void validateDescription(java.lang.String description) throws FunctionMetadataException
description
- Description to validate
FunctionMetadataException
- Thrown if description is not valid in some waypublic static final void validateCategory(java.lang.String category) throws FunctionMetadataException
category
- Category to validate
FunctionMetadataException
- Thrown if category is not valid in some waypublic static final void validateInvocationMethod(java.lang.String invocationClass, java.lang.String invocationMethod, int pushdown) throws FunctionMetadataException
invocationClass
- Invocation class to validateinvocationMethod
- Invocation method to validate
FunctionMetadataException
- Thrown if invocation method is not valid in some way
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |