public class ContentPackageDescriptor extends ArtifactDescriptor
| Modifier and Type | Field and Description |
|---|---|
List<BundleDescriptor> |
bundles
Bundles in the content package.
|
List<org.apache.sling.feature.Configuration> |
configs
Configurations in the content package.
|
static String |
METADATA_PACKAGE
The metadata added to bundles and configurations for the package they are in.
|
static String |
METADATA_PATH
The metadata added to bundles and configurations for the path in the package
|
| Constructor and Description |
|---|
ContentPackageDescriptor(String name) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.sling.feature.Artifact |
getArtifact()
Get the artifact
|
URL |
getArtifactFile()
Get the artifact file
|
org.apache.sling.feature.Artifact |
getContentPackage()
Get the content package
|
String |
getContentPath()
Get the content path
|
String |
getName()
Returns the name of the entity associated with this descriptor.
|
boolean |
hasEmbeddedArtifacts() |
boolean |
isEmbeddedInContentPackage()
Whether this artifact is embedded in a content package
|
void |
setArtifact(org.apache.sling.feature.Artifact artifact)
Set the artifact
|
void |
setArtifactFile(URL artifactFile)
Set the artifact file
|
void |
setContentPackageInfo(org.apache.sling.feature.Artifact artifact,
String path)
Set the information about the content package containing this artifact
|
void |
setName(String value) |
String |
toString() |
aggregate, checkLocked, getCapabilities, getDynamicImportedPackages, getExportedPackages, getImportedPackages, getRequirements, isLocked, lockpublic static final String METADATA_PACKAGE
public static final String METADATA_PATH
public final List<BundleDescriptor> bundles
public final List<org.apache.sling.feature.Configuration> configs
public ContentPackageDescriptor(String name)
public URL getArtifactFile()
getArtifactFile in class ArtifactDescriptorpublic org.apache.sling.feature.Artifact getArtifact()
getArtifact in class ArtifactDescriptorpublic void setArtifact(org.apache.sling.feature.Artifact artifact)
artifact - The artifactpublic void setArtifactFile(URL artifactFile)
artifactFile - The artifact filepublic org.apache.sling.feature.Artifact getContentPackage()
nullpublic String getContentPath()
nullpublic boolean isEmbeddedInContentPackage()
true if embedded.public void setContentPackageInfo(org.apache.sling.feature.Artifact artifact,
String path)
artifact - The packagepath - The path inside the packagepublic String getName()
DescriptorgetName in class Descriptorpublic void setName(String value)
public boolean hasEmbeddedArtifacts()
public String toString()
toString in class DescriptorCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.