Package org.apache.hivemind.schema.rules

Examples of org.apache.hivemind.schema.rules.InvokeParentRule


    }

    private void enterInvokeParent(String elementName)
    {
        ElementModelImpl elementModel = (ElementModelImpl) peekObject();
        InvokeParentRule rule = new InvokeParentRule();

        push(elementName, rule, STATE_NO_CONTENT);

        checkAttributes();

        rule.setMethodName(getAttribute("method"));

        if (isAttribute("depth"))
            rule.setDepth(getIntAttribute("depth"));

        elementModel.addRule(rule);
    }
View Full Code Here


    {
        _elementModel.addRule(new CreateObjectRule(_className));

        addAttributeRules();

        _elementModel.addRule(new InvokeParentRule(_parentMethodName));
    }
View Full Code Here

    }

    private void enterInvokeParent(String elementName)
    {
        ElementModelImpl elementModel = (ElementModelImpl) peekObject();
        InvokeParentRule rule = new InvokeParentRule();

        push(elementName, rule, STATE_NO_CONTENT);

        checkAttributes();

        rule.setMethodName(getAttribute("method"));

        if (_attributes.containsKey("depth"))
            rule.setDepth(getIntAttribute("depth"));

        elementModel.addRule(rule);
    }
View Full Code Here

    }

    public void testGetMethod()
    {
        InvokeParentRule r = new InvokeParentRule();

        r.setMethodName("foo");

        assertEquals("foo", r.getMethodName());
    }
View Full Code Here

        ReadContentRule rule = new ReadContentRule();
        rule.setPropertyName("value");

        em.addRule(rule);

        em.addRule(new InvokeParentRule("addElement"));

        SchemaImpl schema = new SchemaImpl();
        schema.addElementModel(em);

        SchemaProcessorImpl p = new SchemaProcessorImpl(null, null, schema);
View Full Code Here

        ReadContentRule rule = new ReadContentRule();
        rule.setPropertyName("value");

        em.addRule(rule);

        em.addRule(new InvokeParentRule("addElement"));

        SchemaImpl schema = new SchemaImpl();
        schema.addElementModel(em);

        SchemaProcessorImpl p = new SchemaProcessorImpl(null, null, schema);
View Full Code Here

        rule.setPropertyName("value");
        rule.setAttributeName("wife");

        em.addRule(rule);

        em.addRule(new InvokeParentRule("addElement"));

        SchemaImpl schema = new SchemaImpl();
        schema.addElementModel(em);

        SchemaProcessorImpl p = new SchemaProcessorImpl(null, null, schema);
View Full Code Here

        SetModuleRule rule4 = (SetModuleRule) rl.get(3);

        assertEquals("module", rule4.getPropertyName());

        InvokeParentRule rule5 = (InvokeParentRule) rl.get(4);

        assertEquals("addElement", rule5.getMethodName());
    }
View Full Code Here

    {
        _elementModel.addRule(new CreateObjectRule(_className));

        addAttributeRules();

        _elementModel.addRule(new InvokeParentRule(_parentMethodName));
    }
View Full Code Here

        SetModuleRule rule4 = (SetModuleRule) rl.get(3);

        assertEquals("module", rule4.getPropertyName());

        InvokeParentRule rule5 = (InvokeParentRule) rl.get(4);

        assertEquals("addElement", rule5.getMethodName());
    }
View Full Code Here

TOP

Related Classes of org.apache.hivemind.schema.rules.InvokeParentRule

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.