com.envimate.mapmate.ScannablePackageWithSerializableDTOs 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;
import com.envimate.mapmate.serialization.builder.DataTransferObjectFilter;
public class ScannablePackageWithSerializableDTOs implements ScannablePackageDirective {
private final DataTransferObjectFilter dataTransferObjectFilter;
private final ScannablePackage scannablePackage;
public ScannablePackageWithSerializableDTOs(final ScannablePackage scannablePackage,
final DataTransferObjectFilter dataTransferObjectFilter) {
this.scannablePackage = scannablePackage;
this.dataTransferObjectFilter = dataTransferObjectFilter;
}
@Override
public ScannablePackage getScannablePackage() {
return this.scannablePackage;
}
@Override
public boolean containsCustomPrimitives() {
return false;
}
@Override
public boolean scanningForSerialization() {
return true;
}
@Override
public boolean scanningForDeserialization() {
return false;
}
public DataTransferObjectFilter getDataTransferObjectFilter() {
return this.dataTransferObjectFilter;
}
}