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 Summary
Modifier and TypeMethodDescriptionvoidaddDependency(ArtifactDescriptor dependency, String scope, boolean optional) Create a dependency to anotherArtifactDescriptor.getGroup()getName()getType()voidsetClassifier(String classifier) voidvoidvoidvoidsetVersion(String version) Methods inherited from interface com.buschmais.xo.api.CompositeObject
as, getDelegate, getIdMethods inherited from interface com.buschmais.jqassistant.core.store.api.model.FullQualifiedNameDescriptor
getFullQualifiedName, setFullQualifiedName
-
Method Details
-
getGroup
- Returns:
- the group
-
setGroup
- Parameters:
group- the group to set
-
getName
- Specified by:
getNamein interfaceNamedDescriptor- Returns:
- the name
-
setName
- Specified by:
setNamein interfaceNamedDescriptor- Parameters:
name- the name to set
-
getVersion
- Returns:
- the version
-
setVersion
- Parameters:
version- the version to set
-
getClassifier
-
setClassifier
-
getType
-
setType
-
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 anotherArtifactDescriptor.- Parameters:
dependency- TheArtifactDescriptorrepresenting the dependency.scope- The scope.optional-trueif the dependency is optional.
-