Examples of TypeField


Examples of org.kie.workbench.common.services.refactoring.model.index.TypeField

        if ( fieldName == null || fieldName.isEmpty() ) {
            return builder.build();
        }
        final String fieldFullyQualifiedClassName = getFieldFullyQualifiedClassName( fullyQualifiedClassName,
                                                                                     fieldName );
        builder.addGenerator( new TypeField( new ValueFieldIndexTerm( fieldName ),
                                             new ValueTypeIndexTerm( fieldFullyQualifiedClassName ),
                                             new ValueTypeIndexTerm( fullyQualifiedClassName ) ) );

        //Add Characteristics
        for ( Characteristic c : model.getCharacteristics() ) {
View Full Code Here

Examples of org.kie.workbench.common.services.refactoring.model.index.TypeField

        //Add field
        final String fieldName = c.getField();
        final String fieldFullyQualifiedClassName = getFieldFullyQualifiedClassName( fullyQualifiedClassName,
                                                                                     fieldName );
        builder.addGenerator( new TypeField( new ValueFieldIndexTerm( fieldName ),
                                             new ValueTypeIndexTerm( fieldFullyQualifiedClassName ),
                                             new ValueTypeIndexTerm( fullyQualifiedClassName ) ) );
    }
View Full Code Here

Examples of org.kie.workbench.common.services.refactoring.model.index.TypeField

            for ( Field field : factData.getFieldData() ) {
                final String fieldName = field.getName();
                final String fieldFullyQualifiedClassName = getFieldFullyQualifiedClassName( fullyQualifiedClassName,
                                                                                             fieldName );
                builder.addGenerator( new TypeField( new ValueFieldIndexTerm( fieldName ),
                                                     new ValueTypeIndexTerm( fieldFullyQualifiedClassName ),
                                                     new ValueTypeIndexTerm( fullyQualifiedClassName ) ) );
            }

        } else if ( fixture instanceof VerifyFact ) {
            final VerifyFact verifyFact = (VerifyFact) fixture;
            final String typeName = verifyFact.getName();

            //If VerifyFact is not anonymous lookup FQCN from previous FactData elements
            String fullyQualifiedClassName = null;
            if ( !verifyFact.anonymous ) {
                fullyQualifiedClassName = factDataToFullyQualifiedClassNameMap.get( verifyFact.getName() );
            } else {
                fullyQualifiedClassName = getFullyQualifiedClassName( typeName );
            }
            if ( fullyQualifiedClassName != null ) {
                builder.addGenerator( new Type( new ValueTypeIndexTerm( fullyQualifiedClassName ) ) );
            }

            for ( VerifyField field : verifyFact.getFieldValues() ) {
                final String fieldName = field.getFieldName();
                final String fieldFullyQualifiedClassName = getFieldFullyQualifiedClassName( fullyQualifiedClassName,
                                                                                             fieldName );
                builder.addGenerator( new TypeField( new ValueFieldIndexTerm( fieldName ),
                                                     new ValueTypeIndexTerm( fieldFullyQualifiedClassName ),
                                                     new ValueTypeIndexTerm( fullyQualifiedClassName ) ) );
            }
        } else if ( fixture instanceof VerifyRuleFired ) {
            final VerifyRuleFired verifyRuleFired = (VerifyRuleFired) fixture;
View Full Code Here

Examples of org.kie.workbench.common.services.refactoring.model.index.TypeField

        }
        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.TypeField

            }
        }
    }

    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.TypeField

        }
    }

    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.TypeField

    }

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

Examples of org.kie.workbench.common.services.refactoring.model.index.TypeField

    }

    private void visit( final ActionInsertFactCol52 o ) {
        final String fullyQualifiedClassName = getFullyQualifiedClassName( o.getFactType() );
        builder.addGenerator( new Type( new ValueTypeIndexTerm( fullyQualifiedClassName ) ) );
        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.TypeField

    }

    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.TypeField

        }
        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
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.