@@ -0,0 +1,1459 @@
+package org.drools.conf;%0A%0A/**%0A * An Enum for Index Precedence option.%0A *%0A * drools.indexPrecedence = &lt;pattern%7Cequality&gt;%0A *%0A * When creating indexes gives precedence to the equality constraints (default)%0A * or to the first indexable constraint in the pattern.%0A *%0A * DEFAULT = equality%0A */%0Apublic enum IndexPrecedenceOption implements SingleValueKnowledgeBaseOption %7B%0A%0A    PATTERN_ORDER(%22pattern%22),%0A    EQUALITY_PRIORITY(%22equality%22);%0A%0A    /**%0A     * The property name for the index precedence option%0A     */%0A    public static final String PROPERTY_NAME = %22drools.indexPrecedence%22;%0A%0A    private String             string;%0A%0A    IndexPrecedenceOption(String mode) %7B%0A        this.string = mode;%0A    %7D%0A%0A    /**%0A     * %7B@inheritDoc%7D%0A     */%0A    public String getPropertyName() %7B%0A        return PROPERTY_NAME;%0A    %7D%0A%0A    public String getValue() %7B%0A        return string;%0A    %7D%0A%0A    public String toString() %7B%0A        return %22IndexPrecedenceOption( %22+string+ %22 )%22;%0A    %7D%0A%0A    public String toExternalForm() %7B%0A        return this.string;%0A    %7D%0A%0A    public static IndexPrecedenceOption determineIndexPrecedence(String mode) %7B%0A        if ( PATTERN_ORDER.getValue().equalsIgnoreCase( mode ) ) %7B%0A            return PATTERN_ORDER;%0A        %7D else if ( EQUALITY_PRIORITY.getValue().equalsIgnoreCase( mode ) ) %7B%0A            return EQUALITY_PRIORITY;%0A        %7D%0A        throw new IllegalArgumentException( %22Illegal enum value '%22 + mode + %22' for IndexPrecedence%22 );%0A    %7D%0A%0A%7D%0A

add IndexPrecedenceOption