Package org.teiid.query.mapping.xml

Examples of org.teiid.query.mapping.xml.MappingAttribute


        attribute.setOptional(true);
        assertTrue(attribute.isOptional());
    }
   
    public void testNormalizeText() {
        MappingAttribute attribute = new MappingAttribute("Test"); //$NON-NLS-1$
        assertEquals(MappingNodeConstants.Defaults.DEFAULT_NORMALIZE_TEXT, attribute.getNormalizeText());

        attribute.setNormalizeText("foo"); //$NON-NLS-1$
        assertEquals("foo", attribute.getNormalizeText()); //$NON-NLS-1$
    }   
View Full Code Here


        attribute.setNormalizeText("foo"); //$NON-NLS-1$
        assertEquals("foo", attribute.getNormalizeText()); //$NON-NLS-1$
    }   
    public void testInclude() {
        MappingAttribute attribute = new MappingAttribute("Test"); //$NON-NLS-1$
        assertFalse(attribute.isAlwaysInclude());

        attribute.setAlwaysInclude(true);
        assertTrue(attribute.isAlwaysInclude());
    }   
View Full Code Here

        assertTrue(attribute.isAlwaysInclude());
    }   
   
   
    public void testExclude() {
        MappingAttribute attribute = new MappingAttribute("Test"); //$NON-NLS-1$
        assertFalse(attribute.isExcluded());

        attribute.setExclude(true);
        assertTrue(attribute.isExcluded());
    }          
View Full Code Here

       
        MappingDocument doc = new MappingDocument(false);
        MappingElement parentNode = doc.addChildElement(new MappingElement("parentNode")); //$NON-NLS-1$
        parentNode.setSource("parentNodeSource"); //$NON-NLS-1$
        MappingElement childNode = parentNode.addChildElement(new MappingElement("childNode"));//$NON-NLS-1$
        MappingAttribute attribute = new MappingAttribute("attributename"); //$NON-NLS-1$
        childNode.addAttribute(attribute);
        attribute.setDefaultValue("ddd"); //$NON-NLS-1$
        attribute.setValue("fff"); //$NON-NLS-1$
        MappingRecursiveElement recursiveElement = (MappingRecursiveElement)childNode.addChildElement(new MappingRecursiveElement("recursivenodename", "parentNodeSource"));//$NON-NLS-1$ //$NON-NLS-2$
        recursiveElement.setRecursionLimit(8, false);
        recursiveElement.setCriteria("rrr"); //$NON-NLS-1$
       
        String savedXML = saveMappingDocument(doc);
View Full Code Here

TOP

Related Classes of org.teiid.query.mapping.xml.MappingAttribute

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.