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

com.devonfw.cobigen.api.to.GenerableArtifact Maven / Gradle / Ivy

There is a newer version: 2021.12.006
Show newest version
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);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy