Interface ArtifactDescriptor

All Superinterfaces:
com.buschmais.xo.api.CompositeObject, Descriptor, FullQualifiedNameDescriptor, NamedDescriptor
All Known Subinterfaces:
ArtifactFileDescriptor

@Label(value="Artifact", usingIndexedPropertyOf=com.buschmais.jqassistant.core.store.api.model.FullQualifiedNameDescriptor.class) public interface ArtifactDescriptor extends NamedDescriptor, FullQualifiedNameDescriptor
Describes an artifact.
Author:
ronald.kunzmann@buschmais.com
  • Method Details

    • getGroup

      @Property("group") String getGroup()
      Returns:
      the group
    • setGroup

      void setGroup(String group)
      Parameters:
      group - the group to set
    • getName

      @Property("name") String getName()
      Specified by:
      getName in interface NamedDescriptor
      Returns:
      the name
    • setName

      void setName(String name)
      Specified by:
      setName in interface NamedDescriptor
      Parameters:
      name - the name to set
    • getVersion

      @Property("version") String getVersion()
      Returns:
      the version
    • setVersion

      void setVersion(String version)
      Parameters:
      version - the version to set
    • getClassifier

      @Property("classifier") String getClassifier()
    • setClassifier

      void setClassifier(String classifier)
    • getType

      @Property("type") String getType()
    • setType

      void setType(String type)
    • getDependencies

      List<DependsOnDescriptor> getDependencies()
    • getDependents

      List<DependsOnDescriptor> getDependents()
    • addDependency

      @Cypher("MATCH (artifact:Artifact),(dependency:Artifact) WHERE id(artifact)=$this and id(dependency)=$dependency MERGE (artifact)-[dependsOn:DEPENDS_ON{scope:$scope,optional:$optional}]->(dependency) RETURN dependsOn") void addDependency(ArtifactDescriptor dependency, String scope, boolean optional)
      Create a dependency to another ArtifactDescriptor.
      Parameters:
      dependency - The ArtifactDescriptor representing the dependency.
      scope - The scope.
      optional - true if the dependency is optional.