Interface IParameterizable<V extends IMetaParameterDeclaration>
-
- Type Parameters:
V- the actual type of resolvable / variable
- All Known Subinterfaces:
IResolvableModel<V,M>,IResolvableOperation<V>
- All Known Implementing Classes:
AbstractResolvableModel,AbstractRule,Def,DummyModel,Rule,Script,Template,VtlRule
public interface IParameterizable<V extends IMetaParameterDeclaration>Defines the access to parameters.- Author:
- Holger Eichelberger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VgetParameter(int index)Get the parameter of this rule at the specified index.VgetParameter(java.lang.String name)Returns a named parameter declaration.intgetParameterCount()Get the number of parameters of this rule.intgetRequiredParameterCount()Returns the number of required parameters, i.e., non-default and non-named parameters.
-
-
-
Method Detail
-
getParameterCount
int getParameterCount()
Get the number of parameters of this rule.- Returns:
- The number of parameters of this rule.
-
getParameter
V getParameter(int index)
Get the parameter of this rule at the specified index.- Parameters:
index- The 0-based index of the rule parameter to be returned.- Returns:
- The rule parameter at the given index.
- Throws:
java.lang.IndexOutOfBoundsException- ifindex < 0 || index >=getParameterCount()
-
getRequiredParameterCount
int getRequiredParameterCount()
Returns the number of required parameters, i.e., non-default and non-named parameters.- Returns:
- the number of required parameters
-
getParameter
V getParameter(java.lang.String name)
Returns a named parameter declaration.- Parameters:
name- the name of the parameter- Returns:
- the declaration or null if there is none
-
-