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

Examples of com.eviware.soapui.impl.wadl.inference.schema.Schema


              element.setAttribute( "minOccurs", "0" );
            particles.put( item, element );
          }
          else
          {
            Schema otherSchema = context.getSchemaSystem().getSchemaForNamespace( item.getNamespaceURI() );
            schema.putPrefixForNamespace( item.getPrefix(), item.getNamespaceURI() );
            if( otherSchema == null )
            {
              otherSchema = context.getSchemaSystem().newSchema( item.getNamespaceURI() );
            }
            Particle ref = otherSchema.getParticle( item.getLocalPart() );
            if( ref == null )
            {
              ref = otherSchema.newElement( item.getLocalPart() );
            }
            if( completed )
              ref.setAttribute( "minOccurs", "0" );
            particles.put( item, Particle.Factory.newReferenceInstance( schema, ref ) );
          }
View Full Code Here


          {
            newAttribute( qname ).validate( context );
          }
          else
          {
            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 );
View Full Code Here

                        if (completed) {
                            element.setAttribute("minOccurs", "0");
                        }
                        particles.put(item, element);
                    } else {
                        Schema otherSchema = context.getSchemaSystem().getSchemaForNamespace(item.getNamespaceURI());
                        schema.putPrefixForNamespace(item.getPrefix(), item.getNamespaceURI());
                        if (otherSchema == null) {
                            otherSchema = context.getSchemaSystem().newSchema(item.getNamespaceURI());
                        }
                        Particle ref = otherSchema.getParticle(item.getLocalPart());
                        if (ref == null) {
                            ref = otherSchema.newElement(item.getLocalPart());
                        }
                        if (completed) {
                            ref.setAttribute("minOccurs", "0");
                        }
                        particles.put(item, Particle.Factory.newReferenceInstance(schema, ref));
View Full Code Here

                } else if (context.getHandler().callback(ConflictHandler.Event.CREATION, ConflictHandler.Type.ATTRIBUTE,
                        new QName(schema.getNamespace(), qname.getLocalPart()), context.getPath(), "Undeclared attribute.")) {
                    if (qname.getNamespaceURI().equals(schema.getNamespace()) || qname.getNamespaceURI().equals("")) {
                        newAttribute(qname).validate(context);
                    } else {
                        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);
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wadl.inference.schema.Schema

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.