Package org.apache.synapse.config.xml
Class MediatorPropertySerializer
- java.lang.Object
-
- org.apache.synapse.config.xml.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>
-
-
Constructor Summary
Constructors Constructor Description MediatorPropertySerializer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
serializeMediatorProperties(org.apache.axiom.om.OMElement parent, Collection<MediatorProperty> props)
Serialize all the properties to the given paren element.static void
serializeMediatorProperties(org.apache.axiom.om.OMElement parent, Collection<MediatorProperty> props, QName childElementName)
Serialize all the properties to the given paren element.static void
serializeMediatorProperty(org.apache.axiom.om.OMElement parent, MediatorProperty mp)
Serialize the property to the given paren element.static void
serializeMediatorProperty(org.apache.axiom.om.OMElement parent, MediatorProperty mp, QName childElementName)
Serialize the property to the given paren 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
-
-
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 addedprops
-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 addedprops
-Collection
of propertischildElementName
-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 addedmp
- 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 addedmp
- a property to be serializedchildElementName
-QName
of the element to be created
-
-