public class IlrRulesetArchiveBuilder extends IlrRulesetArchiveBuilderBase
IlrRulesetArchive.IlrRulesetArchive,
IlrRulesetArchiveParser| Constructor and Description |
|---|
IlrRulesetArchiveBuilder(IlrReflect reflect)
Creates an
IlrRulesetArchiveBuilder. |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyType(java.lang.Object type,
java.lang.String pptyName)
Declares the type of the property.
|
void |
addPropertyType(java.lang.String hierarchicalPpty,
java.lang.String pptyName)
Declares the type of the property; the type is necessarily a hierarchical
property.
|
void |
addRulesetParameterEntry(IlrRulesetParameter param)
Adds a ruleset parameter to the ruleset archive.
|
void |
addVariableEntry(java.lang.String pkgName,
IlrRulesetParameter parameter)
Adds a package variable to the ruleset archive.
|
void |
declareHierarchicalProperty(java.lang.String pptyName,
java.lang.String rootName)
Declares a hierarchical property with the given name and root.
|
void |
declareOverriding(java.lang.String fatherGroup,
java.util.ArrayList children)
Declares a rule overriding between the group passed as the first
parameter and the groups listed in the passed list.
|
void |
fillHierarchicalProperty(java.lang.String pptyName,
java.lang.String parentPath,
java.util.ArrayList children)
Fills a property hierarchy, by giving the list of its children for a
node.
|
void |
reset()
Resets the archive builder.
|
void |
setRulesetPropertiesEntry(java.io.InputStream properties)
Sets the ruleset properties.
|
addBusinessModelEntry, addDynamicModelEntry, addFunctionEntry, addFunctionEntry, addIRLEntry, addMappingEntry, addRuleEntry, addRuleEntry, addRuleflowEntry, addRuleflowEntry, addSchema, addSchema, addUserDataEntry, addWsdlEntry, addXsdEntry, defineCurrentArchiveBusiness, enableBusinessXMLService, generate, getEncoding, getErrors, printErrors, setBusinessModelPath, setEncoding, setEngineConfEntry, setMessageWriter, setVersionpublic IlrRulesetArchiveBuilder(IlrReflect reflect)
IlrRulesetArchiveBuilder. The given reflect must
be of the right type, that means that for IRL code based on a business
object model, the reflect must be business. The built archive is
persisted in memory.reflect - A reflect.public void reset()
reset in class IlrRulesetArchiveBuilderBasepublic void addRulesetParameterEntry(IlrRulesetParameter param)
param - The modelling of the ruleset parameter.public void addVariableEntry(java.lang.String pkgName,
IlrRulesetParameter parameter)
IlrRulesetArchive.VARIABLES file in the
directory which name is the passed package name.pkgName - The name of the package in which the variable is defined.parameter - The modelling of the package variable.public void addPropertyType(java.lang.Object type,
java.lang.String pptyName)
IlrType or IlrHierarchicalProperty that models
a hierarchical property.type - The property type.pptyName - The property name.public void addPropertyType(java.lang.String hierarchicalPpty,
java.lang.String pptyName)
hierarchicalPpty - The type name (must correspond to a hierarchical property).pptyName - The property name.public void declareHierarchicalProperty(java.lang.String pptyName,
java.lang.String rootName)
pptyName - The name of the hierarchical property.rootName - the name of the hierarchical property root.public void fillHierarchicalProperty(java.lang.String pptyName,
java.lang.String parentPath,
java.util.ArrayList children)
World {
USA {
California
}
Europe {
}
}
To add the children Los Angeles and
San Francisco to the California node, we need
to call:
fillHierarchicalProperty("Geography","World/USA/California",list)
where list contains "Los Angeles" and "San Francisco."pptyName - The name of the property we are defining.parentPath - The path from the root of the node to which the children will
be added.children - The list of the child names to add to the node.public void declareOverriding(java.lang.String fatherGroup,
java.util.ArrayList children)
fatherGroup are present
in a rule based task at the same time as rules defined in one of the
listed groups, the latest rules are overriden by the first: they are
'removed' from the task.fatherGroup - The group name whose rules overrides the rules of the groups
specified in the second argument.children - A list that contains the names of the groups whose rules are
overriden by the rules of the first parameter.public void setRulesetPropertiesEntry(java.io.InputStream properties)
ruleset r
{
property rulesetProp = "the property";
}
The given stream is closed after its content has been archived.properties - The ruleset properties to set.© Copyright IBM Corp. 1987, 2017