Examples of ObjectFactory


Examples of net.sf.mpxj.planner.schema.ObjectFactory

         // files with the full XML declaration produced by JAXB. The
         // following property suppresses this declaration.
         //        
         marshaller.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE);

         m_factory = new ObjectFactory();
         m_plannerProject = m_factory.createProject();

         writeProjectHeader();
         writeCalendars();
         writeResources();
View Full Code Here

Examples of net.sourceforge.stripes.controller.ObjectFactory

        Class clazz = getBootstrapPropertyResolver().getClassProperty(propertyName, componentType);
        if (clazz != null) {
            try {
                T component;

                ObjectFactory objectFactory = getObjectFactory();
                if (objectFactory != null) {
                    component = objectFactory.newInstance((Class<T>) clazz);
                }
                else {
                    component = (T) clazz.newInstance();
                }
View Full Code Here

Examples of net.webservicex.ObjectFactory

    public void setUp()
            throws Exception
    {
        super.setUp();

        ObjectFactory objectFactory = new ObjectFactory();
        builder = new ObjectServiceFactory(getXFire().getTransportManager(),
                                           new AegisBindingProvider(new JaxbTypeRegistry(objectFactory)));
        ArrayList schemas = new ArrayList();
        schemas.add("src/test-schemas/WeatherForecast.xsd");
        Map props = new HashMap();
View Full Code Here

Examples of nl.clockwork.mule.ebms.model.xml.xmldsig.ObjectFactory

                      message.getMessageHeader().getTo().getRole(),
                      message.getMessageHeader().getService().getType(),
                      message.getMessageHeader().getService().getValue(),
                      message.getMessageHeader().getAction(),
                      message.getOriginal(),
                      XMLMessageBuilder.getInstance(SignatureType.class).handle(new ObjectFactory().createSignature(message.getSignature())),
                      XMLMessageBuilder.getInstance(MessageHeader.class).handle(message.getMessageHeader()),
                      XMLMessageBuilder.getInstance(SyncReply.class).handle(message.getSyncReply()),
                      XMLMessageBuilder.getInstance(MessageOrder.class).handle(message.getMessageOrder()),
                      XMLMessageBuilder.getInstance(AckRequested.class).handle(message.getAckRequested()),
                      XMLMessageBuilder.getInstance(Manifest.class).handle(message.getManifest()),
View Full Code Here

Examples of oasis.names.specification.ubl.schema.xsd.invoice_2.ObjectFactory

    public static void marshal(InvoiceType invoiceType, OutputStream outputStream,
                               String encoding) throws FailedToMarshalException {
        try {
            JAXBContext jc = JAXBContext.newInstance(UBL_INV_PKG);
            ObjectFactory of = new ObjectFactory();
            javax.xml.bind.Marshaller m = jc.createMarshaller();
            m.setProperty(javax.xml.bind.Marshaller.JAXB_ENCODING, encoding);
            m.setProperty(javax.xml.bind.Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
            Schema schema = getInvoiceTypeSchema();
            if (schema != null) {
                m.setSchema(schema);
            }
            m.marshal(of.createInvoice(invoiceType), outputStream);
        } catch (Exception e) {
            throw new FailedToMarshalException(e);
        }
    }
View Full Code Here

Examples of oasis.names.specification.ubl.schema.xsd.order_2.ObjectFactory

    public static void marshal(OrderType orderType, OutputStream outputStream,
                               String encoding) throws org.openinvoice.ubl4j.core.common.FailedToMarshalException {
        try {
            JAXBContext jc = JAXBContext.newInstance(UBL_ORD_PKG);
            ObjectFactory of = new ObjectFactory();
            javax.xml.bind.Marshaller m = jc.createMarshaller();
            m.setProperty(javax.xml.bind.Marshaller.JAXB_ENCODING, encoding);
            m.setProperty(javax.xml.bind.Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
            Schema schema = getOrderTypeSchema();
            if (schema != null) {
                m.setSchema(schema);
            }
            m.marshal(of.createOrder(orderType), outputStream);
        } catch (JAXBException e) {
            throw new org.openinvoice.ubl4j.core.common.FailedToMarshalException(e);
        } catch (SAXException e) {
            throw new org.openinvoice.ubl4j.core.common.FailedToMarshalException(e);
        }
View Full Code Here

Examples of org.apache.avalon.excalibur.pool.ObjectFactory

        throws Exception
    {
        String name = "SingleThreadedPool_And_ResourceLimitingPool_Max10_Gets10_SmallPoolables";

        Class poolableClass = SmallPoolable.class;
        ObjectFactory factory = new ClassInstanceObjectFactory( poolableClass, m_poolLogger );
        int min = 0;
        int max = 10;
        boolean maxStrict = false;
        boolean blocking = false;
        long blockTimeout = 0;
View Full Code Here

Examples of org.apache.axis2.jaxws.client.soapaction.ObjectFactory

       
        Map<String, Object> requestCtx = dispatch.getRequestContext();
        requestCtx.put(BindingProvider.SOAPACTION_USE_PROPERTY, Boolean.TRUE);
        requestCtx.put(BindingProvider.SOAPACTION_URI_PROPERTY, "http://jaxws.axis2.apache.org/client/soapaction/getPrice");
       
        ObjectFactory of = new ObjectFactory();
        GetPriceType gpt = of.createGetPriceType();
        gpt.setItem("TEST");
       
        // The element that is sent should be <getPriceWithAction>
        // so it will resolve to the getPriceWithAction operation
        // defined in the WSDL.
        JAXBElement<GetPriceType> getPrice = of.createGetPriceWithAction(gpt);
        JAXBElement<GetPriceResponseType> getPriceResponse = (JAXBElement<GetPriceResponseType>) dispatch.invoke(getPrice);
       
        GetPriceResponseType value = getPriceResponse.getValue();
        assertNotNull("The response was null", value);
       
View Full Code Here

Examples of org.apache.axis2.jaxws.sample.addressbook.ObjectFactory

        service.addPort(QNAME_PORT, SOAPBinding.SOAP11HTTP_BINDING, URL_ENDPOINT);
        Dispatch<Object> dispatch = service.createDispatch(
                QNAME_PORT, jbc, Mode.PAYLOAD);
               
        // Create the JAX-B object that will hold the data
        ObjectFactory factory = new ObjectFactory();
        AddEntry request = factory.createAddEntry();
        AddressBookEntry content = factory.createAddressBookEntry();
       
        content.setFirstName("Ron");
        content.setLastName("Testerson");
        content.setPhone("512-459-2222");
       
View Full Code Here

Examples of org.apache.axis2.jaxws.sample.addressbook.data.ObjectFactory

        service.addPort(QNAME_PORT, SOAPBinding.SOAP11HTTP_BINDING, URL_ENDPOINT);
        Dispatch<Object> dispatch = service.createDispatch(
                QNAME_PORT, jbc, Mode.PAYLOAD);
               
        // Create the JAX-B object that will hold the data
        ObjectFactory factory = new ObjectFactory();
        AddEntry request = factory.createAddEntry();
        AddressBookEntry content = factory.createAddressBookEntry();
       
        content.setFirstName("Ron");
        content.setLastName("Testerson");
        content.setPhone("512-459-2222");
       
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.