com.envimate.mapmate.deserialization.builder.CustomPrimitiveDeserializationMethod Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mapmate Show documentation
Show all versions of mapmate Show documentation
MapMate is a modern mapping framework in the scope of mapping data in
Json, XML, or YAML format into DTOs composed and vice versa.
/*
* Copyright (C) 2017 [Richard Hauswald, Nune Isabekyan] (envimate GmbH - https://envimate.com/)
*/
package com.envimate.mapmate.deserialization.builder;
import com.envimate.mapmate.MethodName;
public class CustomPrimitiveDeserializationMethod {
private final DeserializationCPMethod deserializationMethod;
private final MethodName methodName;
CustomPrimitiveDeserializationMethod(final MethodName methodName) {
this.methodName = methodName;
this.deserializationMethod = null;
}
CustomPrimitiveDeserializationMethod(final DeserializationCPMethod deserializationMethod) {
this.deserializationMethod = deserializationMethod;
this.methodName = null;
}
public DeserializationCPMethod getDeserializationMethod() {
return this.deserializationMethod;
}
public MethodName getMethodName() {
return this.methodName;
}
}