ilog.rules.studio.model.base

Interface IlrRuleProject

  • All Superinterfaces:
    org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.EObject, com.ibm.rules.decisionservice.model.IDsElement, com.ibm.rules.decisionservice.model.IDsMutableNamedElement, com.ibm.rules.decisionservice.model.IDsNamedElement, com.ibm.rules.decisionservice.model.IDsProject, com.ibm.rules.decisionservice.model.IDsRuleProject, IlrElement, IlrModelElement, IlrResourceElement, org.eclipse.emf.common.notify.Notifier


    public interface IlrRuleProject
    extends IlrResourceElement, com.ibm.rules.decisionservice.model.IDsRuleProject
    A representation of the model object 'Rule Project'.

    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.

    See Also:
    IlrBasePackage.getRuleProject()
    • Method Detail

      • getRulesetProperties

        java.util.Map<java.lang.String,java.lang.String> getRulesetProperties()
        Returns the value of the 'Ruleset Properties' attribute.

        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.

        Specified by:
        getRulesetProperties in interface com.ibm.rules.decisionservice.model.IDsRuleProject
        Returns:
        the value of the 'Ruleset Properties' attribute.
        See Also:
        setRulesetProperties(Map), IlrBasePackage.getRuleProject_RulesetProperties()
      • setRulesetProperties

        void setRulesetProperties(java.util.Map<java.lang.String,java.lang.String> value)
        Sets the value of the 'Ruleset Properties' attribute.

        Parameters:
        value - the new value of the 'Ruleset Properties' attribute.
        See Also:
        getRulesetProperties()
      • getTopElements

        org.eclipse.emf.common.util.EList<IlrProjectElement> getTopElements()
        Returns the value of the 'Top Elements' containment reference list.

        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.

        Returns:
        the value of the 'Top Elements' containment reference list.
        See Also:
        IlrBasePackage.getRuleProject_TopElements()
      • getParameters

        org.eclipse.emf.common.util.EList<IlrParameter> getParameters()
        Returns the value of the 'Parameters' containment reference list.

        The list contents are of type IlrParameter. This is the list of ruleset parameters of this rule project.

        Returns:
        the value of the 'Parameters' containment reference list.
        See Also:
        IlrBasePackage.getRuleProject_Parameters()
      • getModelFolders

        org.eclipse.emf.common.util.EList<IlrModelFolder> getModelFolders()
        Returns the value of the 'Model Folders' containment reference list.

        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.

        Returns:
        the value of the 'Model Folders' containment reference list.
        See Also:
        IlrBasePackage.getRuleProject_ModelFolders()
      • getOutputLocation

        org.eclipse.core.runtime.IPath getOutputLocation()
        Returns the value of the 'Output Location' attribute.

        The output location is the path in the rule project inside which the files generated by the build are stored.

        Returns:
        the value of the 'Output Location' attribute.
        See Also:
        setOutputLocation(IPath), IlrBasePackage.getRuleProject_OutputLocation()
      • setOutputLocation

        void setOutputLocation(org.eclipse.core.runtime.IPath value)
        Sets the value of the 'Output Location' attribute.

        Parameters:
        value - the new value of the 'Output Location' attribute.
        See Also:
        getOutputLocation()
      • getSchemaDependencies

        org.eclipse.emf.common.util.EList<IlrSchema> getSchemaDependencies()
        Returns the value of the 'Schema Dependencies' containment reference list.

        The list contents are of type IlrSchema.

        Returns:
        the value of the 'Schema Dependencies' containment reference list.
        See Also:
        IlrBasePackage.getRuleProject_SchemaDependencies()
      • getDependencies

        org.eclipse.emf.common.util.EList<IlrRuleProject> getDependencies()
        This is the list of rule projects that this rule project depends on. Note that this list is immutable. To modify the list of referenced projects for this rule project the standard IProject APIs must be used:
                IProjectDescription projectDescription = eclipseProject.getDescription();
                projectDescription.setReferencedProjects( projectReferences );
                eclipseProject.setDescription( projectDescription, new NullProgressMonitor() );
         
        See Also:
      • getReferencingProjects

        org.eclipse.emf.common.util.EList<IlrRuleProject> getReferencingProjects()
        This is the list of rule projects that depend on this rule project. Note that the returned list is immutable.
      • setDocumentation

        void setDocumentation(java.lang.String value)
        Sets the value of the 'Documentation' attribute.

        Parameters:
        value - the new value of the 'Documentation' attribute.
        See Also:
        getDocumentation()
      • getOrderedMembers

        org.eclipse.emf.common.util.EList<java.lang.String> getOrderedMembers()
        Returns the value of the 'Ordered Members' attribute list.

        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().

        Returns:
        the value of the 'Ordered Members' attribute list.
        See Also:
        IlrBasePackage.getRuleProject_OrderedMembers()
      • getAdvancedProperties

        java.lang.String getAdvancedProperties()
        Returns the value of the 'Advanced Properties' attribute.

        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.

        Returns:
        the value of the 'Advanced Properties' attribute.
        See Also:
        setAdvancedProperties(String), IlrBasePackage.getRuleProject_AdvancedProperties()
      • setAdvancedProperties

        void setAdvancedProperties(java.lang.String value)
        Sets the value of the 'Advanced Properties' attribute.

        Parameters:
        value - the new value of the 'Advanced Properties' attribute.
        See Also:
        getAdvancedProperties()
      • isMainRuleProject

        boolean isMainRuleProject()
        Returns true if this project is a main rule project
        Returns:
        true if this project is a main rule project
      • isDecisionServiceProject

        boolean isDecisionServiceProject()
        Returns true if this project is a decision rule project (main rule project or simple project)
        Returns:
        true if this project is a decision rule project (main rule project or simple project)
      • getModelFolders

        IlrModelFolder[] getModelFolders(java.lang.String typeName)
        Gets the model folders that have this ID.
        See Also:
        IlrBOMFolder.ID,
      • getAllCategories

        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).

      • getAllParameters

        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).

      • getAllProjectElementsByType

        <T extends IlrProjectElement> org.eclipse.emf.common.util.EList<T> getAllProjectElementsByType(org.eclipse.emf.ecore.EClass type)
        Gets all the project elements of this type visible from this rule project.

        This method searches in this rule project as well as in the referenced rule projects.

      • getBOMPath

        IlrBOMPath getBOMPath()
        Gets the BOM path.

      • getXOMPath

        IlrXOMPath getXOMPath()
        Gets the XOM path.

      • getProjectElement

        IlrProjectElement getProjectElement(java.lang.String path)
        Gets the first project element that has the path path relative to this rule project.

      • getRulePackage

        IlrRulePackage getRulePackage(java.lang.String path)
        Gets the rule package that has the path path relative to this rule project.

      • getRule

        IlrRule getRule(java.lang.String path)
        Gets the rule which has the path path relative to this rule project.

      • getAllDependencies

        org.eclipse.emf.common.util.EList<IlrRuleProject> getAllDependencies()
        Gets the full list of rule projects that this rule project depends on.
        See Also:
      • getAllReferencingProjects

        org.eclipse.emf.common.util.EList<IlrRuleProject> getAllReferencingProjects()
        Gets the full list of rule projects that depend on this rule project.
        See Also:
      • getCategories

        org.eclipse.emf.common.util.EList<java.lang.String> getCategories()
        Returns the value of the 'Categories' attribute list.

        The list contents are of type String. These are the categories declared in this rule project.

        Returns:
        the value of the 'Categories' attribute list.
        See Also:
        IlrBasePackage.getRuleProject_Categories()

© Copyright IBM Corp. 1987, 2017