Package org.apache.ws.commons.schema

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


        s.clear();
        s.add("teamMascot");
        s.add("teamLogo");
        for (Iterator i = xsot.getValues(); i.hasNext(); ) {
            XmlSchemaNotation xsn = (XmlSchemaNotation)i.next();
            String name = xsn.getName();
            XmlSchemaAnnotation xsa = xsn.getAnnotation();
            XmlSchemaObjectCollection col = xsa.getItems();
            assertEquals(1, col.getCount());
            XmlSchemaDocumentation xsd = null;
            for (int k = 0; k < col.getCount(); k++) {
                xsd = (XmlSchemaDocumentation)col.getItem(k);
            }
            if (name.equals("teamMascot")) {
                assertEquals("http://www.team.com/graphics/teamMascot",
                             xsn.getPublic());
                assertEquals("com/team/graphics/teamMascot",
                             xsn.getSystem());
                assertEquals("notation.teamMascot", xsn.getId());
                assertEquals("en", xsd.getLanguage());
                NodeList nl = xsd.getMarkup();
                for (int j = 0; j < nl.getLength(); j++) {
                    Node n = nl.item(j);
                    if (n.getNodeType() == Node.TEXT_NODE) {
                        assertEquals("Location of the corporate mascot.",
                                     n.getNodeValue());
                    }
                }
            } else if (name.equals("teamLogo")) {
                assertEquals("http://www.team.com/graphics/teamLogo",
                             xsn.getPublic());
                assertEquals("com/team/graphics/teamLogo",
                             xsn.getSystem());
                assertEquals("notation.teamLogo", xsn.getId());
                assertEquals("en", xsd.getLanguage());
                NodeList nl = xsd.getMarkup();
                for (int j = 0; j < nl.getLength(); j++) {
                    Node n = nl.item(j);
                    if (n.getNodeType() == Node.TEXT_NODE) {
View Full Code Here


        s.clear();
        s.add("teamMascot");
        s.add("teamLogo");
        for (Map.Entry<QName, XmlSchemaNotation> e : notations.entrySet()) {
            XmlSchemaNotation xsn = e.getValue();
            String name = xsn.getName();
            XmlSchemaAnnotation xsa = xsn.getAnnotation();
            List<XmlSchemaAnnotationItem> col = xsa.getItems();
            assertEquals(1, col.size());
            XmlSchemaDocumentation xsd = null;
            for (int k = 0; k < col.size(); k++) {
                xsd = (XmlSchemaDocumentation)col.get(k);
            }
            if ("teamMascot".equals(name)) {
                assertEquals("http://www.team.com/graphics/teamMascot", xsn.getPublic());
                assertEquals("com/team/graphics/teamMascot", xsn.getSystem());
                assertEquals("notation.teamMascot", xsn.getId());
                assertEquals("en", xsd.getLanguage());
                NodeList nl = xsd.getMarkup();
                for (int j = 0; j < nl.getLength(); j++) {
                    Node n = nl.item(j);
                    if (n.getNodeType() == Node.TEXT_NODE) {
                        assertEquals("Location of the corporate mascot.", n.getNodeValue());
                    }
                }
            } else if ("teamLogo".equals(name)) {
                assertEquals("http://www.team.com/graphics/teamLogo", xsn.getPublic());
                assertEquals("com/team/graphics/teamLogo", xsn.getSystem());
                assertEquals("notation.teamLogo", xsn.getId());
                assertEquals("en", xsd.getLanguage());
                NodeList nl = xsd.getMarkup();
                for (int j = 0; j < nl.getLength(); j++) {
                    Node n = nl.item(j);
                    if (n.getNodeType() == Node.TEXT_NODE) {
View Full Code Here

TOP

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

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.