Package org.apache.ws.commons.schema

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


               
                // Check to see if this element references the binding we are creating.  For now,
                // this situation won't be handled. REVISIT.
                if (annotation != null) {
                    Iterator i = annotation.getItems().getIterator();
                    XmlSchemaAppInfo appInfo = null;
                    while (i.hasNext()) {
                        Object item = i.next();
                        if (item instanceof XmlSchemaAppInfo) {
                            appInfo = (XmlSchemaAppInfo)item;
                            break;
                        }
                    }
                   
                    if (appInfo != null) {
                        NodeList nlist = appInfo.getMarkup();
                        Node node = nlist.item(0);
                        String info = node.getNodeValue();
                        info.trim();
                        String annotationBindingName = "";
                        if ("corba:binding=".equals(info.substring(0, 14))) {
View Full Code Here


        throws Exception {
        CorbaTypeImpl corbaTypeImpl = null;

        if (annotation != null) {
            for (XmlSchemaAnnotationItem item : annotation.getItems()) {
                XmlSchemaAppInfo appInfo = (XmlSchemaAppInfo)item;
                if (appInfo != null) {
                    NodeList nlist = appInfo.getMarkup();
                    Node node = nlist.item(0);
                    String info = node.getNodeValue();

                    info = info.trim();
View Full Code Here

                }

                // Check to see if this element references the binding we are creating.  For now,
                // this situation won't be handled. REVISIT.
                if (annotation != null) {
                    XmlSchemaAppInfo appInfo = null;
                    for (XmlSchemaAnnotationItem ann : annotation.getItems()) {
                        if (ann instanceof XmlSchemaAppInfo) {
                            appInfo = (XmlSchemaAppInfo)ann;
                            break;
                        }
                    }

                    if (appInfo != null) {
                        NodeList nlist = appInfo.getMarkup();
                        Node node = nlist.item(0);
                        String info = node.getNodeValue();
                        info = info.trim();
                        String annotationBindingName = "";
                        if ("corba:binding=".equals(info.substring(0, 14))) {
View Full Code Here

        throws Exception {
        CorbaTypeImpl corbaTypeImpl = null;

        if (annotation != null) {
            for (XmlSchemaAnnotationItem item : annotation.getItems()) {
                XmlSchemaAppInfo appInfo = (XmlSchemaAppInfo)item;
                if (appInfo != null) {
                    NodeList nlist = appInfo.getMarkup();
                    Node node = nlist.item(0);
                    String info = node.getNodeValue();

                    info = info.trim();
View Full Code Here

                }

                // Check to see if this element references the binding we are creating.  For now,
                // this situation won't be handled. REVISIT.
                if (annotation != null) {
                    XmlSchemaAppInfo appInfo = null;
                    for (XmlSchemaAnnotationItem ann : annotation.getItems()) {
                        if (ann instanceof XmlSchemaAppInfo) {
                            appInfo = (XmlSchemaAppInfo)ann;
                            break;
                        }
                    }

                    if (appInfo != null) {
                        NodeList nlist = appInfo.getMarkup();
                        Node node = nlist.item(0);
                        String info = node.getNodeValue();
                        info = info.trim();
                        String annotationBindingName = "";
                        if ("corba:binding=".equals(info.substring(0, 14))) {
View Full Code Here

                }

                // Check to see if this element references the binding we are creating.  For now,
                // this situation won't be handled. REVISIT.
                if (annotation != null) {
                    XmlSchemaAppInfo appInfo = null;
                    for (XmlSchemaAnnotationItem ann : annotation.getItems()) {
                        if (ann instanceof XmlSchemaAppInfo) {
                            appInfo = (XmlSchemaAppInfo)ann;
                            break;
                        }
                    }

                    if (appInfo != null) {
                        NodeList nlist = appInfo.getMarkup();
                        Node node = nlist.item(0);
                        String info = node.getNodeValue();
                        info = info.trim();
                        String annotationBindingName = "";
                        if ("corba:binding=".equals(info.substring(0, 14))) {
View Full Code Here

        throws Exception {
        CorbaType corbaTypeImpl = null;

        if (annotation != null) {
            for (XmlSchemaAnnotationItem item : annotation.getItems()) {
                XmlSchemaAppInfo appInfo = (XmlSchemaAppInfo)item;
                if (appInfo != null) {
                    NodeList nlist = appInfo.getMarkup();
                    Node node = nlist.item(0);
                    String info = node.getNodeValue();

                    info = info.trim();
View Full Code Here

            refElement.setSchemaType(wsaType);
            refElement.setSchemaTypeName(wsaType.getQName());

            // Create an annotation which contains the CORBA binding for the element
            XmlSchemaAnnotation annotation = new XmlSchemaAnnotation();
            XmlSchemaAppInfo appInfo = new XmlSchemaAppInfo();
            try {
                DocumentBuilder db = DocumentBuilderFactory.newInstance().newDocumentBuilder();
                Document doc = db.newDocument();
                Element el = doc.createElement("appinfo");
                el.setTextContent("corba:binding=" + bindingName.getLocalPart());
                // TODO: This is correct but the appinfo markup is never added to the
                // schema.  Investigate.
                appInfo.setMarkup(el.getChildNodes());
            } catch (ParserConfigurationException ex) {
                throw new RuntimeException("[ObjectReferenceVisitor: error creating endpoint schema]");
            }

            annotation.getItems().add(appInfo);
View Full Code Here

                }

                // Check to see if this element references the binding we are creating.  For now,
                // this situation won't be handled. REVISIT.
                if (annotation != null) {
                    XmlSchemaAppInfo appInfo = null;
                    for (XmlSchemaAnnotationItem ann : annotation.getItems()) {
                        if (ann instanceof XmlSchemaAppInfo) {
                            appInfo = (XmlSchemaAppInfo)ann;
                            break;
                        }
                    }

                    if (appInfo != null) {
                        NodeList nlist = appInfo.getMarkup();
                        Node node = nlist.item(0);
                        String info = node.getNodeValue();
                        info = info.trim();
                        String annotationBindingName = "";
                        if ("corba:binding=".equals(info.substring(0, 14))) {
View Full Code Here

       
        XmlSchemaAnnotation annotation = schema.getAnnotation();
        assertTrue("annotation is retrieved ok", null != annotation);
        List<XmlSchemaAnnotationItem> items = annotation.getItems();
        assertTrue(items.get(0) instanceof XmlSchemaAppInfo);
        XmlSchemaAppInfo appInfo = (XmlSchemaAppInfo) items.get(0);
        NodeList markup = appInfo.getMarkup();
        assertTrue("The markup exists", null != markup);
        Node node = markup.item(1);
        assertTrue(node instanceof Element);
        Element el = (Element) node;
        assertEquals("First level child is retrieved ok",
View Full Code Here

TOP

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

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.