Package org.apache.sling.feature.scanner
Class ContentPackageDescriptor
java.lang.Object
org.apache.sling.feature.scanner.Descriptor
org.apache.sling.feature.scanner.ArtifactDescriptor
org.apache.sling.feature.scanner.ContentPackageDescriptor
public abstract class ContentPackageDescriptor extends ArtifactDescriptor
Information about a content package.
- Since:
- 2.3.0
-
Constructor Summary
Constructors Constructor Description ContentPackageDescriptor(String name)Constructor for the descriptor -
Method Summary
Modifier and Type Method Description abstract List<BundleDescriptor>getBundles()Get the included bundlesabstract List<org.apache.sling.feature.Configuration>getConfigurations()Get the included configurationsabstract List<String>getContentPaths()Get the content pathsabstract PropertiesgetPackageProperties()Get the package propertiesabstract ContentPackageDescriptorgetParentContentPackage()Get the parent content packageabstract StringgetParentContentPath()Get the parent content pathbooleanhasEmbeddedArtifacts()Check whether the package has embedded artifactsbooleanisEmbeddedInContentPackage()Whether this artifact is embedded in a content packageStringtoString()Methods inherited from class org.apache.sling.feature.scanner.ArtifactDescriptor
getArtifact, getArtifactFile, getManifestMethods inherited from class org.apache.sling.feature.scanner.Descriptor
aggregate, checkLocked, getCapabilities, getDynamicImportedPackages, getExportedPackages, getImportedPackages, getName, getRequirements, isLocked, lock
-
Constructor Details
-
ContentPackageDescriptor
Constructor for the descriptor- Parameters:
name- The name- Throws:
IllegalArgumentException- if name isnull
-
-
Method Details
-
getContentPaths
Get the content paths- Returns:
- The list of content paths
-
getBundles
Get the included bundles- Returns:
- The list of bundles, might be empty
-
getConfigurations
Get the included configurations- Returns:
- The list of configurations, might be empty
-
getParentContentPackage
Get the parent content package- Returns:
- The parent content package or
null
-
getParentContentPath
Get the parent content path- Returns:
- The parent content path or
null
-
isEmbeddedInContentPackage
public boolean isEmbeddedInContentPackage()Whether this artifact is embedded in a content package- Returns:
trueif embedded.
-
hasEmbeddedArtifacts
public boolean hasEmbeddedArtifacts()Check whether the package has embedded artifacts- Returns:
trueif the package has embedded artifacts
-
getPackageProperties
Get the package properties- Returns:
- The package properties
-
toString
- Overrides:
toStringin classDescriptor
-