public interface RuleParameters
| Modifier and Type | Method and Description | 
|---|---|
| List<RuleParameter<?>> | asList()Get the parameters of the rule as a List of RuleParameter object. | 
| BooleanParameter | createBoolean(String id)Create a boolean parameter and return its reference. | 
| ClassificationParameter | createClassification(String id)Create a classification parameter and return its reference. | 
| DoubleParameter | createDouble(String id,
            PropertyType propertyType)Create a double parameter and return its reference. | 
| EnumerationParameter | createEnumeration(String id,
                 List<String> options)Create an enumeration parameter and return its reference. | 
| FilterParameter | createFilter(String id)Create a filter parameter and return its reference. | 
| IntParameter | createInt(String id)Create an int parameter and return its reference. | 
| PropertyReferenceParameter | createPropertyReference(String id)Create a property reference parameter and return its reference. | 
| StringParameter | createString(String id)Create a string parameter and return its reference. | 
| TableParameter | createTable(String id,
           List<String> columnIDs,
           List<PropertyType> columnPropertyTypes)Create a table parameter and return its reference. | 
| void | freeze()Make the rule parameters immutable, so no new parameters can be added after a call to this method. | 
| static RuleParameters | of(Rule rule)Return the parameter creation handler for a specific rule. | 
static RuleParameters of(Rule rule)
rule - the rulevoid freeze()
IllegalStateException
 will be thrown if an attempt is made to create a parameter on a frozen RuleParameters object.List<RuleParameter<?>> asList()
BooleanParameter createBoolean(String id)
id - a unique id for the parameterClassificationParameter createClassification(String id)
id - a unique id for the parameterDoubleParameter createDouble(String id, PropertyType propertyType)
id - a unique id for the parameterpropertyType - the type of the quantity this double representsEnumerationParameter createEnumeration(String id, List<String> options)
id - a unique id for the parameteroptions - the options for the enumerationFilterParameter createFilter(String id)
id - a unique id for the parameterIntParameter createInt(String id)
id - a unique id for the parameterPropertyReferenceParameter createPropertyReference(String id)
id - a unique id for the parameterStringParameter createString(String id)
id - a unique id for the parameterTableParameter createTable(String id, List<String> columnIDs, List<PropertyType> columnPropertyTypes)
id - a unique id for the parametercolumnIDs - the IDs of the columnscolumnPropertyTypes - the types of the quantities stored in the columnsCopyright © 2019 Solibri, Inc.. All rights reserved.