public interface IlrRuleProject extends IlrResourceElement, com.ibm.rules.decisionservice.model.IDsRuleProject
Note that Referencing Projects and Dependencies are no longer stored
in lists within this class but are recalculated dynamically instead using the Eclipse
project reference information using IProject.getReferencedProjects(). An implication of this change
is that the methods getDependencies, getAllDependencies, getReferencingProjects, and
getAllReferencingProjects now return immutable lists. To update the project references, the
following code fragment should be used:
IProjectDescription projectDescription = eclipseProject.getDescription();
projectDescription.setReferencedProjects( projectReferences );
eclipseProject.setDescription( projectDescription, new NullProgressMonitor() );
When the .project file is modified by calling IProject.setDescription, an Eclipse resource change event is dispatched. This resource change event is processed asynchronously and updates the BOM and XOM paths for the IlrRuleProjects. Clients should therefore be aware that there is an asynchronous side-effect on the IlrRuleProject when IProject.setDescription is called and the project references have been modified.
IlrBasePackage.getRuleProject()| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAdvancedProperties()
Returns the value of the 'Advanced Properties' attribute.
|
org.eclipse.emf.common.util.EList<java.lang.String> |
getAllCategories()
Gets all the categories visible from this rule project
(including the categories from the referenced projects).
|
org.eclipse.emf.common.util.EList<IlrRuleProject> |
getAllDependencies()
Gets the full list of rule projects that this rule project depends on.
|
org.eclipse.emf.common.util.EList<IlrParameter> |
getAllParameters()
Gets all the ruleset parameters visible from the rule project
(including the parameters from the referenced projects).
|
<T extends IlrProjectElement> |
getAllProjectElementsByType(org.eclipse.emf.ecore.EClass type)
Gets all the project elements of this type visible from this rule project.
|
org.eclipse.emf.common.util.EList<IlrRuleProject> |
getAllReferencingProjects()
Gets the full list of rule projects that depend on this rule project.
|
IlrBOMPath |
getBOMPath()
Gets the BOM path.
|
org.eclipse.emf.common.util.EList<java.lang.String> |
getCategories()
Returns the value of the 'Categories' attribute list.
|
org.eclipse.emf.common.util.EList<IlrRuleProject> |
getDependencies()
This is the list of rule projects that this rule project depends on.
|
java.lang.String |
getDocumentation()
Returns the value of the 'Documentation' attribute.
|
java.net.URL |
getEngineConfigurationFile()
Returns the value of the 'Engine Configuration File' attribute.
|
org.eclipse.emf.common.util.EList<IlrExtractor> |
getExtractors()
Returns the value of the 'Extractors' containment reference list.
|
org.eclipse.emf.common.util.EList<IlrModelFolder> |
getModelFolders()
Returns the value of the 'Model Folders' containment reference list.
|
IlrModelFolder[] |
getModelFolders(java.lang.String typeName)
Gets the model folders that have this ID.
|
org.eclipse.emf.common.util.EList<java.lang.String> |
getOrderedMembers()
Returns the value of the 'Ordered Members' attribute list.
|
org.eclipse.core.runtime.IPath |
getOutputLocation()
Returns the value of the 'Output Location' attribute.
|
IlrPackageElement |
getPackageElement(java.lang.String path) |
org.eclipse.emf.common.util.EList<IlrParameter> |
getParameters()
Returns the value of the 'Parameters' containment reference list.
|
IlrRuleProjectPath |
getPath(java.lang.String pathID)
Gets the path with this ID.
|
org.eclipse.emf.common.util.EList<IlrRuleProjectPath> |
getPaths()
Returns the value of the 'Paths' containment reference list.
|
IlrProjectElement |
getProjectElement(java.lang.String path)
Gets the first project element that has the path
path relative
to this rule project. |
IlrProjectElement[] |
getProjectElements(java.lang.String path) |
org.eclipse.emf.common.util.EList<IlrRuleProject> |
getReferencingProjects()
This is the list of rule projects that depend on this rule project.
|
IlrRule |
getRule(java.lang.String path)
Gets the rule which has the path
path relative to this
rule project. |
IlrRulePackage |
getRulePackage(java.lang.String path)
Gets the rule package that has the path
path relative
to this rule project. |
java.util.Map<java.lang.String,java.lang.String> |
getRulesetProperties()
Returns the value of the 'Ruleset Properties' attribute.
|
org.eclipse.emf.common.util.EList<IlrSchema> |
getSchemaDependencies()
Returns the value of the 'Schema Dependencies' containment reference list.
|
IlrRuleProjectService |
getService(java.lang.String serviceID)
Gets the rule project service with this ID.
|
org.eclipse.emf.common.util.EList<IlrRuleProjectService> |
getServices()
Returns the value of the 'Services' containment reference list.
|
org.eclipse.emf.common.util.EList<IlrProjectElement> |
getTopElements()
Returns the value of the 'Top Elements' containment reference list.
|
IlrXOMPath |
getXOMPath()
Gets the XOM path.
|
boolean |
isDecisionServiceProject()
Returns true if this project is a decision rule project (main rule project or simple project)
|
boolean |
isMainRuleProject()
Returns true if this project is a main rule project
|
void |
setAdvancedProperties(java.lang.String value)
Sets the value of the '
Advanced Properties' attribute. |
void |
setDocumentation(java.lang.String value)
Sets the value of the '
Documentation' attribute. |
void |
setEngineConfigurationFile(java.net.URL value)
Sets the value of the '
Engine Configuration File' attribute. |
void |
setOutputLocation(org.eclipse.core.runtime.IPath value)
Sets the value of the '
Output Location' attribute. |
void |
setRulesetProperties(java.util.Map<java.lang.String,java.lang.String> value)
Sets the value of the '
Ruleset Properties' attribute. |
deleteElement, getOriginal, getResource, isWorkingCopygetName, getUuid, setName, setUuidcloneElement, createAnnotation, deleteElement, fillWith, getAdapter, getDisplayName, getModel, isDeleted, isValid, setPropertyValue, setPropertyValuegetEAnnotation, getEAnnotationseAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnseteAdapters, eDeliver, eNotify, eSetDelivereClass, getPropertyValue, getPropertyValue, isInstanceOfclearExtractorList, clearParameterList, clearRulesetProperties, findElementByType, getBuildMode, getClientList, getElementList, getExtractorList, getMigratedToOperationId, getMigrationFlag, getParameterList, getRESURIs, setMigratedToOperationId, setMigrationFlagorg.eclipse.emf.common.util.EList<IlrRuleProjectPath> getPaths()
The list contents are of type IlrRuleProjectPath.
It is bidirectional and its opposite is 'Rule Project'.
Returns the list of paths linked to this rule project. Usually this list
contains the BOMPath and the XOMPath.
getBOMPath(),
,
IlrBasePackage.getRuleProject_Paths(),
IlrRuleProjectPath.getRuleProject()java.util.Map<java.lang.String,java.lang.String> getRulesetProperties()
The ruleset properties are a map of key/values (string/string) that represent some properties that will be given to the rulesets generated from this rule project.
getRulesetProperties in interface com.ibm.rules.decisionservice.model.IDsRuleProjectsetRulesetProperties(Map),
IlrBasePackage.getRuleProject_RulesetProperties()void setRulesetProperties(java.util.Map<java.lang.String,java.lang.String> value)
Ruleset Properties' attribute.
value - the new value of the 'Ruleset Properties' attribute.getRulesetProperties()org.eclipse.emf.common.util.EList<IlrProjectElement> getTopElements()
The list contents are of type IlrProjectElement.
The topElements are all the elements contained by this rule project
which are not held by a rule package.
IlrBasePackage.getRuleProject_TopElements()org.eclipse.emf.common.util.EList<IlrParameter> getParameters()
The list contents are of type IlrParameter.
This is the list of ruleset parameters of this rule project.
IlrBasePackage.getRuleProject_Parameters()org.eclipse.emf.common.util.EList<IlrModelFolder> getModelFolders()
The list contents are of type IlrModelFolder.
This is the list of model folders of this rule project. Usually this list
contains the Source folder, the BOM folder, the Query folder, and the Template
folder.
IlrBasePackage.getRuleProject_ModelFolders()org.eclipse.core.runtime.IPath getOutputLocation()
The output location is the path in the rule project inside which the files generated by the build are stored.
setOutputLocation(IPath),
IlrBasePackage.getRuleProject_OutputLocation()void setOutputLocation(org.eclipse.core.runtime.IPath value)
Output Location' attribute.
value - the new value of the 'Output Location' attribute.getOutputLocation()org.eclipse.emf.common.util.EList<IlrExtractor> getExtractors()
The list contents are of type IlrExtractor.
It is bidirectional and its opposite is 'Rule Project'.
IlrBasePackage.getRuleProject_Extractors(),
IlrExtractor.getRuleProject()org.eclipse.emf.common.util.EList<IlrSchema> getSchemaDependencies()
The list contents are of type IlrSchema.
IlrBasePackage.getRuleProject_SchemaDependencies()org.eclipse.emf.common.util.EList<IlrRuleProject> getDependencies()
IProjectDescription projectDescription = eclipseProject.getDescription();
projectDescription.setReferencedProjects( projectReferences );
eclipseProject.setDescription( projectDescription, new NullProgressMonitor() );
org.eclipse.emf.common.util.EList<IlrRuleProject> getReferencingProjects()
java.lang.String getDocumentation()
setDocumentation(String),
IlrBasePackage.getRuleProject_Documentation()void setDocumentation(java.lang.String value)
Documentation' attribute.
value - the new value of the 'Documentation' attribute.getDocumentation()java.net.URL getEngineConfigurationFile()
setEngineConfigurationFile(URL),
IlrBasePackage.getRuleProject_EngineConfigurationFile()void setEngineConfigurationFile(java.net.URL value)
Engine Configuration File' attribute.
value - the new value of the 'Engine Configuration File' attribute.getEngineConfigurationFile()org.eclipse.emf.common.util.EList<java.lang.String> getOrderedMembers()
The list contents are of type String.
This is a list of String (the names of the elements)
that describes the last saved order
of package elements in the topElement reference.
This list is not necessarily synchronized
with the content of the list given by getTopElements().
IlrBasePackage.getRuleProject_OrderedMembers()java.lang.String getAdvancedProperties()
The advanced properties are ruleset properties that cannot be expressed as a pair of key/values. This is used, for example, to describe the finders and hashers inside a ruleset.
setAdvancedProperties(String),
IlrBasePackage.getRuleProject_AdvancedProperties()void setAdvancedProperties(java.lang.String value)
Advanced Properties' attribute.
value - the new value of the 'Advanced Properties' attribute.getAdvancedProperties()boolean isMainRuleProject()
boolean isDecisionServiceProject()
IlrModelFolder[] getModelFolders(java.lang.String typeName)
IlrBOMFolder.ID,
IlrRuleProjectPath getPath(java.lang.String pathID)
IlrBOMPath.PATH_ID,
IlrRuleProjectService getService(java.lang.String serviceID)
IlrRDTSearchService.SERVICE_ID,
org.eclipse.emf.common.util.EList<java.lang.String> getAllCategories()
org.eclipse.emf.common.util.EList<IlrParameter> getAllParameters()
<T extends IlrProjectElement> org.eclipse.emf.common.util.EList<T> getAllProjectElementsByType(org.eclipse.emf.ecore.EClass type)
This method searches in this rule project as well as in the referenced rule projects.
IlrBOMPath getBOMPath()
IlrXOMPath getXOMPath()
IlrProjectElement getProjectElement(java.lang.String path)
path relative
to this rule project.
IlrRulePackage getRulePackage(java.lang.String path)
path relative
to this rule project.
IlrPackageElement getPackageElement(java.lang.String path)
IlrRule getRule(java.lang.String path)
path relative to this
rule project.
org.eclipse.emf.common.util.EList<IlrRuleProject> getAllDependencies()
org.eclipse.emf.common.util.EList<IlrRuleProject> getAllReferencingProjects()
IlrProjectElement[] getProjectElements(java.lang.String path)
org.eclipse.emf.common.util.EList<IlrRuleProjectService> getServices()
The list contents are of type IlrRuleProjectService.
It is bidirectional and its opposite is 'Rule Project'.
The list of rule project services.
IlrBasePackage.getRuleProject_Services(),
IlrRuleProjectService.getRuleProject()org.eclipse.emf.common.util.EList<java.lang.String> getCategories()
The list contents are of type String.
These are the categories declared in this rule project.
IlrBasePackage.getRuleProject_Categories()© Copyright IBM Corp. 1987, 2017