Package com.eviware.soapui.impl.wadl.inference.schema

Examples of com.eviware.soapui.impl.wadl.inference.schema.Particle$Factory


                        Schema otherSchema = context.getSchemaSystem().getSchemaForNamespace(qname.getNamespaceURI());
                        schema.putPrefixForNamespace(qname.getPrefix(), qname.getNamespaceURI());
                        if (otherSchema == null) {
                            otherSchema = context.getSchemaSystem().newSchema(qname.getNamespaceURI());
                        }
                        Particle ref = otherSchema.getParticle(qname.getLocalPart());
                        if (ref == null) {
                            ref = otherSchema.newAttribute(qname.getLocalPart());
                        }
                        if (completed) {
                            ref.setAttribute("use", "optional");
                        }
                        Particle newAttribute = Particle.Factory.newReferenceInstance(schema, ref);
                        attributes.put(qname, newAttribute);
                        newAttribute.validate(context);
                    }
                } else {
                    throw new XmlException("Illegal attribute!");
                }
                seen.add(qname);
View Full Code Here


        s.append("</" + xsdns + ":complexType>");
        return s.toString();
    }

    private Particle newAttribute(QName qname) {
        Particle p = Particle.Factory.newAttributeInstance(schema, qname.getLocalPart());
        attributes.put(qname, p);
        if (completed) {
            p.setAttribute("use", "optional");
        }
        return p;
    }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wadl.inference.schema.Particle$Factory

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.