Class FunctionDefinition
java.lang.Object
org.kuali.rice.core.api.mo.AbstractDataTransferObject
org.kuali.rice.krms.api.repository.function.FunctionDefinition
- All Implemented Interfaces:
Serializable,Inactivatable,Identifiable,Versioned,ModelObjectBasic,ModelObjectComplete,FunctionDefinitionContract
public class FunctionDefinition
extends AbstractDataTransferObject
implements FunctionDefinitionContract
An immutable representation of a function definition.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder which can be used to constructFunctionDefinitioninstances. -
Method Summary
Modifier and TypeMethodDescriptionReturns an ordered list of the categories which this function definition requires.Returns the description of this function definition.getId()getName()Returns the name of this function definition.Returns the namespace code of this function definition.Returns an ordered, immutable list of the parameters which this function definition requires.Returns the type of the return value of the function defined by this function definition.Returns the id of theKrmsTypeDefinitionwhich defines the actual implementation of this function such that it can be loaded into the engine and executed.booleanisActive()Methods inherited from class org.kuali.rice.core.api.mo.AbstractDataTransferObject
afterUnmarshal, beforeUnmarshal, equals, equalsExcludeFields, getDefaultHashCodeEqualsExcludeFields, hashCode, hashCodeExcludeFields, toString
-
Method Details
-
getId
- Specified by:
getIdin interfaceIdentifiable
-
getNamespace
Description copied from interface:FunctionDefinitionContractReturns the namespace code of this function definition. All functions have a namespace and this value can never be null or blank. The combination of namespace plus name must be unique within the entire repository of functions.- Specified by:
getNamespacein interfaceFunctionDefinitionContract- Returns:
- the namespace code of this function definition
-
getName
Description copied from interface:FunctionDefinitionContractReturns the name of this function definition. All functions have a name and this value can never be null or blank. The combination of namespace plus name must be unique within the entire repository of functions.- Specified by:
getNamein interfaceFunctionDefinitionContract- Returns:
- the name of this function definition
-
getDescription
Description copied from interface:FunctionDefinitionContractReturns the description of this function definition. The description is intended to provide more information about a function and it's appropriate usage. The description is optional.- Specified by:
getDescriptionin interfaceFunctionDefinitionContract- Returns:
- the description of this function definition
-
getReturnType
Description copied from interface:FunctionDefinitionContractReturns the type of the return value of the function defined by this function definition. This can be one of a set of "built-in" data types or a custom data type represented as a fully qualified java class name. All functions must have a return type so this method should never return null or blank.- Specified by:
getReturnTypein interfaceFunctionDefinitionContract- Returns:
- the return type of this function definition
-
getTypeId
Description copied from interface:FunctionDefinitionContractReturns the id of theKrmsTypeDefinitionwhich defines the actual implementation of this function such that it can be loaded into the engine and executed.- Specified by:
getTypeIdin interfaceFunctionDefinitionContract- Returns:
- the type id of this function definition
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceInactivatable
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceVersioned
-
getParameters
Description copied from interface:FunctionDefinitionContractReturns an ordered, immutable list of the parameters which this function definition requires. This list can be empty (in the case of a function which has no arguments) but will never be null.- Specified by:
getParametersin interfaceFunctionDefinitionContract- Returns:
- the list of parameters for this function definition
-
getCategories
Description copied from interface:FunctionDefinitionContractReturns an ordered list of the categories which this function definition requires. This list can be empty (in the case of a function which has no arguments) but will never be null.- Specified by:
getCategoriesin interfaceFunctionDefinitionContract- Returns:
- the list of categories for this function definition
-