Examples of updateElement()


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

        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

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

      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

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

        }

        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

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

        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

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

        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

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

        //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 V20 extends XmlSchemaEncoder {
View Full Code Here

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

            //set abstract=true if abstract
            simpleSchemaTypeName = new QName(dataType.getURI(),
                                             dataType.getName(),
                                             (String)targetNamespacePrefixMap.get(dataType.getURI()));
            xmlSchema.getContents().add(simpleType);
            simpleType.updateElement();
           
            addAnnotations(simpleType, dataType);
           
            if ( !dataType.getBaseTypes().isEmpty() )
            {
View Full Code Here

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

            //set abstract=true if abstract
            simpleSchemaTypeName = new QName(dataType.getURI(),
                                             dataType.getName(),
                                             (String)targetNamespacePrefixMap.get(dataType.getURI()));
            xmlSchema.getContents().add(simpleType);
            simpleType.updateElement();
           
            addAnnotations(simpleType, dataType);
           
            if ( !dataType.getBaseTypes().isEmpty() )
            {
View Full Code Here

Examples of org.fao.geonet.kernel.Thesaurus.updateElement()

                .setCoordNorth(Util.getParam(params, "north"))
                .setCoordSouth(Util.getParam(params, "south"))
                .setCoordWest(Util.getParam(params, "west"));
        }
       
        thesaurus.updateElement(bean, false);

    Element elResp = new Element(Jeeves.Elem.RESPONSE);
    elResp.addContent(new Element("selected").setText(ref));
    elResp.addContent(new Element("mode").setText("edit"));
    return elResp;
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.