se.arkalix.dto.DtoTarget Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kalix-dto-processor Show documentation
Show all versions of kalix-dto-processor Show documentation
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();
}
}