All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.envimate.mapmate.ScannablePackageWithSerializableDTOs Maven / Gradle / Ivy

Go to download

MapMate is a modern mapping framework in the scope of mapping data in Json, XML, or YAML format into DTOs composed and vice versa.

There is a newer version: 1.6.8
Show newest version
/*
 * 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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy