Examples of ExpressionCollection


Examples of org.drools.ide.common.client.modeldriven.brl.ExpressionCollection

            if (FIElD_VALUE_PREFIX.equals(prefix)) {
                String fieldClassName = getCompletionEngine().getFieldClassName(prevFactName, attrib);
                String fieldGenericType = getCompletionEngine().getFieldType(prevFactName, attrib);
                if (SuggestionCompletionEngine.TYPE_COLLECTION.equals(fieldGenericType)) {
                    String fieldParametricType = getCompletionEngine().getParametricFieldType(prevFactName, attrib);
                    expression.appendPart(new ExpressionCollection(attrib, fieldClassName, fieldGenericType, fieldParametricType));
                } else {
                    expression.appendPart(new ExpressionField(attrib, fieldClassName, fieldGenericType));
                }
            } else if (METHOD_VALUE_PREFIX.equals(prefix)) {
                MethodInfo mi = getCompletionEngine().getMethodinfo(prevFactName, attrib);
                if (SuggestionCompletionEngine.TYPE_COLLECTION.equals(mi.getGenericType())) {
                    expression.appendPart(new ExpressionCollection(attrib, mi.getReturnClassType(), mi.getGenericType(), mi.getParametricReturnType()));
                } else {
                    expression.appendPart(new ExpressionMethod(mi.getName(), mi.getReturnClassType(), mi.getGenericType()));
                }
            }
        }
View Full Code Here

Examples of org.drools.workbench.models.commons.shared.rule.ExpressionCollection

    public static ExpressionPart getExpressionPartForMethod( PackageDataModelOracle sce,
                                                             String factName,
                                                             String methodName ) {
        MethodInfo mi = sce.getMethodInfo( factName, methodName );
        if ( DataType.TYPE_COLLECTION.equals( mi.getGenericType() ) ) {
            return new ExpressionCollection( methodName, mi.getReturnClassType(),
                                             mi.getGenericType(), mi.getParametricReturnType() );
        }
        return new ExpressionMethod( mi.getName(), mi.getReturnClassType(), mi.getGenericType() );
    }
View Full Code Here

Examples of org.drools.workbench.models.commons.shared.rule.ExpressionCollection

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

Examples of org.drools.workbench.models.commons.shared.rule.ExpressionCollection

    public static ExpressionPart getExpressionPartForMethod( PackageDataModelOracle sce,
                                                             String factName,
                                                             String methodName ) {
        MethodInfo mi = sce.getMethodInfo( factName, methodName );
        if ( DataType.TYPE_COLLECTION.equals( mi.getGenericType() ) ) {
            return new ExpressionCollection( methodName, mi.getReturnClassType(),
                                             mi.getGenericType(), mi.getParametricReturnType() );
        }
        return new ExpressionMethod( mi.getName(), mi.getReturnClassType(), mi.getGenericType() );
    }
View Full Code Here

Examples of org.drools.workbench.models.commons.shared.rule.ExpressionCollection

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

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

                } 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

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

                } 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

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

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

                              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

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

        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
TOP
Copyright © 2018 www.massapi.com. 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.