Package | Description |
---|---|
org.apache.sling.feature | |
org.apache.sling.feature.builder |
Modifier and Type | Method and Description |
---|---|
static ArtifactId |
ArtifactId.fromMvnId(String coordinates)
Create a new artifact id from maven coordinates/id
groupId:artifactId[:packaging[:classifier]]:version
|
static ArtifactId |
ArtifactId.fromMvnUrl(String url)
Create a new artifact id from a maven url,
'mvn:' group-id '/' artifact-id [ '/' [version] [ '/' [type] [ '/' classifier ] ] ] ]
|
ArtifactId |
Feature.getId()
Get the id of the artifact.
|
ArtifactId |
Prototype.getId()
Get the id of the artifact.
|
ArtifactId |
Artifact.getId()
Get the id of the artifact.
|
static ArtifactId |
ArtifactId.parse(String s)
Create a new artifact id from a string, the string must either be a
mvn url or a mvn id (= coordinates)
|
Modifier and Type | Method and Description |
---|---|
Set<ArtifactId> |
Artifact.getAliases(boolean includeMain)
Obtain the alias or aliases for the artifact.
|
Map<String,List<ArtifactId>> |
Prototype.getArtifactExtensionRemovals() |
List<ArtifactId> |
Prototype.getBundleRemovals() |
Modifier and Type | Method and Description |
---|---|
int |
ArtifactId.compareTo(ArtifactId o) |
boolean |
Artifacts.containsExact(ArtifactId id)
Checks whether the exact artifact is available
|
boolean |
Artifacts.containsSame(ArtifactId id)
Checks whether the same artifact is available, neglecting the version
|
Feature |
Feature.copy(ArtifactId id)
Create a copy of the feature with a different id For contained items like
bundles, artifacts and configurations a copy is created as well.
|
Artifact |
Artifact.copy(ArtifactId id)
Create a copy of the artifact with a different id
|
Artifact |
Artifacts.getSame(ArtifactId id)
Get the artifact for the given id, neglecting the version
|
boolean |
ArtifactId.isSame(ArtifactId id)
Test whether the artifact id is pointing to the same artifact but potentially a different version
|
boolean |
Artifacts.removeExact(ArtifactId id)
Remove the exact artifact.
|
boolean |
Artifacts.removeSame(ArtifactId id)
Remove the same artifact, neglecting the version.
|
Constructor and Description |
---|
Artifact(ArtifactId id)
Construct a new artifact
|
Feature(ArtifactId id)
Construct a new feature.
|
Prototype(ArtifactId id)
Construct a new Include.
|
Modifier and Type | Method and Description |
---|---|
static Feature |
FeatureBuilder.assemble(ArtifactId featureId,
BuilderContext context,
Feature... features)
Assemble a feature based on the provided features.
|
Feature |
FeatureProvider.provide(ArtifactId id)
Provide the feature with the given id.
|
URL |
ArtifactProvider.provide(ArtifactId id)
Provide the artifact with the given id.
|
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.