com.devonfw.cobigen.api.to.GenerableArtifact Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core-api Show documentation
Show all versions of core-api Show documentation
A Code-based incremental Generator
package com.devonfw.cobigen.api.to;
/**
* An generation artifact like a {@link TemplateTo template} or an {@link IncrementTo increment} to used for
* processing the generation.
*/
public class GenerableArtifact implements Comparable {
/** Id of the template */
private String id;
/**
* Initializes the {@link GenerableArtifact} with the given ID
* @param id
* ID
*/
GenerableArtifact(String id) {
this.id = id;
}
/**
* Returns the id
* @return the id
*/
public String getId() {
return id;
}
@Override
public int compareTo(GenerableArtifact o) {
return id.compareTo(o.id);
}
}