Package org.auraframework.def

Examples of org.auraframework.def.AttributeDefRef


    public void testHandleChildText() throws Exception {
        xmlReader.next();
        htmlHandler.handleChildText();
        ArrayList<ComponentDefRefImpl> compDefs = (ArrayList<ComponentDefRefImpl>) htmlHandler.createDefinition()
                .getAttributeDefRef("body").getValue();
        AttributeDefRef attDef = compDefs.get(0).getAttributeDefRef("value");
        assertEquals("Child Text", attDef.getValue());
    }
View Full Code Here


        assertEquals("Component[]", ad.getTypeDef().getName());
        assertTrue(ad.getDefaultValue().getValue() instanceof List);
        List<?> l = (List<?>) ad.getDefaultValue().getValue();
        assertEquals(1, l.size());
        ComponentDefRef cdr = (ComponentDefRef) l.get(0);
        AttributeDefRef adr = cdr.getAttributeDefRef("value");
        assertNotNull(adr);
        assertEquals("valid Text which is really a defref", adr.getValue());
    }
View Full Code Here

        xmlReader.next();
        cdrHandler.handleChildText();
        ComponentDefRef cdr = cdrHandler.createDefinition();
        ArrayList<ComponentDefRef> compDefs = (ArrayList<ComponentDefRef>) cdr.getAttributeDefRef(
                AttributeDefRefImpl.BODY_ATTRIBUTE_NAME).getValue();
        AttributeDefRef attDef = compDefs.get(0).getAttributeDefRef("value");
        assertEquals("Child Text", attDef.getValue());
    }
View Full Code Here

TOP

Related Classes of org.auraframework.def.AttributeDefRef

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.