codes.rafael.structuraltype:structural-type-generator

This project aims to create a structural representation of similar nominal Java classes. A structural type is represented by an interface that contains property accessors for all properties that are defined by those classes. For each class, a projection class is generated that implements that interface for delegation to the nominal classes for which the structure was created. Additionally, a template implementation is created that implements the structural interface as a Java bean.

License

License

GroupId

GroupId

codes.rafael.structuraltype
ArtifactId

ArtifactId

structural-type-generator
Last Version

Last Version

1.2
Release Date

Release Date

Type

Type

jar
Description

Description

This project aims to create a structural representation of similar nominal Java classes. A structural type is represented by an interface that contains property accessors for all properties that are defined by those classes. For each class, a projection class is generated that implements that interface for delegation to the nominal classes for which the structure was created. Additionally, a template implementation is created that implements the structural interface as a Java bean.
Source Code Management

Source Code Management

http://github.com/raphw/skatteprosessen-structural-type/tree/master/structural-type-generator

Download structural-type-generator

How to add to project

<!-- https://jarcasting.com/artifacts/codes.rafael.structuraltype/structural-type-generator/ -->
<dependency>
    <groupId>codes.rafael.structuraltype</groupId>
    <artifactId>structural-type-generator</artifactId>
    <version>1.2</version>
</dependency>
// https://jarcasting.com/artifacts/codes.rafael.structuraltype/structural-type-generator/
implementation 'codes.rafael.structuraltype:structural-type-generator:1.2'
// https://jarcasting.com/artifacts/codes.rafael.structuraltype/structural-type-generator/
implementation ("codes.rafael.structuraltype:structural-type-generator:1.2")
'codes.rafael.structuraltype:structural-type-generator:jar:1.2'
<dependency org="codes.rafael.structuraltype" name="structural-type-generator" rev="1.2">
  <artifact name="structural-type-generator" type="jar" />
</dependency>
@Grapes(
@Grab(group='codes.rafael.structuraltype', module='structural-type-generator', version='1.2')
)
libraryDependencies += "codes.rafael.structuraltype" % "structural-type-generator" % "1.2"
[codes.rafael.structuraltype/structural-type-generator "1.2"]

Dependencies

compile (2)

Group / Artifact Type Version
codes.rafael.structuraltype : structural-type-api jar 1.2
com.squareup : javapoet jar 1.13.0

test (3)

Group / Artifact Type Version
junit : junit jar 4.13.2
org.assertj : assertj-core jar 3.21.0
org.slf4j : slf4j-simple jar 1.7.32

Project Modules

There are no modules declared in this project.

Versions

Version
1.2
1.1
1.0