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.
|
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, lock
public final List<BundleDescriptor> bundles
public final List<org.apache.sling.feature.Configuration> configs
public ContentPackageDescriptor(String name)
public URL getArtifactFile()
getArtifactFile
in class ArtifactDescriptor
public org.apache.sling.feature.Artifact getArtifact()
getArtifact
in class ArtifactDescriptor
public 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()
null
public String getContentPath()
null
public 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()
Descriptor
getName
in class Descriptor
public void setName(String value)
public boolean hasEmbeddedArtifacts()
public String toString()
toString
in class Descriptor
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.