Package com.graphaware.common.policy.spel

Examples of com.graphaware.common.policy.spel.SpelNodeInclusionPolicy


    /**
     * {@inheritDoc}
     */
    @Override
    protected NodeInclusionPolicy spelPolicy(String spel) {
        return new SpelNodeInclusionPolicy(spel);
    }
View Full Code Here


    @Test
    public void shouldConstructSpelPolicy() {
        NodeInclusionPolicy policy = StringToNodeInclusionPolicy.getInstance().apply("hasLabel('Test')");

        assertEquals(of(IncludeAllBusinessNodes.getInstance(), new SpelNodeInclusionPolicy("hasLabel('Test')")), policy);
    }
View Full Code Here

    @Test
    public void shouldConstructSpelPolicy2() {
        NodeInclusionPolicy policy = StringToNodeInclusionPolicy.getInstance().apply("isType('R1')");

        assertEquals(of(IncludeAllBusinessNodes.getInstance(), new SpelNodeInclusionPolicy("isType('R1')")), policy);
    }
View Full Code Here

TOP

Related Classes of com.graphaware.common.policy.spel.SpelNodeInclusionPolicy

Copyright © 2018 www.massapicom. 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.