ilog.rules.dt.model.helper

Class IlrDTPropertyHelper

  • java.lang.Object
    • ilog.rules.dt.model.helper.IlrDTPropertyHelper
  • All Implemented Interfaces:
    ilog.rules.dt.model.IlrDTProperties


    public class IlrDTPropertyHelper
    extends java.lang.Object
    implements ilog.rules.dt.model.IlrDTProperties
    Manages properties of an IlrDTModel and its elements.
    • Method Detail

      • getPartitionTitle

        public static java.lang.String getPartitionTitle(IlrDTPartition partition,
                                         boolean useDefault)
      • setPartitionTitle

        public static void setPartitionTitle(IlrDTPartition partition,
                             java.lang.String title)
        Changes the title of a partition for a given locale. Changes the title of a node in a tree graphic representation.
        Parameters:
        partition - The partition to be named.
        title - The new title of the partition.
      • getDefinitionTitle

        public static java.lang.String getDefinitionTitle(IlrDTDefinition definition)
        Returns the title of a definition of an IlrDTModel. Returns the title of a column in a table graphic representation.
        Parameters:
        definition - A definition instance.
        Returns:
        The name of the definition.
      • getDefinitionTitle

        public static java.lang.String getDefinitionTitle(IlrDTDefinition definition,
                                          boolean useDefault)
        Returns the title of a definition of an IlrDTModel. Returns the title of a column in a table graphic representation. If none has been set and useDefault is true a default title is returned
        Parameters:
        definition - A definition instance.
        useDefault -
        Returns:
        The title of the definition.
      • setDefinitionTitle

        public static void setDefinitionTitle(IlrDTDefinition definition,
                              java.lang.String title)
        Changes the title of a definition for a given locale. Changes the title of a column in a table graphic representation.
        Parameters:
        definition - The definition to be named.
        title - The new title of the definition.
      • getActionSetComment

        public static java.lang.String getActionSetComment(IlrDTActionSet as)
        Returns the comment of an action set. Displayed in the comment column in a table graphic representation.
        Parameters:
        as - The action set.
        Returns:
        The comment of an action set. Displayed in the comment column in a table graphic representation.
      • setActionSetComment

        public static void setActionSetComment(IlrDTActionSet as,
                               java.lang.String comment)
        Changes the comment of an action set. Displayed in the comment column in a table graphic representation.
        Parameters:
        as - The action set.
        comment - The new comment.
      • getDefaultParameterTitle

        public static java.lang.String getDefaultParameterTitle(IlrDTExpressionDefinition expr,
                                                int index)
        Returns the default name generated for a parameter of a definition expression. Used as a subtitle in a table graphic representation.
        Parameters:
        expr - The expression of the definition.
        index - The position of the parameter.
        Returns:
        The default name generated for a parameter of a definition expression.
      • getDefaultParameterName

        public java.lang.String getDefaultParameterName(IlrDTExpressionSentence exprSentence,
                                               int index)
        Deprecated. use getDefaultParameterTitle()
        Returns the default name generated for a parameter of an expression sentence.
        Parameters:
        exprSentence - The expression sentence of the definition.
        index - The position of the parameter.
        Returns:
        The default name generated for a parameter of an expression sentence.
      • getParameterName

        public static java.lang.String getParameterName(IlrDTExpressionSentence exprSentence,
                                        int index)
        Deprecated. use getDefaultParameterTitle(IlrDTExpressionDefinition expr, int index)
        Returns the default name generated for a parameter of a definition expression. Used as a subtitle in a table graphic representation.
        Parameters:
        exprSentence - The expression of the definition.
        index - The position of the parameter.
        Returns:
        The default name generated for a parameter of a definition expression.
      • getDefinitionSubTitle

        public static java.lang.String getDefinitionSubTitle(IlrDTDefinition definition,
                                             int index)
        Returns the title of the index parameter of the given definition. Used for subtitle in a table graphic representation.
        Parameters:
        definition - The definition.
        index - The position of the parameter for which we want to retrieve a title.
        Returns:
        The title for a parameter of the definition or null if the definition does not have an expression.
      • getParameterTitle

        public static java.lang.String getParameterTitle(IlrDTExpressionDefinition expr,
                                         int index)
        Returns the title assigned to the index parameter of the given expression definition. Used as subtitle in a table graphic representation.
        Parameters:
        expr - The expression of the definition.
        index - The position of the parameter.
        Returns:
        The title assigned to the parameter.
      • setParameterTitle

        public static void setParameterTitle(IlrDTExpressionDefinition expr,
                             int index,
                             java.lang.String title)
        Assign a title to the index parameter of the given Expression Definition. Used for subtitle in a table graphic representation.
        Parameters:
        expr - The expression definition.
        index - The position of the parameter.
        title - The new title assigned to the parameter.
      • setParameterName

        public static void setParameterName(IlrDTExpressionSentence exprSentence,
                            int index,
                            java.lang.String name)
        Deprecated. use setParameterTitle(IlrDTExpressionDefinition expr, int index, String title)
        Changes the name of a parameter of an expression sentence of a definition. Used for subtitle in a table graphic representation.
        Parameters:
        exprSentence - The expression sentence of the definition.
        index - The position of the parameter.
        name - The new name of the parameter.
      • isDefinitionVisible

        public static boolean isDefinitionVisible(IlrDTDefinition definition)
        Returns true if the action definition is visible, false otherwise.
        Parameters:
        definition - The action definition.
        Returns:
        True if the action definition is visible, false otherwise.
      • setDefinitionVisible

        public static void setDefinitionVisible(IlrDTDefinition definition,
                                boolean v)
        Changes the status of visibility of an action definition.
        Parameters:
        definition - The action definition.
        v - The new status of visibility.

© Copyright IBM Corp. 1987, 2017