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:
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface Identifiable
    • getNamespace

      public String getNamespace()
      Description copied from interface: FunctionDefinitionContract
      Returns 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:
      getNamespace in interface FunctionDefinitionContract
      Returns:
      the namespace code of this function definition
    • getName

      public String getName()
      Description copied from interface: FunctionDefinitionContract
      Returns 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:
      getName in interface FunctionDefinitionContract
      Returns:
      the name of this function definition
    • getDescription

      public String getDescription()
      Description copied from interface: FunctionDefinitionContract
      Returns 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:
      getDescription in interface FunctionDefinitionContract
      Returns:
      the description of this function definition
    • getReturnType

      public String getReturnType()
      Description copied from interface: FunctionDefinitionContract
      Returns 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:
      getReturnType in interface FunctionDefinitionContract
      Returns:
      the return type of this function definition
    • getTypeId

      public String getTypeId()
      Description copied from interface: FunctionDefinitionContract
      Returns the id of the KrmsTypeDefinition which defines the actual implementation of this function such that it can be loaded into the engine and executed.
      Specified by:
      getTypeId in interface FunctionDefinitionContract
      Returns:
      the type id of this function definition
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface Inactivatable
    • getVersionNumber

      public Long getVersionNumber()
      Specified by:
      getVersionNumber in interface Versioned
    • getParameters

      public List<FunctionParameterDefinition> getParameters()
      Description copied from interface: FunctionDefinitionContract
      Returns 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:
      getParameters in interface FunctionDefinitionContract
      Returns:
      the list of parameters for this function definition
    • getCategories

      public List<CategoryDefinition> getCategories()
      Description copied from interface: FunctionDefinitionContract
      Returns 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:
      getCategories in interface FunctionDefinitionContract
      Returns:
      the list of categories for this function definition