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

se.arkalix.dto.DtoTarget Maven / Gradle / Ivy

Go to download

Contains an annotation processor for automatically generating data transmission objects specified using the annotations of the kalix-dto library.

The newest version!
package se.arkalix.dto;

import com.squareup.javapoet.ClassName;
import se.arkalix.dto.types.DtoTypeInterface;

import java.util.List;
import java.util.Objects;

public class DtoTarget {
    public static final String DATA_SUFFIX = "Dto";

    private final DtoTypeInterface interface_;
    private final List properties;

    public DtoTarget(final DtoTypeInterface interface_, final List properties) {
        this.interface_ = Objects.requireNonNull(interface_, "interface_");
        this.properties = Objects.requireNonNull(properties, "properties");
    }

    public DtoTypeInterface interface_() {
        return interface_;
    }

    public List properties() {
        return properties;
    }

    @Override
    public String toString() {
        return interface_.originalTypeName().toString();
    }

    public ClassName typeName() {
        return interface_.generatedTypeName();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy