public class MarshallerImpl extends java.lang.Object implements Marshaller
Marshaller.| Constructor and Description |
|---|
MarshallerImpl() |
| Modifier and Type | Method and Description |
|---|---|
Jsonizer |
getJsonizer()
Getter for the field
jsonizer. |
XmlMarshaller |
getXmlMarshaller()
Getter for the field
xmlMarshaller. |
YamlMarshaller |
getYamlMarshaller()
Getter for the field
yamlMarshaller. |
java.lang.String |
marshall(java.lang.Object object,
DescriptorType marshaller)
Marshals provided value using provided marshaling mechanism.
|
void |
setJsonizer(Jsonizer jsonizer)
Setter for the field
jsonizer. |
void |
setXmlMarshaller(XmlMarshaller xmlMarshaller)
Setter for the field
xmlMarshaller. |
void |
setYamlMarshaller(YamlMarshaller yamlMarshaller)
Setter for the field
yamlMarshaller. |
<T> T |
unmarshall(java.lang.String marshalledData,
java.lang.Class<T> clazz,
DescriptorType unmarshaller)
Unmarshals provided value using provided marshaling mechanism.
|
public java.lang.String marshall(java.lang.Object object,
DescriptorType marshaller)
marshall in interface Marshallerobject - Value which is to be marshaled.marshaller - Unmarshaling mechanism to be used e.g. JSON, XML etc.public <T> T unmarshall(java.lang.String marshalledData,
java.lang.Class<T> clazz,
DescriptorType unmarshaller)
unmarshall in interface MarshallerT - Type of unmarshaled value.marshalledData - Value which is to be unmarshaled.clazz - Type into which data is to be unmarshaled.unmarshaller - Mechanism used while marshaling data e.g. JSON, XML etc.public Jsonizer getJsonizer()
Getter for the field jsonizer.
Jsonizer object.@Inject public void setJsonizer(Jsonizer jsonizer)
Setter for the field jsonizer.
jsonizer - a Jsonizer object.public XmlMarshaller getXmlMarshaller()
Getter for the field xmlMarshaller.
XmlMarshaller object.@Inject public void setXmlMarshaller(XmlMarshaller xmlMarshaller)
Setter for the field xmlMarshaller.
xmlMarshaller - a XmlMarshaller object.public YamlMarshaller getYamlMarshaller()
Getter for the field yamlMarshaller.
YamlMarshaller object.@Inject public void setYamlMarshaller(YamlMarshaller yamlMarshaller)
Setter for the field yamlMarshaller.
yamlMarshaller - a YamlMarshaller object.Copyright © 2022. All rights reserved.