Package org.apache.muse.core.serializer

Examples of org.apache.muse.core.serializer.Serializer.toXML()


        SerializerRegistry registry = SerializerRegistry.getInstance();
        Serializer ser = registry.getSerializer(type);       
        Element[] xml = new Element[properties.length];
       
        for (int n = 0; n < properties.length; ++n)
            xml[n] = ser.toXML(properties[n], qname);
       
        return xml;
    }

    /**
 
View Full Code Here


        Class theClass = obj.getClass();
       
        SerializerRegistry registry = SerializerRegistry.getInstance();
        Serializer ser = registry.getSerializer(theClass);
       
        Element xml = ser.toXML(obj, qname);
       
        //
        // HACK: Workaround to reuse serializers intended for MessageHandlers
        //
        //       Instances of the Serializer interface are written so that
View Full Code Here

        //
        // for complex types, we need a child element under the
        // response body element
        //
        Element responseXML = XmlUtils.createElement(responseBodyName);
        Element valueXML = ser.toXML(result, returnValueName);
       
        //
        // for arrays, we put the children (array items) under the
        // response body element
        //
View Full Code Here

        if (content == null)
            throw new NullPointerException(_MESSAGES.get("NullMessageContent"));
       
        SerializerRegistry registry = SerializerRegistry.getInstance();
        Serializer ser = registry.getSerializer(content.getClass());
        Element xml = ser.toXML(content, qname);
       
        _messageContent.put(qname, xml);
    }
   
    public Element getMessageContent(QName qname)
View Full Code Here

     
        Class theClass = obj.getClass();
       
        SerializerRegistry registry = SerializerRegistry.getInstance();
        Serializer ser = registry.getSerializer(theClass);
        return ser.toXML(obj, qname);
    }
   
    public Element toXML(Object[] parameters)
        throws SoapFault
    {
View Full Code Here

       
        //
        // for complex types, we need a child element under the
        // response body element
        //
        Element valueXML = ser.toXML(result, returnValueName);
       
        //
        // for arrays, we put the children (array items) under the
        // response body element
        //
View Full Code Here

        //
        for (int n = 0; n < content.length; ++n)
        {
            Class contentType = content[n].getClass();
            Serializer ser = registry.getSerializer(contentType);
            contentXML[n] = ser.toXML(content[n], contentNames[n]);
        }
       
        publish(topicName, contentXML);
    }
   
View Full Code Here

        if (content == null)
            throw new NullPointerException(_MESSAGES.get("NullMessageContent"));
       
        SerializerRegistry registry = SerializerRegistry.getInstance();
        Serializer ser = registry.getSerializer(content.getClass());
        Element xml = ser.toXML(content, qname);
       
        _messageContent.put(qname, xml);
    }
   
    public Element getMessageContent(QName qname)
View Full Code Here

    public static Element convertToElement(Object property, Class type, QName qname)
        throws SoapFault
    {
        SerializerRegistry registry = SerializerRegistry.getInstance();
        Serializer ser = registry.getSerializer(type);       
        return ser.toXML(property, qname);
    }
   
    /**
     *
     * Uses Muse's registered Serializers to convert the given objects
View Full Code Here

        SerializerRegistry registry = SerializerRegistry.getInstance();
        Serializer ser = registry.getSerializer(type);       
        Element[] xml = new Element[properties.length];
       
        for (int n = 0; n < properties.length; ++n)
            xml[n] = ser.toXML(properties[n], qname);
       
        return xml;
    }

    /**
 
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.