Class MediatorPropertySerializer


  • public class MediatorPropertySerializer
    extends Object
    A utility class for serializing instances of MediatorProperty objects by reading through a given XML configuration
     <element>
        <property name="string" (value="literal" | expression="xpath")/>*
     </element>
     
    • Field Detail

      • fac

        protected static final org.apache.axiom.om.OMFactory fac
      • synNS

        protected static final org.apache.axiom.om.OMNamespace synNS
      • nullNS

        protected static final org.apache.axiom.om.OMNamespace nullNS
      • PROP_Q

        protected static final QName PROP_Q
    • Constructor Detail

      • MediatorPropertySerializer

        public MediatorPropertySerializer()
    • Method Detail

      • serializeMediatorProperties

        public static void serializeMediatorProperties​(org.apache.axiom.om.OMElement parent,
                                                       Collection<MediatorProperty> props)
        Serialize all the properties to the given paren element. For each and every property ther will be a seperate property element created inside the parent element.
        Parameters:
        parent - element to which property elements should be added
        props - Collection of propertis
      • serializeMediatorProperties

        public static void serializeMediatorProperties​(org.apache.axiom.om.OMElement parent,
                                                       Collection<MediatorProperty> props,
                                                       QName childElementName)
        Serialize all the properties to the given paren element. For each and every property ther will be a seperate element with the given name created inside the parent element.
        Parameters:
        parent - element to which property elements should be added
        props - Collection of propertis
        childElementName - QNmae of the property element to be created
      • serializeMediatorProperty

        public static void serializeMediatorProperty​(org.apache.axiom.om.OMElement parent,
                                                     MediatorProperty mp)
        Serialize the property to the given paren element. There will be a element created with the name property inside the parent element.
        Parameters:
        parent - element to which property elements should be added
        mp - a property to be serialized
      • serializeMediatorProperty

        public static void serializeMediatorProperty​(org.apache.axiom.om.OMElement parent,
                                                     MediatorProperty mp,
                                                     QName childElementName)
        Serialize the property to the given paren element. There will be a element created with given name inside the parent element.
        Parameters:
        parent - element to which property elements should be added
        mp - a property to be serialized
        childElementName - QName of the element to be created