Examples of ValueFieldIndexTerm


Examples of org.kie.workbench.common.services.refactoring.model.index.terms.valueterms.ValueFieldIndexTerm

    }

    private void visit( final ActionSetFieldCol52 o ) {
        final Pattern52 p = model.getConditionPattern( o.getBoundName() );
        final String fullyQualifiedClassName = getFullyQualifiedClassName( p.getFactType() );
        builder.addGenerator( new TypeField( new ValueFieldIndexTerm( o.getFactField() ),
                                             new ValueTypeIndexTerm( getFullyQualifiedClassName( o.getType() ) ),
                                             new ValueTypeIndexTerm( fullyQualifiedClassName ) ) );
    }
View Full Code Here

Examples of org.kie.workbench.common.services.refactoring.model.index.terms.valueterms.ValueFieldIndexTerm

        }
        return null;
    }

    private void visitSingleFieldConstraint( final SingleFieldConstraint sfc ) {
        builder.addGenerator( new TypeField( new ValueFieldIndexTerm( sfc.getFieldName() ),
                                             new ValueTypeIndexTerm( getFullyQualifiedClassName( sfc.getFieldType() ) ),
                                             new ValueTypeIndexTerm( getFullyQualifiedClassName( sfc.getFactType() ) ) ) );
        if ( sfc.getConnectives() != null ) {
            for ( int i = 0; i < sfc.getConnectives().length; i++ ) {
                visit( sfc.getConnectives()[ i ] );
View Full Code Here

Examples of org.kie.workbench.common.services.refactoring.model.index.terms.valueterms.ValueFieldIndexTerm

            }
        }
    }

    private void visitConnectiveConstraint( final ConnectiveConstraint cc ) {
        builder.addGenerator( new TypeField( new ValueFieldIndexTerm( cc.getFieldName() ),
                                             new ValueTypeIndexTerm( getFullyQualifiedClassName( cc.getFieldType() ) ),
                                             new ValueTypeIndexTerm( getFullyQualifiedClassName( cc.getFactType() ) ) ) );
    }
View Full Code Here

Examples of org.kie.workbench.common.services.refactoring.model.index.terms.valueterms.ValueFieldIndexTerm

        }
    }

    private void visit( final String fullyQualifiedClassName,
                        final ActionFieldValue afv ) {
        builder.addGenerator( new TypeField( new ValueFieldIndexTerm( afv.getField() ),
                                             new ValueTypeIndexTerm( getFullyQualifiedClassName( afv.getType() ) ),
                                             new ValueTypeIndexTerm( fullyQualifiedClassName ) ) );
    }
View Full Code Here

Examples of org.kie.workbench.common.services.refactoring.model.index.terms.valueterms.ValueFieldIndexTerm

        //Enumerations using org.drools.workbench.screens.enums.backend.server.indexing.classes.Mortgage#amount
        {
            final IndexSearcher searcher = ( (LuceneIndex) index ).nrtSearcher();
            final TopScoreDocCollector collector = TopScoreDocCollector.create( 10,
                                                                                true );
            final Query query = new QueryBuilder().addTerm( new ValueTypeIndexTerm( "org.drools.workbench.screens.enums.backend.server.indexing.classes.Mortgage" ) ).addTerm( new ValueFieldIndexTerm( "amount" ) ).build();

            searcher.search( query,
                             collector );
            final ScoreDoc[] hits = collector.topDocs().scoreDocs;
            assertEquals( 1,
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.