Package org.apache.ws.commons.schema

Examples of org.apache.ws.commons.schema.XmlSchemaSimpleContent


        assertEquals("height", elem.getName());
        assertEquals(new QName("http://soapinterop.org/types", "height"), elem.getQName());

        XmlSchemaComplexType xsct = (XmlSchemaComplexType)elem.getSchemaType();
        assertNotNull(xsct);
        XmlSchemaSimpleContent xssc = (XmlSchemaSimpleContent)xsct.getContentModel();
        assertNotNull(xssc);

        XmlSchemaSimpleContentExtension xssce = (XmlSchemaSimpleContentExtension)xssc.getContent();
        assertNotNull(xssce);
        assertEquals(new QName("http://www.w3.org/2001/XMLSchema", "integer"), xssce.getBaseTypeName());

        List<XmlSchemaAttributeOrGroupRef> xsoc = xssce.getAttributes();
        assertEquals(3, xsoc.size());
View Full Code Here


        XmlSchema schema = schemaCol.read(new StreamSource(is));

        XmlSchemaComplexType xsct = (XmlSchemaComplexType)schema.getTypeByName(typeQName);
        assertNotNull(xsct);

        XmlSchemaSimpleContent xssc = (XmlSchemaSimpleContent)xsct.getContentModel();
        assertNotNull(xssc);

        XmlSchemaSimpleContentRestriction xsscr = (XmlSchemaSimpleContentRestriction)xssc.getContent();
        assertNotNull(xsscr);
        assertEquals(new QName("http://soapinterop.org/types", "drinksize"), xsscr.getBaseTypeName());
        List<XmlSchemaAttributeOrGroupRef> xsoc = xsscr.getAttributes();
        assertNotNull(xsoc);
        assertEquals(2, xsoc.size());
View Full Code Here

TOP

Related Classes of org.apache.ws.commons.schema.XmlSchemaSimpleContent

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.