Class ContentPackageDescriptor


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

      • METADATA_PACKAGE

        public static final String METADATA_PACKAGE
        The metadata added to bundles and configurations for the package they are in.
        See Also:
        Constant Field Values
      • METADATA_PATH

        public static final String METADATA_PATH
        The metadata added to bundles and configurations for the path in the package
        See Also:
        Constant Field Values
      • configs

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

      • ContentPackageDescriptor

        public ContentPackageDescriptor​(String name)
    • Method Detail

      • 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​(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 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,
                                          String path)
        Set the information about the content package containing this artifact
        Parameters:
        artifact - The package
        path - The path inside the package
      • getName

        public 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​(String value)
      • hasEmbeddedArtifacts

        public boolean hasEmbeddedArtifacts()