Examples of generateSchema()


Examples of javax.xml.bind.JAXBContext.generateSchema()

        marshaller.marshal(position, writer);
        String positionString = writer.toString();
        logger.debug("Position converted to XML:\n" + positionString);

        // Write out the schema (for debugging purposes)
        jaxbContext.generateSchema(new DefaultSchemaOutputResolver("target"));

        // Read it from XML
        Position positionRead = (Position) jaxbContext
                .createUnmarshaller()
                .unmarshal(new StringReader(positionString));
View Full Code Here

Examples of javax.xml.bind.JAXBContext.generateSchema()

        marshaller.marshal(order, writer);
        String orderString = writer.toString();
        logger.debug("Order converted to XML:\n" + orderString);

        // Write out the schema (for debugging purposes)
        jaxbContext.generateSchema(new DefaultSchemaOutputResolver("target"));

        // Read it from XML
        Order orderRead =
            (Order)jaxbContext.createUnmarshaller().unmarshal(
                new StringReader(orderString));
View Full Code Here

Examples of javax.xml.bind.JAXBContext.generateSchema()

        try
        {
            Class<?> clazz = Thread.currentThread().getContextClassLoader().loadClass(className);
            JAXBContext context = JAXBContext.newInstance(clazz);
            final ByteArrayOutputStream baos = new ByteArrayOutputStream();
            context.generateSchema(new SchemaOutputResolver()
            {
                @Override
                public Result createOutput(String namespaceURI, String suggestedFileName) throws IOException
                {
                    StreamResult result = new StreamResult(baos);
View Full Code Here

Examples of javax.xml.bind.JAXBContext.generateSchema()

        try {
            JAXBContext context = JAXBContext.newInstance( classSet.toArray( new Class[classSet.size()] ) );

            final List<StreamResult> results = new ArrayList<StreamResult>();

            context.generateSchema( new SchemaOutputResolver() {

                int counter = 0;

                @Override
                public Result createOutput( String namespaceUri, String suggestedFileName ) {
View Full Code Here

Examples of javax.xml.bind.JAXBContext.generateSchema()

        try {
            final JAXBContext context = JAXBContext.newInstance(classSet.toArray(new Class[classSet.size()]));

            final List<StreamResult> results = new ArrayList<>();

            context.generateSchema(new SchemaOutputResolver() {

                int counter = 0;

                @Override
                public Result createOutput(final String namespaceUri, final String suggestedFileName) {
View Full Code Here

Examples of org.apache.axis2.description.java2wsdl.SchemaGenerator.generateSchema()

            schemaGenerator
                    .setElementFormDefault(Java2WSDLConstants.FORM_DEFAULT_UNQUALIFIED);
        }
        // package to namespace map
        schemaGenerator.setPkg2nsmap(axisService.getP2nMap());
        Collection schemas = schemaGenerator.generateSchema();
        axisService.addSchema(schemas);
        axisService.setSchemaTargetNamespace(schemaGenerator
                .getSchemaTargetNameSpace());
        axisService.setTypeTable(schemaGenerator.getTypeTable());
        if (Java2WSDLConstants.DEFAULT_TARGET_NAMESPACE.equals(axisService
View Full Code Here

Examples of org.apache.axis2.description.java2wsdl.SchemaGenerator.generateSchema()

            schemaGenerator
                    .setElementFormDefault(Java2WSDLConstants.FORM_DEFAULT_UNQUALIFIED);
        }
        // package to namespace map
        schemaGenerator.setPkg2nsmap(axisService.getP2nMap());
        Collection schemas = schemaGenerator.generateSchema();
        axisService.addSchema(schemas);
        axisService.setSchemaTargetNamespace(schemaGenerator
                .getSchemaTargetNameSpace());
        axisService.setTypeTable(schemaGenerator.getTypeTable());
        if (Java2WSDLConstants.DEFAULT_TARGET_NAMESPACE.equals(axisService
View Full Code Here

Examples of org.apache.axis2.description.java2wsdl.SchemaGenerator.generateSchema()

      schemaGenerator
          .setElementFormDefault(Java2WSDLConstants.FORM_DEFAULT_UNQUALIFIED);
    }
    // package to namespace map
    schemaGenerator.setPkg2nsmap(axisService.getP2nMap());
    Collection schemas = schemaGenerator.generateSchema();
    axisService.addSchema(schemas);
    axisService.setSchemaTargetNamespace(schemaGenerator
        .getSchemaTargetNameSpace());
    axisService.setTypeTable(schemaGenerator.getTypeTable());
    if (Java2WSDLConstants.DEFAULT_TARGET_NAMESPACE.equals(axisService
View Full Code Here

Examples of org.apache.axis2.description.java2wsdl.SchemaGenerator.generateSchema()

            schemaGenerator
                    .setElementFormDefault(Java2WSDLConstants.FORM_DEFAULT_UNQUALIFIED);
        }
        // package to namespace map
        schemaGenerator.setPkg2nsmap(axisService.getP2nMap());
        Collection schemas = schemaGenerator.generateSchema();
        axisService.addSchema(schemas);
        axisService.setSchemaTargetNamespace(schemaGenerator
                .getSchemaTargetNameSpace());
        axisService.setTypeTable(schemaGenerator.getTypeTable());
        if (Java2WSDLConstants.DEFAULT_TARGET_NAMESPACE.equals(axisService
View Full Code Here

Examples of org.apache.axis2.description.java2wsdl.SchemaGenerator.generateSchema()

        if (!axisService.isElementFormDefault()) {
            schemaGenerator.setElementFormDefault(Java2WSDLConstants.FORM_DEFAULT_UNQUALIFIED);
        }
        // package to namespace map
        schemaGenerator.setPkg2nsmap(axisService.getP2nMap());
        Collection schemas = schemaGenerator.generateSchema();
        axisService.addSchema(schemas);
        axisService.setSchemaTargetNamespace(schemaGenerator.getSchemaTargetNameSpace());
        axisService.setTypeTable(schemaGenerator.getTypeTable());
        if (Java2WSDLConstants.DEFAULT_TARGET_NAMESPACE.equals(
                axisService.getTargetNamespace())) {
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.