Class ContentPackageDescriptor


  • public class ContentPackageDescriptor
    extends ArtifactDescriptor
    Information about a content package.
    • Field Detail

      • bundles

        public final java.util.List<BundleDescriptor> bundles
        Bundles in the content package.
      • configs

        public final java.util.List<org.apache.sling.feature.Configuration> configs
        Configurations in the content package.
    • Constructor Detail

      • ContentPackageDescriptor

        public ContentPackageDescriptor​(java.lang.String name)
    • Method Detail

      • getArtifactFile

        public java.net.URL getArtifactFile()
        Get the artifact file
        Specified by:
        getArtifactFile in class ArtifactDescriptor
        Returns:
        The artifact file
      • getArtifact

        public org.apache.sling.feature.Artifact getArtifact()
        Get the artifact
        Specified by:
        getArtifact in class ArtifactDescriptor
        Returns:
        The artifact
      • setArtifact

        public void setArtifact​(org.apache.sling.feature.Artifact artifact)
        Set the artifact
        Parameters:
        artifact - The artifact
      • setArtifactFile

        public void setArtifactFile​(java.net.URL artifactFile)
        Set the artifact file
        Parameters:
        artifactFile - The artifact file
      • getContentPackage

        public org.apache.sling.feature.Artifact getContentPackage()
        Get the content package
        Returns:
        The content package or null
      • getContentPath

        public java.lang.String getContentPath()
        Get the content path
        Returns:
        The content path or null
      • isEmbeddedInContentPackage

        public boolean isEmbeddedInContentPackage()
        Whether this artifact is embedded in a content package
        Returns:
        true if embedded.
      • setContentPackageInfo

        public void setContentPackageInfo​(org.apache.sling.feature.Artifact artifact,
                                          java.lang.String path)
        Set the information about the content package containing this artifact
        Parameters:
        artifact - The package
        path - The path inside the package
      • getName

        public java.lang.String getName()
        Description copied from class: Descriptor
        Returns the name of the entity associated with this descriptor.
        Overrides:
        getName in class Descriptor
        Returns:
        the name.
      • setName

        public void setName​(java.lang.String value)
      • hasEmbeddedArtifacts

        public boolean hasEmbeddedArtifacts()