Package org.drools.workbench.models.datamodel.rule

Examples of org.drools.workbench.models.datamodel.rule.HasParameterizedOperator


                        buf.append( fieldName );
                    }

                    Map<String, String> parameters = null;
                    if ( constr instanceof HasParameterizedOperator ) {
                        HasParameterizedOperator hop = constr;
                        parameters = hop.getParameters();
                    }
                    if ( constr.getConnectives() == null ) {
                        generateNormalFieldRestriction( constr, parameters );
                    } else {
                        generateConnectiveFieldRestriction( constr, parameters, gctx );
View Full Code Here


            for ( int j = 0; j < constr.getConnectives().length; j++ ) {
                final ConnectiveConstraint conn = constr.getConnectives()[ j ];

                if ( conn instanceof HasParameterizedOperator ) {
                    HasParameterizedOperator hop = (HasParameterizedOperator) conn;
                    parameters = hop.getParameters();
                }

                addConnectiveFieldRestriction( buf,
                                               conn.getConstraintValueType(),
                                               conn.getFieldType(),
View Full Code Here

                        buf.append( fieldName );
                    }

                    Map<String, String> parameters = null;
                    if ( constr instanceof HasParameterizedOperator ) {
                        HasParameterizedOperator hop = constr;
                        parameters = hop.getParameters();
                    }
                    if ( constr.getConnectives() == null ) {
                        generateNormalFieldRestriction( constr, parameters );
                    } else {
                        generateConnectiveFieldRestriction( constr, parameters, gctx );
View Full Code Here

            for ( int j = 0; j < constr.getConnectives().length; j++ ) {
                final ConnectiveConstraint conn = constr.getConnectives()[ j ];

                if ( conn instanceof HasParameterizedOperator ) {
                    HasParameterizedOperator hop = (HasParameterizedOperator) conn;
                    parameters = hop.getParameters();
                }

                addConnectiveFieldRestriction( buf,
                                               conn.getConstraintValueType(),
                                               conn.getFieldType(),
View Full Code Here

                        buf.append( fieldName );
                    }

                    Map<String, String> parameters = null;
                    if ( constr instanceof HasParameterizedOperator ) {
                        HasParameterizedOperator hop = constr;
                        parameters = hop.getParameters();
                    }

                    if ( constr instanceof SingleFieldConstraintEBLeftSide ) {
                        SingleFieldConstraintEBLeftSide sfexp = (SingleFieldConstraintEBLeftSide) constr;
                        addFieldRestriction( buf,
                                             sfexp.getConstraintValueType(),
                                             sfexp.getExpressionLeftSide().getGenericType(),
                                             sfexp.getOperator(),
                                             parameters,
                                             sfexp.getValue(),
                                             sfexp.getExpressionValue() );
                    } else {
                        addFieldRestriction( buf,
                                             constr.getConstraintValueType(),
                                             constr.getFieldType(),
                                             constr.getOperator(),
                                             parameters,
                                             constr.getValue(),
                                             constr.getExpressionValue() );
                    }

                    // and now do the connectives.
                    if ( constr.getConnectives() != null ) {
                        for ( int j = 0; j < constr.getConnectives().length; j++ ) {
                            final ConnectiveConstraint conn = constr.getConnectives()[ j ];

                            parameters = null;
                            if ( conn instanceof HasParameterizedOperator ) {
                                HasParameterizedOperator hop = (HasParameterizedOperator) conn;
                                parameters = hop.getParameters();
                            }

                            addFieldRestriction( buf,
                                                 conn.getConstraintValueType(),
                                                 conn.getFieldType(),
View Full Code Here

                        buf.append( fieldName );
                    }

                    Map<String, String> parameters = null;
                    if ( constr instanceof HasParameterizedOperator ) {
                        HasParameterizedOperator hop = constr;
                        parameters = hop.getParameters();
                    }

                    if ( constr instanceof SingleFieldConstraintEBLeftSide ) {
                        SingleFieldConstraintEBLeftSide sfexp = (SingleFieldConstraintEBLeftSide) constr;
                        addFieldRestriction( buf,
                                             sfexp.getConstraintValueType(),
                                             sfexp.getExpressionLeftSide().getGenericType(),
                                             sfexp.getOperator(),
                                             parameters,
                                             sfexp.getValue(),
                                             sfexp.getExpressionValue() );
                    } else {
                        addFieldRestriction( buf,
                                             constr.getConstraintValueType(),
                                             constr.getFieldType(),
                                             constr.getOperator(),
                                             parameters,
                                             constr.getValue(),
                                             constr.getExpressionValue() );
                    }

                    // and now do the connectives.
                    if ( constr.getConnectives() != null ) {
                        for ( int j = 0; j < constr.getConnectives().length; j++ ) {
                            final ConnectiveConstraint conn = constr.getConnectives()[ j ];

                            parameters = null;
                            if ( conn instanceof HasParameterizedOperator ) {
                                HasParameterizedOperator hop = (HasParameterizedOperator) conn;
                                parameters = hop.getParameters();
                            }

                            addFieldRestriction( buf,
                                                 conn.getConstraintValueType(),
                                                 conn.getFieldType(),
View Full Code Here

                        buf.append( fieldName );
                    }

                    Map<String, String> parameters = null;
                    if ( constr instanceof HasParameterizedOperator ) {
                        HasParameterizedOperator hop = constr;
                        parameters = hop.getParameters();
                    }
                    if ( constr.getConnectives() == null ) {
                        generateNormalFieldRestriction( constr, parameters );
                    } else {
                        generateConnectiveFieldRestriction( constr, parameters, gctx );
View Full Code Here

            for ( int j = 0; j < constr.getConnectives().length; j++ ) {
                final ConnectiveConstraint conn = constr.getConnectives()[ j ];

                if ( conn instanceof HasParameterizedOperator ) {
                    HasParameterizedOperator hop = (HasParameterizedOperator) conn;
                    parameters = hop.getParameters();
                }

                addConnectiveFieldRestriction( buf,
                                               conn.getConstraintValueType(),
                                               conn.getFieldType(),
View Full Code Here

TOP

Related Classes of org.drools.workbench.models.datamodel.rule.HasParameterizedOperator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.