Class ApisJarContext.ArtifactInfo
java.lang.Object
org.apache.sling.feature.maven.mojos.apis.ApisJarContext.ArtifactInfo
- Enclosing class:
- ApisJarContext
Information about a single artifact (bundle) taking part in the api generation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSourceInfo
(String connection) void
addSourceInfo
(org.apache.sling.feature.ArtifactId id) boolean
org.apache.sling.feature.Artifact
List<org.apache.sling.feature.ArtifactId>
Get the dependency artifacts IfApisUtil#API_IDS
is provided as metadata for the artifact, the value is used as a list of artifacts IfApisUtil#SCM_IDS
is provided as metadata for the artifact, the value is used as a list of artifacts.org.apache.sling.feature.ArtifactId
getId()
List<org.apache.maven.model.License>
Get all node types from this artifactgetNotUseAsDependencyPerRegionReason
(String regionName) String[]
String[]
getUsedExportedPackageIncludes
(String regionName) Set<org.apache.felix.utils.manifest.Clause>
getUsedExportedPackages
(String regionName) int
hashCode()
boolean
isUseAsDependencyPerRegion
(String regionName) void
setBinDirectory
(File binDirectory) void
setLicenses
(List<org.apache.maven.model.License> licenses) void
setSourceDirectory
(File sourceDirectory) void
setUsedExportedPackages
(String regionName, Set<org.apache.felix.utils.manifest.Clause> usedExportedPackages, String useAsDependency) void
setUsedExportedPackages
(Set<String> usedExportedPackages)
-
Constructor Details
-
ArtifactInfo
public ArtifactInfo(org.apache.sling.feature.Artifact artifact)
-
-
Method Details
-
getId
public org.apache.sling.feature.ArtifactId getId() -
getArtifact
public org.apache.sling.feature.Artifact getArtifact() -
getBinDirectory
-
setBinDirectory
-
getSourceDirectory
-
setSourceDirectory
-
getUsedExportedPackages
-
setUsedExportedPackages
-
getUsedExportedPackageIncludes
-
getUsedExportedPackages
-
setUsedExportedPackages
-
getUsedExportedPackageIncludes
-
isUseAsDependencyPerRegion
-
getNotUseAsDependencyPerRegionReason
-
getIncludedResources
-
getNodeTypes
Get all node types from this artifact- Returns:
- The set of node types, might be empty
-
getLicenses
-
setLicenses
-
getDependencyArtifacts
public List<org.apache.sling.feature.ArtifactId> getDependencyArtifacts() throws org.apache.maven.plugin.MojoExecutionExceptionGet the dependency artifacts- If
ApisUtil#API_IDS
is provided as metadata for the artifact, the value is used as a list of artifacts - If
ApisUtil#SCM_IDS
is provided as metadata for the artifact, the value is used as a list of artifacts. The artifacts must have a classifier set. The classifier is removed and then the artifacts are used - The artifact itself is used
- Returns:
- The list of dependency artifacts
- Throws:
org.apache.maven.plugin.MojoExecutionException
- If an incorrect configuration is found
- If
-
addSourceInfo
public void addSourceInfo(org.apache.sling.feature.ArtifactId id) -
addSourceInfo
-
getSources
-
hashCode
public int hashCode() -
equals
-