Package org.apache.muse.core.serializer

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


        Object objects = Array.newInstance(type, properties.length);
       
        try
        {
            for (int n = 0; n < properties.length; ++n)
                Array.set(objects, n, deser.fromXML(properties[n]));
        }
       
        catch (SoapFault fault)
        {
            throw new SerializationErrorFault(fault);
View Full Code Here


        if (theClass == null || theClass == Void.TYPE)
            return null;
       
        SerializerRegistry registry = SerializerRegistry.getInstance();
        Serializer deser = registry.getSerializer(theClass);
        return deser.fromXML(xml);
    }
   
    /**
     *
     * HACK: This method simply removes the layer in between the parent of
View Full Code Here

        // general case: apply appropriate serializer to each child element
        //
        for (int i = 0; i < elements.length; ++i)
        {
            Serializer ser = registry.getSerializer(parameters[i]);
            objects[i] = ser.fromXML(elements[i]);
        }
       
        return objects;
    }
   
View Full Code Here

        Element content = getMessageContent(qname);
       
        SerializerRegistry registry = SerializerRegistry.getInstance();
        Serializer ser = registry.getSerializer(type);
       
        return ser.fromXML(content);
    }
   
    public Collection getMessageContentNames()
    {
        return Collections.unmodifiableSet(_messageContent.keySet());
View Full Code Here

        if (theClass == null || theClass == Void.TYPE)
            return null;
       
        SerializerRegistry registry = SerializerRegistry.getInstance();
        Serializer deser = registry.getSerializer(theClass);
        return deser.fromXML(xml);
    }
   
    public Object fromXML(Element xml)
        throws SoapFault
    {
View Full Code Here

        // general case: apply appropriate serializer to each child element
        //
        for (int i = 0; i < elements.length; ++i)
        {
            Serializer ser = registry.getSerializer(parameters[i]);
            objects[i] = ser.fromXML(elements[i]);
        }
       
        return objects;
    }
   
View Full Code Here

        Element content = getMessageContent(qname);
       
        SerializerRegistry registry = SerializerRegistry.getInstance();
        Serializer ser = registry.getSerializer(type);
       
        return ser.fromXML(content);
    }
   
    public Collection getMessageContentNames()
    {
        return Collections.unmodifiableSet(_messageContent.keySet());
View Full Code Here

        // use the Muse serializer framework to convert <Notify/> into
        // an array of NotificationMessage objects
        //
        SerializerRegistry registry = SerializerRegistry.getInstance();
        Serializer ser = registry.getSerializer(NotificationMessage[].class);
        Object messageArray = ser.fromXML(xml);
        return new Object[]{ messageArray };
    }
   
    public Element toXML(Object result)
    {
View Full Code Here

    public static Object convertToObject(Element property, Class type)
        throws SoapFault
    {
        SerializerRegistry registry = SerializerRegistry.getInstance();
        Serializer deser = registry.getSerializer(type);
        return deser.fromXML(property);
    }

    /**
     *
     * Uses Muse's registered Serializers to convert the given Elements
View Full Code Here

        Serializer deser = registry.getSerializer(type);
       
        Object objects = Array.newInstance(type, properties.length);
       
        for (int n = 0; n < properties.length; ++n)
            Array.set(objects, n, deser.fromXML(properties[n]));
       
        return objects;
    }

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