public class SerializerFactory extends Object
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
getDefaultDeserializationProperties(String dataType)
Returns a map of default properties used to customize how deserialization from XML to the
data type is performed.
|
static Map<String,Object> |
getDefaultSerializationProperties(String dataType)
Returns a map of default properties used to customize how serialization from the data type to
XML is performed.
|
static com.mirth.connect.model.converters.IMessageSerializer |
getEDISerializer(String segmentDelim,
String elementDelim,
String subelementDelim)
Deprecated.
This method is deprecated and will soon be removed. Please use
getSerializer(dataType, serializationPropertiesMap, deserializationPropertiesMap)
instead.
|
static com.mirth.connect.model.converters.IMessageSerializer |
getHL7Serializer()
Deprecated.
This method is deprecated and will soon be removed. Please use
getSerializer(dataType, serializationPropertiesMap, deserializationPropertiesMap)
instead. The new method will now strip namespaces by default unless the
'stripNamespaces' property is set to false.
|
static com.mirth.connect.model.converters.IMessageSerializer |
getHL7Serializer(boolean useStrictParser,
boolean useStrictValidation)
Deprecated.
This method is deprecated and will soon be removed. Please use
getSerializer(dataType, serializationPropertiesMap, deserializationPropertiesMap)
instead. The new method will now strip namespaces by default unless the
'stripNamespaces' property is set to false.
|
static com.mirth.connect.model.converters.IMessageSerializer |
getHL7Serializer(boolean useStrictParser,
boolean useStrictValidation,
boolean handleRepetitions)
Deprecated.
This method is deprecated and will soon be removed. Please use
getSerializer(dataType, serializationPropertiesMap, deserializationPropertiesMap)
instead. The new method will now strip namespaces by default unless the
'stripNamespaces' property is set to false.
|
static com.mirth.connect.model.converters.IMessageSerializer |
getHL7Serializer(boolean useStrictParser,
boolean useStrictValidation,
boolean handleRepetitions,
boolean convertLFtoCR)
Deprecated.
This method is deprecated and will soon be removed. Please use
getSerializer(dataType, serializationPropertiesMap, deserializationPropertiesMap)
instead. The new method will now strip namespaces by default unless the
'stripNamespaces' property is set to false.
|
static com.mirth.connect.model.converters.IMessageSerializer |
getHL7Serializer(boolean useStrictParser,
boolean useStrictValidation,
boolean handleRepetitions,
boolean convertLFtoCR,
boolean handleSubcomponents)
Deprecated.
This method is deprecated and will soon be removed. Please use
getSerializer(dataType, serializationPropertiesMap, deserializationPropertiesMap)
instead. The new method will now strip namespaces by default unless the
'stripNamespaces' property is set to false.
|
static com.mirth.connect.model.converters.IMessageSerializer |
getNCPDPSerializer(String segmentDelim,
String groupDelim,
String fieldDelim)
Deprecated.
This method is deprecated and will soon be removed. Please use
getSerializer(dataType, serializationPropertiesMap, deserializationPropertiesMap)
instead.
|
static com.mirth.connect.model.converters.IMessageSerializer |
getNCPDPSerializer(String segmentDelim,
String groupDelim,
String fieldDelim,
boolean useStrictValidation)
Deprecated.
This method is deprecated and will soon be removed. Please use
getSerializer(dataType, serializationPropertiesMap, deserializationPropertiesMap)
instead.
|
static com.mirth.connect.model.converters.IMessageSerializer |
getSerializer(String dataType)
Returns a serializer (with toXML and fromXML methods) for a given data type.
|
static com.mirth.connect.model.converters.IMessageSerializer |
getSerializer(String dataType,
Map<String,Object> serializationPropertiesMap,
Map<String,Object> deserializationPropertiesMap)
Returns a serializer (with toXML and fromXML methods) for a given data type and properties.
|
static com.mirth.connect.model.converters.IMessageSerializer |
getX12Serializer(boolean inferDelimiters)
Deprecated.
This method is deprecated and will soon be removed. Please use
getSerializer(dataType, serializationPropertiesMap, deserializationPropertiesMap)
instead.
|
public static com.mirth.connect.model.converters.IMessageSerializer getSerializer(String dataType)
dataType
- The plugin point (e.g. "HL7V2") of the data type to create the serializer for.public static com.mirth.connect.model.converters.IMessageSerializer getSerializer(String dataType, Map<String,Object> serializationPropertiesMap, Map<String,Object> deserializationPropertiesMap)
dataType
- The plugin point (e.g. "HL7V2") of the data type to create the serializer for.serializationPropertiesMap
- A Map of properties used to customize how serialization from the data type to XML
is performed.deserializationPropertiesMap
- A Map of properties used to customize how deserialization from XML to the data
type is performed.public static Map<String,Object> getDefaultSerializationProperties(String dataType)
dataType
- The plugin point (e.g. "HL7V2") of the data type to get default properties for.public static Map<String,Object> getDefaultDeserializationProperties(String dataType)
dataType
- The plugin point (e.g. "HL7V2") of the data type to get default properties for.@Deprecated public static com.mirth.connect.model.converters.IMessageSerializer getHL7Serializer(boolean useStrictParser, boolean useStrictValidation, boolean handleRepetitions, boolean convertLFtoCR, boolean handleSubcomponents)
useStrictParser
- If true, messages will be parsed based upon strict HL7 specifications.useStrictValidation
- If true, messages will be validated using HL7 specifications (applies to Strict
Parser only).handleRepetitions
- If true, field repetitions will be parsed (applies to Non-Strict Parser only).convertLFtoCR
- If true, line feeds (\n) will be converted to carriage returns (\r) automatically
(applies to Non-Strict Parser only).handleSubcomponents
- If true, subcomponents will be parsed (applies to Non-Strict Parser only).@Deprecated public static com.mirth.connect.model.converters.IMessageSerializer getHL7Serializer(boolean useStrictParser, boolean useStrictValidation, boolean handleRepetitions, boolean convertLFtoCR)
useStrictParser
- If true, messages will be parsed based upon strict HL7 specifications.useStrictValidation
- If true, messages will be validated using HL7 specifications (applies to Strict
Parser only).handleRepetitions
- If true, field repetitions will be parsed (applies to Non-Strict Parser only).convertLFtoCR
- If true, line feeds (\n) will be converted to carriage returns (\r) automatically
(applies to Non-Strict Parser only).@Deprecated public static com.mirth.connect.model.converters.IMessageSerializer getHL7Serializer(boolean useStrictParser, boolean useStrictValidation, boolean handleRepetitions)
useStrictParser
- If true, messages will be parsed based upon strict HL7 specifications.useStrictValidation
- If true, messages will be validated using HL7 specifications (applies to Strict
Parser only).handleRepetitions
- If true, field repetitions will be parsed (applies to Non-Strict Parser only).@Deprecated public static com.mirth.connect.model.converters.IMessageSerializer getHL7Serializer(boolean useStrictParser, boolean useStrictValidation)
useStrictParser
- If true, messages will be parsed based upon strict HL7 specifications.useStrictValidation
- If true, messages will be validated using HL7 specifications (applies to Strict
Parser only).@Deprecated public static com.mirth.connect.model.converters.IMessageSerializer getHL7Serializer()
@Deprecated public static com.mirth.connect.model.converters.IMessageSerializer getX12Serializer(boolean inferDelimiters)
inferDelimiters
- This property only applies to X12 messages. If checked, the delimiters are
inferred from the incoming message and the delimiter properties will not be used.@Deprecated public static com.mirth.connect.model.converters.IMessageSerializer getEDISerializer(String segmentDelim, String elementDelim, String subelementDelim)
segmentDelim
- Characters that delimit the segments in the message.elementDelim
- Characters that delimit the elements in the message.subelementDelim
- Characters that delimit the subelements in the message.@Deprecated public static com.mirth.connect.model.converters.IMessageSerializer getNCPDPSerializer(String segmentDelim, String groupDelim, String fieldDelim, boolean useStrictValidation)
segmentDelim
- Characters that delimit the segments in the message.groupDelim
- Characters that delimit the groups in the message.fieldDelim
- Characters that delimit the fields in the message.useStrictValidation
- Validates the NCPDP message against a schema.@Deprecated public static com.mirth.connect.model.converters.IMessageSerializer getNCPDPSerializer(String segmentDelim, String groupDelim, String fieldDelim)
segmentDelim
- Characters that delimit the segments in the message.groupDelim
- Characters that delimit the groups in the message.fieldDelim
- Characters that delimit the fields in the message.