public final class RuleType
extends java.lang.Object
The RuleType also contains information about what parameters are supported on this kind of rule (if any).
| Constructor and Description |
|---|
RuleType(java.lang.String id,
MetaClass<RuleFunction> implClass,
Extension extension)
Constructs a RuleType.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addSupportedParameter(RuleTypeParameter parameter)
Attempts to add a parameter to this rule-type definition,
returns false if a parameter with the same name already
existed.
|
Extension |
getExtension() |
java.lang.String |
getId() |
RuleFunction |
getRuleFunction()
Attempts to instantiate the RuleFunction class associated with this
RuleType.
|
java.util.Collection<RuleTypeParameter> |
getSupportedParameters() |
boolean |
hasRequiredParameters() |
boolean |
isParameterSupported(java.lang.String paramName) |
public RuleType(java.lang.String id,
MetaClass<RuleFunction> implClass,
Extension extension)
id - implClass - extension - public java.lang.String getId()
public Extension getExtension()
public RuleFunction getRuleFunction() throws RuleEvaluationException
RuleEvaluationExceptionpublic boolean isParameterSupported(java.lang.String paramName)
public java.util.Collection<RuleTypeParameter> getSupportedParameters()
public boolean hasRequiredParameters()
public boolean addSupportedParameter(RuleTypeParameter parameter)
parameter -