Search in sources :

Example 1 with ArtifactDescriptor

use of com.buschmais.jqassistant.plugin.common.api.model.ArtifactDescriptor in project jqa-java-plugin by buschmais.

the class AbstractJavaPluginIT method getArtifactDescriptor.

/**
     * Get or create an
     * {@link com.buschmais.jqassistant.plugin.common.api.model.ArtifactFileDescriptor}
     * .
     *
     * @param artifactId
     *            The artifact id.
     * @return The
     *         {@link com.buschmais.jqassistant.plugin.common.api.model.ArtifactFileDescriptor}
     *         .
     */
protected JavaClassesDirectoryDescriptor getArtifactDescriptor(String artifactId) {
    ArtifactDescriptor artifact = store.find(ArtifactDescriptor.class, artifactId);
    if (artifact == null) {
        artifact = store.create(JavaClassesDirectoryDescriptor.class, artifactId);
        artifact.setFullQualifiedName(artifactId);
    }
    return JavaClassesDirectoryDescriptor.class.cast(artifact);
}
Also used : JavaClassesDirectoryDescriptor(com.buschmais.jqassistant.plugin.java.api.model.JavaClassesDirectoryDescriptor) ArtifactDescriptor(com.buschmais.jqassistant.plugin.common.api.model.ArtifactDescriptor)

Aggregations

ArtifactDescriptor (com.buschmais.jqassistant.plugin.common.api.model.ArtifactDescriptor)1 JavaClassesDirectoryDescriptor (com.buschmais.jqassistant.plugin.java.api.model.JavaClassesDirectoryDescriptor)1