ilog.rules.vocabulary.model

Class IlrSentenceCategory

  • java.lang.Object
    • ilog.rules.vocabulary.util.IlrAbstractEnumerator
      • ilog.rules.vocabulary.model.IlrSentenceCategory
  • All Implemented Interfaces:
    java.io.Serializable


    public final class IlrSentenceCategory
    extends ilog.rules.vocabulary.util.IlrAbstractEnumerator
    Type safe enum for sentence categories.
    See Also:
    IlrSentence, Serialized Form
    • Field Detail

      • ACTION

        public static final int ACTION
        Value for action sentence category.
        See Also:
        Constant Field Values
      • NAVIGATION

        public static final int NAVIGATION
        Value for navigation sentence category.
        See Also:
        Constant Field Values
      • OPERATOR

        public static final int OPERATOR
        Value for operator sentence category.
        See Also:
        Constant Field Values
      • GETTER

        public static final int GETTER
        Value for getter sentence category.
        See Also:
        Constant Field Values
      • PREDICATE

        public static final int PREDICATE
        Value for predicate sentence category.
        See Also:
        Constant Field Values
      • SETTER

        public static final int SETTER
        Value for setter sentence category.
        See Also:
        Constant Field Values
      • CLEARER

        public static final int CLEARER
        Value for clearer sentence category.
        See Also:
        Constant Field Values
      • ACTION_LITERAL

        public static final IlrSentenceCategory ACTION_LITERAL
        Constant for action sentence category.
      • NAVIGATION_LITERAL

        public static final IlrSentenceCategory NAVIGATION_LITERAL
        Constant for navigation sentence category.
      • OPERATOR_LITERAL

        public static final IlrSentenceCategory OPERATOR_LITERAL
        Constant for operator sentence category.
      • GETTER_LITERAL

        public static final IlrSentenceCategory GETTER_LITERAL
        Constant for getter sentence category. This category is a sub category of navigation.
      • PREDICATE_LITERAL

        public static final IlrSentenceCategory PREDICATE_LITERAL
        Constant for predicate sentence category. This category is a sub category of navigation.
      • SETTER_LITERAL

        public static final IlrSentenceCategory SETTER_LITERAL
        Constant for setter sentence category. This category is a sub category of action.
      • CLEARER_LITERAL

        public static final IlrSentenceCategory CLEARER_LITERAL
        Constant for clearer sentence category. This category is a sub category of action.
      • PREDICATE_SETTER_LITERAL

        public static final IlrSentenceCategory PREDICATE_SETTER_LITERAL
        Constant for predicate setter sentence category. This category is a sub category of setter.
      • COLLECTION_ADD_LITERAL

        public static final IlrSentenceCategory COLLECTION_ADD_LITERAL
        Constant for collection add sentence category. This category is a sub category of action.
      • COLLECTION_REMOVE_LITERAL

        public static final IlrSentenceCategory COLLECTION_REMOVE_LITERAL
        Constant for collection remove sentence category. This category is a sub category of action.
      • COLLECTION_CLEAR_LITERAL

        public static final IlrSentenceCategory COLLECTION_CLEAR_LITERAL
        Constant for collection clear sentence category. This category is a sub category of action.
    • Method Detail

      • get

        public static IlrSentenceCategory get(java.lang.String name)
        Gets the sentence category constant from its name. Note that the case is not relevant.
        Parameters:
        name - The name of the category.
        Returns:
        The sentence category.
      • get

        public static IlrSentenceCategory get(int value)
        Gets the sentence category constant from its value. Note that the case is not relevant.
        Parameters:
        value - The value of the category.
        Returns:
        The sentence category.
      • is

        public boolean is(IlrSentenceCategory category)
        Compares a category with this sentence category.
        Parameters:
        category - The category to compare this category with.
        Returns:
        true if this category is the same or a sub category of category.
      • getChildren

        public java.util.List getChildren()
        Returns the children of this category.
        Returns:
        All subcategories of this category.

© Copyright IBM Corp. 1987, 2017