All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.drools.lang.api.CEDescrBuilder Maven / Gradle / Ivy

There is a newer version: 10.0.0
Show newest version
/*
 * Copyright 2011 JBoss Inc
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.drools.lang.api;

import org.drools.lang.descr.AndDescr;
import org.drools.lang.descr.AnnotatedBaseDescr;
import org.drools.lang.descr.ExistsDescr;
import org.drools.lang.descr.NotDescr;
import org.drools.lang.descr.OrDescr;

/**
 *  A descriptor builder for Conditional Elements
 */
public interface CEDescrBuilder

, T extends AnnotatedBaseDescr> extends AnnotatedDescrBuilder>, PatternContainerDescrBuilder, T>, DescrBuilder< P, T > { /** * Creates a set of AND'ed Conditional Elements * * @return a descriptor builder for the AND'ed set of CEs */ CEDescrBuilder, AndDescr> and(); /** * Creates a set of OR'ed Conditional Elements * * @return a descriptor builder for the OR'ed set of CEs */ CEDescrBuilder, OrDescr> or(); /** * Creates a set of NOT'ed Conditional Elements * * @return a descriptor builder for the NOT'ed set of CEs */ CEDescrBuilder, NotDescr> not(); /** * Creates a set of EXIST'ed Conditional Elements * * @return a descriptor builder for the EXIST'ed set of CEs */ CEDescrBuilder, ExistsDescr> exists(); /** * Defines a FORALL Conditional Element * * @return a descriptor builder for the FORALL CE */ ForallDescrBuilder> forall(); /** * Defines a top level ACCUMULATE CE * * @return the accumulate descriptor builder */ AccumulateDescrBuilder> accumulate(); /** * Defines an EVAL Conditional Elements * * @return a descriptor builder for the EVAL CE */ EvalDescrBuilder> eval(); /** * Defines a Named Consequence Conditional Elements * * @return a descriptor builder for the Named Consequence CE */ NamedConsequenceDescrBuilder> namedConsequence(); /** * Defines a Conditional Branch Conditional Elements * * @return a descriptor builder for the Conditional Branch CE */ ConditionalBranchDescrBuilder> conditionalBranch(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy