Examples of OrNode


Examples of org.apache.directory.shared.ldap.model.filter.OrNode

        List<ExprNode> andNodes = andNode.getChildren();
        assertEquals( 2, andNodes.size() );

        // (&(|(..
        OrNode orFilter = ( OrNode ) andNodes.get( 0 );
        assertNotNull( orFilter );

        List<ExprNode> orNodes = orFilter.getChildren();
        assertEquals( 2, orNodes.size() );

        // (&(&(abcdef=*)...
        PresenceNode presenceNode = ( PresenceNode ) orNodes.get( 0 );
        assertNotNull( presenceNode );
View Full Code Here

Examples of org.apache.directory.shared.ldap.model.filter.OrNode

        assertEquals( "objectClass", equalityNode.getAttribute() );
        assertEquals( "person", equalityNode.getValue().getString() );

        // (&(a=b)(|
        OrNode orNode = ( OrNode ) andNodes.get( 1 );
        assertNotNull( orNode );

        List<ExprNode> orNodes = orNode.getChildren();
        assertEquals( 2, orNodes.size() );

        // (&(a=b)(|(cn=Tori*
        SubstringNode substringNode = ( SubstringNode ) orNodes.get( 0 );
        assertNotNull( substringNode );
View Full Code Here

Examples of org.apache.directory.shared.ldap.model.filter.OrNode

                {
                    branch = new AndNode();
                }
                else if ( filter instanceof OrFilter )
                {
                    branch = new OrNode();
                }
                else if ( filter instanceof NotFilter )
                {
                    branch = new NotNode();
                }
View Full Code Here

Examples of org.apache.directory.shared.ldap.model.filter.OrNode

        {
            return;
        }

        // using varags to add two expressions to an OR node
        req.setFilter( new OrNode( req.getFilter(), newIsReferralEqualityNode( session ) ) );
    }
View Full Code Here

Examples of org.apache.directory.shared.ldap.model.filter.OrNode

            {
                filter = new AndNode();
            }
            else
            {
                filter = new OrNode();
            }

            for ( int i = 0; i < size; i++ )
            {
                String uuid = Strings.uuidToString(limitedUuidList.get(i));
View Full Code Here

Examples of org.apache.directory.shared.ldap.model.filter.OrNode

        ExprNode filter = req.getFilter();
       
        if ( !req.hasControl( ManageDsaIT.OID ) && !isOcPresenceFilter )
        {
            filter = new OrNode( req.getFilter(), newIsReferralEqualityNode( session ) );
        }

        return filter;
    }
View Full Code Here

Examples of org.apache.directory.shared.ldap.model.filter.OrNode

        controls.setSearchScope( SearchControls.SUBTREE_SCOPE );
        controls.setReturningAttributes( new String[]
            { SchemaConstants.MEMBER_AT, SchemaConstants.UNIQUE_MEMBER_AT } );

        ExprNode filter =
            new OrNode(
                new EqualityNode<String>( OBJECT_CLASS_AT, new StringValue( SchemaConstants.GROUP_OF_NAMES_OC ) ),
                new EqualityNode<String>( OBJECT_CLASS_AT, new StringValue( SchemaConstants.GROUP_OF_UNIQUE_NAMES_OC ) ) );

        CoreSession adminSession = new DefaultCoreSession( new LdapPrincipal( schemaManager, adminDn, AuthenticationLevel.STRONG ),
            directoryService );
View Full Code Here

Examples of org.apache.directory.shared.ldap.model.filter.OrNode

            {
                filter = new AndNode();
            }
            else
            {
                filter = new OrNode();
            }

            for ( int i = 0; i < size; i++ )
            {
                String uuid = Strings.uuidToString(limitedUuidList.get(i));
View Full Code Here

Examples of org.jamesii.core.math.parsetree.bool.OrNode

            new ValueNode<>(7));
    res = ifN.calc(null);
    assertTrue(res.getValue().compareTo(7) == 0);

    ifN =
        new IfThenElseNode(new OrNode(new ValueNode<>(false), new ValueNode<>(
            false)), new ValueNode<>(5), new ValueNode<>(7));
    res = ifN.calc(null);
    assertTrue(res.getValue().compareTo(7) == 0);

    ifN =
        new IfThenElseNode(new OrNode(new ValueNode<>(true), new ValueNode<>(
            false)), new ValueNode<>(5), new ValueNode<>(7));
    res = ifN.calc(null);
    assertTrue(res.getValue().compareTo(5) == 0);

    ifN =
        new IfThenElseNode(new ValueNode<>(false), new ValueNode<>(5),
            new OrNode(new ValueNode<>(true), new ValueNode<>(true)));
    ValueNode<Boolean> res2 = ifN.calc(null);
    assertTrue(res2.getValue().compareTo(true) == 0);

    ifN =
        new IfThenElseNode(new ValueNode<>(true), new OrNode(new ValueNode<>(
            true), new ValueNode<>(true)), new ValueNode<>(5));
    res2 = ifN.calc(null);
    assertTrue(res2.getValue().compareTo(true) == 0);
  }
View Full Code Here

Examples of org.jruby.ast.OrNode

        context.getInvocationCompiler().opElementAsgnWithMethod(receiverCallback, argsCallback, valueCallback, opElementAsgnNode.getOperatorName());
    }

    public void compileOr(Node node, BodyCompiler context) {
        final OrNode orNode = (OrNode) node;

        compile(orNode.getFirstNode(), context);

        BranchCallback longCallback = new BranchCallback() {

                    public void branch(BodyCompiler context) {
                        compile(orNode.getSecondNode(), context);
                    }
                };

        context.performLogicalOr(longCallback);
    }
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.