Package org.apache.ws.commons.schema

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


                    fieldXpath = fields.get(j);
                }
                assertNotNull(fieldXpath);
                assertEquals("@productId", fieldXpath.getXPath());
            } else if (o instanceof XmlSchemaKeyref) {
                XmlSchemaKeyref keyref = (XmlSchemaKeyref)o;
                assertNotNull(keyref);
                assertEquals("keyRefTest", keyref.getName());
                assertEquals(new QName("http://soapinterop.org/types", "keyTest"), keyref.getRefer());

                XmlSchemaXPath selectorXpath = keyref.getSelector();
                assertEquals("tns:manufacturers/tns:location/tns:productName", selectorXpath.getXPath());

                List<XmlSchemaXPath> fields = keyref.getFields();
                assertEquals(1, fields.size());
                XmlSchemaXPath fieldXpath = null;
                for (int j = 0; j < fields.size(); j++) {
                    fieldXpath = fields.get(j);
                }
View Full Code Here


                    fieldXpath = fields.get(j);
                }
                assertNotNull(fieldXpath);
                assertEquals("@productId", fieldXpath.getXPath());
            } else if (o instanceof XmlSchemaKeyref) {
                XmlSchemaKeyref keyref = (XmlSchemaKeyref)o;
                assertNotNull(keyref);
                assertEquals("keyRefTest", keyref.getName());
                assertEquals(new QName("http://soapinterop.org/types", "keyTest"), keyref.getRefer());

                XmlSchemaXPath selectorXpath = keyref.getSelector();
                assertEquals("tns:manufacturers/tns:location/tns:productName", selectorXpath.getXPath());

                List<XmlSchemaXPath> fields = keyref.getFields();
                assertEquals(1, fields.size());
                XmlSchemaXPath fieldXpath = null;
                for (int j = 0; j < fields.size(); j++) {
                    fieldXpath = fields.get(j);
                }
View Full Code Here

                    fieldXpath = (XmlSchemaXPath)fields.getItem(j);
                }
                assertNotNull(fieldXpath);
                assertEquals("@productId", fieldXpath.getXPath());
            } else if (o instanceof XmlSchemaKeyref) {
                XmlSchemaKeyref keyref = (XmlSchemaKeyref)o;
                assertNotNull(keyref);
                assertEquals("keyRefTest", keyref.getName());
                assertEquals(new QName("http://soapinterop.org/types",
                                       "keyTest"),
                             keyref.getRefer());
               
                XmlSchemaXPath selectorXpath = keyref.getSelector();
                assertEquals("tns:manufacturers/tns:location/tns:productName",
                             selectorXpath.getXPath());

                XmlSchemaObjectCollection fields = keyref.getFields();
                assertEquals(1, fields.getCount());
                XmlSchemaXPath fieldXpath = null;
                for (int j = 0; j < fields.getCount(); j++) {
                    fieldXpath = (XmlSchemaXPath)fields.getItem(j);
                }
View Full Code Here

TOP

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

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.