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);
}
Aggregations