Package org.drools.factmodel.traits

Examples of org.drools.factmodel.traits.TraitTypeMap.immediateParents()


                        // Example: given classes A <- B <-C, at OTN A, a proxy c can only pass if no proxy b exists

                        TraitableBean txBean = (TraitableBean) proxy.getObject();
                        TraitTypeMap tMap = (TraitTypeMap) txBean._getTraitMap();
                        Collection<Thing> x = tMap.immediateParents( this.typeMask );
                        Thing k = x.iterator().next();

                        long originalMask = context.getModificationMask();
                        if ( ! k.isTop() ) {
                            ((PropagationContextImpl) context).setModificationMask( -1L );
View Full Code Here


                        // Example: given classes A <- B <-C, at OTN A, a proxy c can only pass if no proxy b exists

                        TraitableBean txBean = (TraitableBean) proxy.getObject();
                        TraitTypeMap tMap = (TraitTypeMap) txBean._getTraitMap();
                        Collection<Key<Thing>> x = tMap.immediateParents( this.typeMask );
                        Key<Thing> k = x.iterator().next();

                        long originalMask = context.getModificationMask();
                        if ( ! k.getValue().isTop() ) {
                            ((PropagationContextImpl) context).setModificationMask( -1L );
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.