Package org.eclipse.xsd

Examples of org.eclipse.xsd.XSDSchema.updateElement()


             {
                 xmlSchema = (XSDSchema)iterator.next();

                 if(xmlSchema.getElement() == null)
                 {
                     xmlSchema.updateElement();
                 }

                 transformer.transform(new DOMSource(xmlSchema.getElement().getOwnerDocument()),
                         new StreamResult(writer));
             }
View Full Code Here


        //create the schema
        DescribeFeatureTypeType req = (DescribeFeatureTypeType)describeFeatureType.getParameters()[0];
        XSDSchema schema = schemaBuilder.build(featureTypeInfos, req.getBaseUrl());

        //serialize
        schema.updateElement();
        final String encoding = global.getCharset();
        XSDResourceImpl.serialize(output, schema.getElement(), encoding);
    }
   
    public static class V11 extends XmlSchemaEncoder {
View Full Code Here

        }

        XSDSchema schema = builder.build(results.getFeatureTypeInfo(), req.getBaseUrl());

        // serialize
        schema.updateElement();
        XSDResourceImpl.serialize(output, schema.getElement());
    }

    public boolean canHandle(Operation operation) {
        return "DescribeVersionedFeatureType".equalsIgnoreCase(operation
View Full Code Here

                while (iterator.hasNext()) {
                    xmlSchema = (XSDSchema)iterator.next();

                    if (xmlSchema.getElement() == null) {
                        xmlSchema.updateElement();
                    }

                    transformer.transform(new DOMSource(xmlSchema.getElement().getOwnerDocument()),
                                          new StreamResult(writer));
                }
View Full Code Here

             {
                 xmlSchema = (XSDSchema)iterator.next();

                 if(xmlSchema.getElement() == null)
                 {
                     xmlSchema.updateElement();
                 }

                 transformer.transform(new DOMSource(xmlSchema.getElement().getOwnerDocument()),
                         new StreamResult(writer));
             }
View Full Code Here

        if (packageBpelNamespaceMap.get(e) != null)
          fireAddMappingEvent(new JbprocessAttributeMapping("bpel namespace",e,"targetNamespace",packageBpelNamespaceMap.get(e)));
        if (xsdSchemaMap.get(e) != null){
          XSDSchema schema = xsdSchemaMap.get(e);
          schema.updateElement();
          fireAddMappingEvent(new JbprocessElementMapping(e,schema.getElement()));
        }
        if (wsdlDefMap.get(e) != null){
          Definition wsdl = wsdlDefMap.get(e);
          wsdl.updateElement();
View Full Code Here

      addSchemaImports(schema);
      try {       
        String fileName = "schema" + schemaCounter++ + ".xsd";
        schemaFileMap.put(schema, fileName);
        schema.setSchemaLocation(fileName);
        schema.updateElement();
        schema.updateDocument();
        write(schema.getElement(),fileName);                     
      } catch (Exception e){
        System.err.println("Error writing XML Schema: " + e.getMessage());
      }
View Full Code Here

        }

        XSDSchema schema = builder.build(results.getFeatureTypeInfo(), req.getBaseUrl());

        // serialize
        schema.updateElement();
        XSDResourceImpl.serialize(output, schema.getElement());
    }

    public boolean canHandle(Operation operation) {
        return "DescribeVersionedFeatureType".equalsIgnoreCase(operation
View Full Code Here

        XSDComplexTypeDefinition featureType = xsd(xsd, simpleFeatureType, ABSTRACT_FEATURE_TYPE);

        // package up and add to xsd
        element.setTypeDefinition(featureType);
        xsd.getContents().add(element);
        xsd.updateElement();
        return xsd;
    }

    /**
     * Build the XSD definition for the provided type.
View Full Code Here

        DescribeFeatureTypeRequest req = DescribeFeatureTypeRequest.adapt(request);
       
        XSDSchema schema = schemaBuilder.build(featureTypeInfos, req.getBaseURL());

        //serialize
        schema.updateElement();
        final String encoding = gs.getSettings().getCharset();
        XSDResourceImpl.serialize(output, schema.getElement(), encoding);
    }
   
    public static class V20 extends XmlSchemaEncoder {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.