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

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


                    expression.appendPart( new ExpressionText( expressionPart ) );
                }

            } else if ( "Collection".equals( currentField.getType() ) ) {
                expression.appendPart(
                        new ExpressionCollection( expressionPart,
                                                  currentField.getClassName(),
                                                  currentField.getType(),
                                                  dmo.getProjectFieldParametersType().get( factType + "#" + expressionPart ) )
                                     );
            } else {
View Full Code Here


                } else {
                    expression.appendPart( new ExpressionText( expressionPart ) );
                }

            } else if ( "Collection".equals( currentField.getType() ) ) {
                expression.appendPart( new ExpressionCollection( expressionPart,
                                                                 currentField.getClassName(),
                                                                 currentField.getType(),
                                                                 dmo.getProjectFieldParametersType().get( factType + "#" + expressionPart ) )
                                     );
            } else {
View Full Code Here

                              methodName,
                              new Callback<MethodInfo>() {
                                  @Override
                                  public void callback( final MethodInfo mi ) {
                                      if ( DataType.TYPE_COLLECTION.equals( mi.getGenericType() ) ) {
                                          callback.callback( new ExpressionCollection( methodName,
                                                                                       mi.getReturnClassType(),
                                                                                       mi.getGenericType(),
                                                                                       mi.getParametricReturnType() ) );
                                      } else {
                                          callback.callback( new ExpressionMethod( mi.getName(),
View Full Code Here

        String fieldClassName = oracle.getFieldClassName( factName, fieldName );
        String fieldGenericType = oracle.getFieldType( factName, fieldName );
        if ( DataType.TYPE_COLLECTION.equals( fieldGenericType ) ) {
            String fieldParametricType = oracle.getParametricFieldType( factName,
                                                                        fieldName );
            callback.callback( new ExpressionCollection( fieldName,
                                                         fieldClassName,
                                                         fieldGenericType,
                                                         fieldParametricType ) );
        } else {
            callback.callback( new ExpressionField( fieldName,
View Full Code Here

                              methodName,
                              new Callback<MethodInfo>() {
                                  @Override
                                  public void callback( final MethodInfo mi ) {
                                      if ( DataType.TYPE_COLLECTION.equals( mi.getGenericType() ) ) {
                                          callback.callback( new ExpressionCollection( methodName,
                                                                                       mi.getReturnClassType(),
                                                                                       mi.getGenericType(),
                                                                                       mi.getParametricReturnType() ) );
                                      } else {
                                          callback.callback( new ExpressionMethod( mi.getName(),
View Full Code Here

                                        @Override
                                        public void callback( final ModelField[] result ) {
                                            if ( DataType.TYPE_COLLECTION.equals( fieldGenericType ) ) {
                                                String fieldParametricType = oracle.getParametricFieldType( factName,
                                                                                                            fieldName );
                                                callback.callback( new ExpressionCollection( fieldName,
                                                                                             fieldClassName,
                                                                                             fieldGenericType,
                                                                                             fieldParametricType ) );
                                            } else {
                                                callback.callback( new ExpressionField( fieldName,
View Full Code Here

        add( new ExpressionUnboundFact( part.getFact() ) );
        moveNext( part );
    }

    public void visit( ExpressionCollection part ) {
        add( new ExpressionCollection( part.getName(),
                                       part.getClassType(),
                                       part.getGenericType(),
                                       part.getParametricType() ) );
        moveNext( part );
    }
View Full Code Here

                    ModelField currentField = findField(typeFields,
                            expressionPart);

                    if ("Collection".equals(currentField.getType())) {
                        expression.appendPart(
                                new ExpressionCollection(
                                        expressionPart,
                                        getSimpleFactType(currentField.getClassName(),
                                                dmo),
                                        getSimpleFactType(currentField.getType(),
                                                dmo),
View Full Code Here

                              methodNameWithParams,
                              new Callback<MethodInfo>() {
                                  @Override
                                  public void callback( final MethodInfo mi ) {
                                      if ( DataType.TYPE_COLLECTION.equals( mi.getGenericType() ) ) {
                                          callback.callback( new ExpressionCollection( mi.getName(),
                                                                                       mi.getReturnClassType(),
                                                                                       mi.getGenericType(),
                                                                                       mi.getParametricReturnType() ) );
                                      } else {
                                          callback.callback( new ExpressionMethod( mi.getName(),
View Full Code Here

                                        @Override
                                        public void callback( final ModelField[] result ) {
                                            if ( DataType.TYPE_COLLECTION.equals( fieldGenericType ) ) {
                                                String fieldParametricType = oracle.getParametricFieldType( factName,
                                                                                                            fieldName );
                                                callback.callback( new ExpressionCollection( fieldName,
                                                                                             fieldClassName,
                                                                                             fieldGenericType,
                                                                                             fieldParametricType ) );
                                            } else {
                                                callback.callback( new ExpressionField( fieldName,
View Full Code Here

TOP

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

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.